com.atlassian.bamboo.security
Class StringEncrypter
java.lang.Object
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
|
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 |
myCipher
protected javax.crypto.Cipher myCipher
myKeyFactory
protected javax.crypto.SecretKeyFactory myKeyFactory
myKeySpec
protected javax.crypto.spec.DESedeKeySpec myKeySpec
StringEncrypter
public StringEncrypter()
throws EncryptionException
- Throws:
EncryptionException
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 © 2011 Atlassian. All Rights Reserved.