|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.projects.store.crypto.AbstractEncryptor atg.projects.store.crypto.DESedeEncryptor
public class DESedeEncryptor
A simple class for performing encryption/decryption operations using the javax.crypto package.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
static atg.nucleus.logging.ApplicationLogging |
mLogger
Logger. |
Constructor Summary | |
---|---|
DESedeEncryptor()
Default constructor. |
Method Summary | |
---|---|
protected void |
acceptKey(byte[] pValue)
Initialize the KeySpec. |
protected void |
addSecurityProviders()
This method add's new security provider at the top of the list of exsisting providers. |
protected byte[] |
decodeToByteArray(java.lang.String pValue)
Decode pValue into array of bytes. |
protected void |
doAcceptDecryptKey(byte[] pValue)
This is two way encryption, so encrypt/decrypt keys are the same. |
protected void |
doAcceptEncryptKey(byte[] pValue)
This is two way encryption, so encrypt/decrypt keys are the same. |
protected byte[] |
doDecrypt(byte[] pValue)
Implement this with the actual decryption operation. |
protected byte[] |
doEncrypt(byte[] pValue)
Implement this with the actual encryption operation. |
protected void |
doInit()
Initialize DESedeEncryptor. |
protected java.lang.String |
encodeToString(byte[] pValue)
Once encrypted, string data may no longer be a string because the encrypted data is binary and may contain null characters, thus it may need to be encoded using a encoder such as Base64, UUEncode (ASCII only) or UCEncode(ASCII independent). |
java.util.List |
getSecurityProviders()
|
void |
setSecurityProviders(java.util.List pSecurityProviders)
Set the list of Providers from the property. |
Methods inherited from class atg.projects.store.crypto.AbstractEncryptor |
---|
acceptDecryptKey, acceptEncryptKey, decrypt, decrypt, encrypt, encrypt, init, postDecrypt, postDecrypt, postEncrypt, postEncrypt, preDecrypt, preDecrypt, preEncrypt, preEncrypt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
public static atg.nucleus.logging.ApplicationLogging mLogger
Constructor Detail |
---|
public DESedeEncryptor()
Method Detail |
---|
public java.util.List getSecurityProviders()
public void setSecurityProviders(java.util.List pSecurityProviders)
pSecurityProviders
- - security providers listprotected final void doAcceptEncryptKey(byte[] pValue) throws EncryptorException
doAcceptEncryptKey
in class AbstractEncryptor
pValue
- - value
EncryptorException
- if encryptor error occursprotected final void doAcceptDecryptKey(byte[] pValue) throws EncryptorException
doAcceptDecryptKey
in class AbstractEncryptor
pValue
- - value
EncryptorException
- if encryptor error occursprotected final void acceptKey(byte[] pValue) throws EncryptorException
pValue
- key in byte[]
EncryptorException
- This exception indicates that a severe error
occurred while performing a cryptography operation.protected final void doInit() throws EncryptorException
doInit
in class AbstractEncryptor
EncryptorException
- This exception indicates that a severe error
occurred while performing a cryptography operation.protected final byte[] doEncrypt(byte[] pValue) throws EncryptorException
doEncrypt
in class AbstractEncryptor
pValue
- array of bytes
EncryptorException
- This exception indicates that a severe error
occured while performing a cryptograpy operation.protected final byte[] doDecrypt(byte[] pValue) throws EncryptorException
doDecrypt
in class AbstractEncryptor
pValue
- array of bytes
EncryptorException
- This exception indicates that a severe error
occured while performing a cryptograpy operation.protected java.lang.String encodeToString(byte[] pValue) throws EncryptorException
encodeToString
in class AbstractEncryptor
pValue
- - value
EncryptorException
- This exception indicates that an error
occurred while performing a cryptography operation.protected byte[] decodeToByteArray(java.lang.String pValue) throws EncryptorException
pValue
into array of bytes.
decodeToByteArray
in class AbstractEncryptor
pValue
- decoded string
EncryptorException
- This exception indicates that a severe error
occurred while performing a cryptography operation.protected void addSecurityProviders()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |