Class BaseXx
java.lang.Object
io.clonecloudstore.common.standard.system.BaseXx
Base16, Base32 and Base64 codecs
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetBase16(byte[] bytes) static StringgetBase16(byte[] bytes, int offset, int size) static StringgetBase32(byte[] bytes) static StringgetBase32(byte[] bytes, int offset, int size) static StringgetBase64(byte[] bytes) static StringgetBase64(byte[] bytes, int offset, int size) static StringgetBase64Padding(byte[] bytes) static StringgetBase64Padding(byte[] bytes, int offset, int size) static StringgetBase64Url(byte[] bytes) static StringgetBase64Url(byte[] bytes, int offset, int size) static byte[]getFromBase16(String base16) static byte[]getFromBase32(String base32) static byte[]getFromBase64(String base64) static byte[]getFromBase64Padding(String base64) static byte[]getFromBase64Url(String base64)
-
Field Details
-
HASH_LENGTH
public static final int HASH_LENGTH- See Also:
-
-
Method Details
-
getBase16
- Parameters:
bytes- to transform- Returns:
- the Base 16 representation Without Padding representation
- Throws:
CcsInvalidArgumentRuntimeException- if argument is not compatible
-
getBase16
- Parameters:
bytes- to transformoffset- offset to start fromsize- size to use from offset- Returns:
- the Base 16 representation Without Padding representation
- Throws:
CcsInvalidArgumentRuntimeException- if argument is not compatible
-
getBase32
- Parameters:
bytes- to transform- Returns:
- the Base 32 representation Without Padding representation
- Throws:
CcsInvalidArgumentRuntimeException- if argument is not compatible
-
getBase32
- Parameters:
bytes- to transformoffset- offset to start fromsize- size to use from offset- Returns:
- the Base 32 representation Without Padding representation
- Throws:
CcsInvalidArgumentRuntimeException- if argument is not compatible
-
getBase64
- Parameters:
bytes- to transform- Returns:
- the Base 64 Without Padding representation
- Throws:
CcsInvalidArgumentRuntimeException- if argument is not compatible
-
getBase64
- Parameters:
bytes- to transformoffset- offset to start fromsize- size to use from offset- Returns:
- the Base 64 Without Padding representation
- Throws:
CcsInvalidArgumentRuntimeException- if argument is not compatible
-
getBase64Padding
- Parameters:
bytes- to transform- Returns:
- the Base 64 Without Padding representation
- Throws:
CcsInvalidArgumentRuntimeException- if argument is not compatible
-
getBase64Padding
- Parameters:
bytes- to transformoffset- offset to start fromsize- size to use from offset- Returns:
- the Base 64 Without Padding representation
- Throws:
CcsInvalidArgumentRuntimeException- if argument is not compatible
-
getBase64Url
- Parameters:
bytes- to transform- Returns:
- the Base 64 Without Padding representation
- Throws:
CcsInvalidArgumentRuntimeException- if argument is not compatible
-
getBase64Url
- Parameters:
bytes- to transformoffset- offset to start fromsize- size to use from offset- Returns:
- the Base 64 Without Padding representation
- Throws:
CcsInvalidArgumentRuntimeException- if argument is not compatible
-
getFromBase16
- Parameters:
base16- to transform- Returns:
- the byte from Base 16 Without Padding
- Throws:
CcsInvalidArgumentRuntimeException- if argument is not compatible
-
getFromBase32
- Parameters:
base32- to transform- Returns:
- the byte from Base 32 Without Padding
- Throws:
CcsInvalidArgumentRuntimeException- if argument is not compatible
-
getFromBase64
- Parameters:
base64- to transform- Returns:
- the byte from Base 64 Without Padding
- Throws:
CcsInvalidArgumentRuntimeException- if argument is not compatible
-
getFromBase64Padding
- Parameters:
base64- to transform- Returns:
- the byte from Base 64 Without Padding
- Throws:
CcsInvalidArgumentRuntimeException- if argument is not compatible
-
getFromBase64Url
- Parameters:
base64- to transform- Returns:
- the byte from Base 64 Without Padding
- Throws:
CcsInvalidArgumentRuntimeException- if argument is not compatible
-