public final class Base64Url
extends java.lang.Object
| Constructor and Description |
|---|
Base64Url(byte[] bytes)
Creates a new Base64Url object with the specified encoded bytes.
|
Base64Url(java.lang.String string)
Creates a new Base64Url object with the specified encoded string.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decodedBytes()
Decode the bytes and returns its value.
|
static Base64Url |
encode(byte[] bytes)
Encodes a byte array into Base64Url encoded bytes.
|
byte[] |
encodedBytes()
Returns the underlying encoded byte array.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
public Base64Url(java.lang.String string)
string - The encoded string.public Base64Url(byte[] bytes)
bytes - The encoded bytes.public static Base64Url encode(byte[] bytes)
bytes - The byte array to encode.public byte[] encodedBytes()
public byte[] decodedBytes()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object