com.atlassian.bamboo.security
Class StringEncrypter

java.lang.Object
  extended by com.atlassian.bamboo.security.StringEncrypter

public class StringEncrypter
extends Object

This class provides a simple string data encrypter


Field Summary
protected  Cipher myCipher
           
protected  SecretKeyFactory myKeyFactory
           
protected  DESedeKeySpec myKeySpec
           
 
Constructor Summary
StringEncrypter()
           
 
Method Summary
 String decrypt(String stringToDecrypt)
           
 String encrypt(String stringToEncrypt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myCipher

protected Cipher myCipher

myKeyFactory

protected SecretKeyFactory myKeyFactory

myKeySpec

protected DESedeKeySpec myKeySpec
Constructor Detail

StringEncrypter

public StringEncrypter()
                throws EncryptionException
Throws:
EncryptionException
Method Detail

encrypt

public String encrypt(String stringToEncrypt)
               throws EncryptionException
Throws:
EncryptionException

decrypt

public String decrypt(String stringToDecrypt)
               throws EncryptionException
Throws:
EncryptionException


Copyright © 2006 Atlassian Software Systems. All Rights Reserved.