Package fr.gouv.vitam.common
Class BaseXx
java.lang.Object
fr.gouv.vitam.common.BaseXx
Base16, Base32 and Base64 codecs
-
Method Summary
Modifier and TypeMethodDescriptionstatic final StringgetBase16(byte[] bytes) static final StringgetBase32(byte[] bytes) static final StringgetBase64(byte[] bytes) static final StringgetBase64UrlWithoutPadding(byte[] bytes) static final StringgetBase64UrlWithPadding(byte[] bytes) static final byte[]getFromBase16(String base16) static final byte[]getFromBase32(String base32) static final byte[]getFromBase64(String base64Padding) static final byte[]getFromBase64UrlPadding(String base64Padding) static final byte[]getFromBase64UrlWithoutPadding(String base64)
-
Method Details
-
getBase16
- Parameters:
bytes- to transform- Returns:
- the Base 16 representation
- Throws:
IllegalArgumentException- if argument is not compatible
-
getBase32
- Parameters:
bytes- to transform- Returns:
- the Base 32 representation
- Throws:
IllegalArgumentException- if argument is not compatible
-
getBase64UrlWithoutPadding
- Parameters:
bytes- to transform- Returns:
- the Base 64 Without Padding representation (used only for url)
- Throws:
IllegalArgumentException- if argument is not compatible
-
getBase64UrlWithPadding
- Parameters:
bytes- to transform- Returns:
- the Base 64 With Padding representation (used only for url)
- Throws:
IllegalArgumentException- if argument is not compatible
-
getBase64
- Parameters:
bytes- to transform- Returns:
- the Base 64 With Padding representation
- Throws:
IllegalArgumentException- if argument is not compatible
-
getFromBase16
- Parameters:
base16- to transform- Returns:
- the byte from Base 16
- Throws:
IllegalArgumentException- if argument is not compatible
-
getFromBase32
- Parameters:
base32- to transform- Returns:
- the byte from Base 32
- Throws:
IllegalArgumentException- if argument is not compatible
-
getFromBase64UrlWithoutPadding
- Parameters:
base64- to transform- Returns:
- the byte from Base 64 Without Padding (used only for url)
- Throws:
IllegalArgumentException- if argument is not compatible
-
getFromBase64UrlPadding
- Parameters:
base64Padding- to transform- Returns:
- the byte from Base 64 With Padding (used only for url)
- Throws:
IllegalArgumentException- if argument is not compatible
-
getFromBase64
- Parameters:
base64Padding- to transform- Returns:
- the byte from Base 64 With Padding
- Throws:
IllegalArgumentException- if argument is not compatible
-