Project Aristotle - ArisID Attribute Services

org.openliberty.arisid.util
Class Base64

java.lang.Object
  extended by org.openliberty.arisid.util.Base64
All Implemented Interfaces:
IBase64

public class Base64
extends java.lang.Object
implements IBase64

Default implementation of IBase64.


Constructor Summary
Base64()
           
 
Method Summary
 byte[] decode(java.lang.String inStr)
          Decodes Base64 encoded data into byte array
 java.lang.String encode(byte[] inBytes)
          Encodes byte array into Base64 string
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64

public Base64()
Method Detail

encode

public java.lang.String encode(byte[] inBytes)
Encodes byte array into Base64 string

Specified by:
encode in interface IBase64
Parameters:
inBytes - Array containing binary data
Returns:
Base64 encoded string

decode

public byte[] decode(java.lang.String inStr)
Decodes Base64 encoded data into byte array

Specified by:
decode in interface IBase64
Parameters:
inStr - Base64 encoded string
Returns:
byte array containing decoded data

OpenLiberty.org - Licensed under Apache APL 2.0