Class Base64Support
java.lang.Object
net.shibboleth.utilities.java.support.codec.Base64Support
Deprecated, for removal: This API element is subject to removal in a future version.
Deprecated stub.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDeprecated, for removal: This API element is subject to removal in a future version.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]Deprecated, for removal: This API element is subject to removal in a future version.Decodes (un)chunked Base64 encoded data.static byte[]decodeURLSafe(String data) Deprecated, for removal: This API element is subject to removal in a future version.Decodes (un)chunked Base64URL encoded data.static Stringencode(byte[] data, boolean chunked) Deprecated, for removal: This API element is subject to removal in a future version.Base64 encodes the given binary data.static StringencodeURLSafe(byte[] data) Deprecated, for removal: This API element is subject to removal in a future version.Base64URL encodes the given binary data.
-
Constructor Details
-
Base64Support
private Base64Support()Deprecated, for removal: This API element is subject to removal in a future version.Constructor.
-
-
Method Details
-
encode
@Nonnull public static String encode(@Nonnull byte[] data, boolean chunked) throws EncodingException Deprecated, for removal: This API element is subject to removal in a future version.Base64 encodes the given binary data.- Parameters:
data- data to encodechunked- whether the encoded data should be chunked or not- Returns:
- the base64 encoded data
- Throws:
EncodingException- when anyExceptionis thrown from the underlying encoder, or the output is null.
-
decode
Deprecated, for removal: This API element is subject to removal in a future version.Decodes (un)chunked Base64 encoded data.- Parameters:
data- Base64 encoded data- Returns:
- the decoded data
- Throws:
DecodingException- when anyExceptionis thrown from the underlying decoder, or the output is null.
-
encodeURLSafe
Deprecated, for removal: This API element is subject to removal in a future version.Base64URL encodes the given binary data.This is compliant with RFC 4648, Section 5: "Base 64 Encoding with URL and Filename Safe Alphabet".
- Parameters:
data- data to encode- Returns:
- the base64url encoded data
- Throws:
EncodingException- if the input data can not be encoded as a base64 string.
-
decodeURLSafe
Deprecated, for removal: This API element is subject to removal in a future version.Decodes (un)chunked Base64URL encoded data.This is compliant with RFC 4648, Section 5: "Base 64 Encoding with URL and Filename Safe Alphabet".
- Parameters:
data- Base64URL encoded data- Returns:
- the decoded data
- Throws:
DecodingException- if unable to decode the input data.
-