com.atlassian.bamboo.security
Class StringEncrypter

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

@NotThreadSafe
public class StringEncrypter
extends java.lang.Object

This class provides a simple string data encrypter


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

Field Detail

myCipher

protected javax.crypto.Cipher myCipher

myKeyFactory

protected javax.crypto.SecretKeyFactory myKeyFactory

myKeySpec

protected javax.crypto.spec.DESedeKeySpec myKeySpec
Constructor Detail

StringEncrypter

public StringEncrypter()
                throws EncryptionException
Throws:
EncryptionException
Method Detail

encrypt

public java.lang.String encrypt(java.lang.String stringToEncrypt)
                         throws EncryptionException
Throws:
EncryptionException

decrypt

public java.lang.String decrypt(java.lang.String stringToDecrypt)
                         throws EncryptionException
Throws:
EncryptionException


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.