@PublicAPI(stability=UNCOMMITTED, mayInstantiate=false, mayExtend=false, mayInvoke=true) public final class Base64 extends Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(String encodedData)
Decodes the provided set of base64-encoded data.
|
static String |
encode(byte[] rawData)
Encodes the provided raw data using base64.
|
static String |
encode(org.forgerock.opendj.ldap.ByteSequence rawData)
Encodes the provided raw data using base64.
|
static void |
main(String[] args)
Provide a command-line utility that may be used to base64-encode and
decode strings and file contents.
|
public static String encode(byte[] rawData)
rawData
- The raw data to encode. It must not be null
.public static String encode(org.forgerock.opendj.ldap.ByteSequence rawData)
rawData
- The raw data to encode. It must not be null
.public static byte[] decode(String encodedData) throws ParseException
encodedData
- The base64-encoded data to decode. It must not be
null
.ParseException
- If a problem occurs while attempting to decode the
provided data.Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.