@Immutable public class Base64URL extends Base64
Related specifications:
| Constructor and Description |
|---|
Base64URL(String base64URL)
Creates a new Base64URL-encoded object.
|
| Modifier and Type | Method and Description |
|---|---|
static Base64URL |
encode(BigInteger bigInt)
Base64URL-encodes the specified big integer, without the sign bit.
|
static Base64URL |
encode(byte[] bytes)
Base64URL-encodes the specified byte array.
|
static Base64URL |
encode(String text)
Base64URL-encodes the specified string.
|
boolean |
equals(Object object)
Overrides
Object.equals(). |
static Base64URL |
from(String base64URL)
Creates a new Base64URL-encoded object from the specified string.
|
decode, decodeToBigInteger, decodeToString, hashCode, toJSONString, toStringpublic static Base64URL from(String base64URL)
base64URL - The Base64URL-encoded object value, null if
not specified. The value is not validated for
having characters from the Base64URL alphabet.null if not specified.public static Base64URL encode(byte[] bytes)
bytes - The byte array to encode. Must not be null.public static Base64URL encode(BigInteger bigInt)
bigInt - The big integer to encode. Must not be null.Copyright © 2019 Connect2id Ltd.. All rights reserved.