Package com.azure.core.util
Class Base64Url
java.lang.Object
com.azure.core.util.Base64Url
Encodes and decodes using Base64 URL encoding.
-
Constructor Details
-
Base64Url
Creates a new Base64Url object with the specified encoded string.- Parameters:
string
- The encoded string.
-
Base64Url
public Base64Url(byte[] bytes) Creates a new Base64Url object with the specified encoded bytes.- Parameters:
bytes
- The encoded bytes.
-
-
Method Details
-
encode
Encodes a byte array into Base64Url encoded bytes.- Parameters:
bytes
- The byte array to encode.- Returns:
- A new Base64Url instance.
-
encodedBytes
public byte[] encodedBytes()Returns the underlying encoded byte array.- Returns:
- The underlying encoded byte array.
-
decodedBytes
public byte[] decodedBytes()Decode the bytes and returns its value.- Returns:
- The decoded byte array.
-
toString
-
hashCode
public int hashCode() -
equals
-