Skip navigation links


org.identityconnectors.common
Class Base64

java.lang.Object
  extended by org.identityconnectors.common.Base64


public class Base64
extends java.lang.Object

Utility package for base64 encoding and decoding.

Since:
1.0
Version:
$Revision $
Author:
Will Droste

Method Summary
static byte[] decode(java.lang.String encdata)
          Decodes a specified base64-encoded String and returns the resulting bytes.
static java.lang.String encode(byte[] data)
          Returns a String of base64-encoded characters to represent the specified data array.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

encode

public static java.lang.String encode(byte[] data)
Returns a String of base64-encoded characters to represent the specified data array.
Parameters:
data - The array of bytes to encode.
Returns:
A String containing base64-encoded characters.

decode

public static byte[] decode(java.lang.String encdata)
Decodes a specified base64-encoded String and returns the resulting bytes.
Parameters:
encdata - A String containing base64-encoded characters.
Returns:
The base64-decoded array of bytes.

Skip navigation links


Copyright © 2011, Oracle and/or its affiliates. All rights reserved.