Package com.appslandia.common.crypto
Class SignerEncryptor
- java.lang.Object
-
- com.appslandia.common.base.InitializeObject
-
- com.appslandia.common.crypto.SignerEncryptor
-
- All Implemented Interfaces:
InitializeSupport,Encryptor
public class SignerEncryptor extends InitializeObject implements Encryptor
- Author:
- Loc Ha
-
-
Field Summary
-
Fields inherited from class com.appslandia.common.base.InitializeObject
mutex
-
-
Constructor Summary
Constructors Constructor Description SignerEncryptor()SignerEncryptor(Encryptor encryptor)SignerEncryptor(Encryptor encryptor, Digester signer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SignerEncryptorcopy()byte[]decrypt(byte[] message)voiddestroy()byte[]encrypt(byte[] message)protected voidinit()SignerEncryptorsetEncryptor(Encryptor encryptor)SignerEncryptorsetSigner(Digester signer)-
Methods inherited from class com.appslandia.common.base.InitializeObject
assertNotInitialized, initialize
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.appslandia.common.base.InitializeSupport
initialize
-
-
-
-
Method Detail
-
init
protected void init() throws Exception- Specified by:
initin classInitializeObject- Throws:
Exception
-
destroy
public void destroy() throws DestroyException- Specified by:
destroyin interfaceInitializeSupport- Overrides:
destroyin classInitializeObject- Throws:
DestroyException
-
encrypt
public byte[] encrypt(byte[] message) throws CryptoException- Specified by:
encryptin interfaceEncryptor- Throws:
CryptoException
-
decrypt
public byte[] decrypt(byte[] message) throws CryptoException- Specified by:
decryptin interfaceEncryptor- Throws:
CryptoException
-
setEncryptor
public SignerEncryptor setEncryptor(Encryptor encryptor)
-
setSigner
public SignerEncryptor setSigner(Digester signer)
-
copy
public SignerEncryptor copy()
-
-