public class Base64Url extends Object
| Constructor and Description |
|---|
Base64Url() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsOnlyBase64UrlChars(byte[] bytes,
int offset,
int len) |
static byte[] |
decodeFast(byte[] sArr)
Decodes a BASE64Url encoded byte array that is known to be reasonably well formatted.
|
static byte[] |
decodeFast(char[] sArr)
Decodes a BASE64Url encoded char array that is known to be reasonably well formatted.
|
static byte[] |
decodeFast(String s)
Decodes a BASE64Url encoded string that is known to be resonably well formatted.
|
static byte[] |
encodeToByte(byte[] sArr)
Encodes a raw byte array into a BASE64Url
byte[] representation i accordance with
RFC 2045. |
static char[] |
encodeToChar(byte[] sArr)
Encodes a raw byte array into a BASE64Url
char[] representation i accordance with
RFC 2045. |
static String |
encodeToString(byte[] sArr)
Encodes a raw byte array into a BASE64Url
String representation i accordance with
RFC 2045. |
public static final boolean containsOnlyBase64UrlChars(byte[] bytes,
int offset,
int len)
public static final char[] encodeToChar(byte[] sArr)
char[] representation i accordance with
RFC 2045.sArr - The bytes to convert. If null or length 0 an empty array will be
returned.null.public static final byte[] decodeFast(char[] sArr)
sArr - The source array. Length 0 will return an empty array. null will throw
an exception.public static final byte[] encodeToByte(byte[] sArr)
byte[] representation i accordance with
RFC 2045.sArr - The bytes to convert. If null or length 0 an empty array will be
returned.null.public static final byte[] decodeFast(byte[] sArr)
sArr - The source array. Length 0 will return an empty array. null will throw
an exception.public static final String encodeToString(byte[] sArr)
String representation i accordance with
RFC 2045.sArr - The bytes to convert. If null or length 0 an empty array will be
returned.null.public static final byte[] decodeFast(String s)
s - The source string. Length 0 will return an empty array. null will
throw an exception.Copyright © 2019. All rights reserved.