Package org.bson.internal
Class Base64
java.lang.Object
org.bson.internal.Base64
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
Provides Base64 encoding and decoding.
This class implements Base64 encoding
Thanks to Apache Commons project. This class refactored from org.apache.commons.codec.binary
Original Thanks to commons project in ws.apache.org for this code.
- Since:
- 3.5
-
Method Summary
-
Method Details
-
decode
Deprecated.Decodes the given Base64-encoded string.- Parameters:
s- the Base64-encoded string- Returns:
- the decoded byte array
-
encode
Deprecated.Encodes the given byte array into a Base64-encoded string.- Parameters:
in- the byte array- Returns:
- the Base64-encoded string
-