Novell exteNd
Director 5.2 API

com.sssw.fw.util.crypto
Class EboBase64Crypto

java.lang.Object
 |
 +--com.sssw.fw.util.crypto.EboBase64Crypto
All Implemented Interfaces:
EbiCrypto

public class EboBase64Crypto
extends Object
implements EbiCrypto

Provides encryption and decryption functionality using Base 64


Fields inherited from interface com.sssw.fw.util.crypto.EbiCrypto
UTF8_CHARSET
 
Constructor Summary
EboBase64Crypto()
           
 
Method Summary
 byte[] decrypt(byte[] data)
          Decrypts the Base 64 encoded bytes and returns the string as bytes
 String decryptString(String data)
          Decrypts the encrypted string and returns a new string that contains the decrypted data
 byte[] encrypt(byte[] data)
          Encrypts the byte array into a Base 64 string and returns the bytes
 String encryptString(String data)
          Encrypts the string and returns a new encrypted string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EboBase64Crypto

public EboBase64Crypto()
Method Detail

encrypt

public byte[] encrypt(byte[] data)
               throws com.sssw.fw.util.crypto.UnsupportedEncodingException
Encrypts the byte array into a Base 64 string and returns the bytes
Specified by:
encrypt in interface EbiCrypto
Parameters:
data - a byte array of the data the needs to be Base 64 encoded
Returns:
the Base 64 encoded string as bytes

decrypt

public byte[] decrypt(byte[] data)
               throws com.sssw.fw.util.crypto.UnsupportedEncodingException
Decrypts the Base 64 encoded bytes and returns the string as bytes
Specified by:
decrypt in interface EbiCrypto
Parameters:
data - a byte array of the Base 64 encoded string
Returns:
the decoded string as bytes

encryptString

public String encryptString(String data)
                     throws com.sssw.fw.util.crypto.UnsupportedEncodingException
Encrypts the string and returns a new encrypted string
Specified by:
encryptString in interface EbiCrypto
Parameters:
data - the string that needs to be encrypted
Returns:
the encrypted string

decryptString

public String decryptString(String data)
                     throws com.sssw.fw.util.crypto.UnsupportedEncodingException
Decrypts the encrypted string and returns a new string that contains the decrypted data
Specified by:
decryptString in interface EbiCrypto
Parameters:
data - the string that needs to be decrypted
Returns:
the decrypted string

Novell exteNd
Director 5.2 API