public class EncryptorSigner extends InitializeObject implements Encryptor
mutex| Constructor and Description |
|---|
EncryptorSigner() |
EncryptorSigner(Digester signer) |
EncryptorSigner(Digester signer,
Encryptor encryptor) |
| Modifier and Type | Method and Description |
|---|---|
EncryptorSigner |
copy() |
byte[] |
decrypt(byte[] message) |
void |
destroy() |
byte[] |
encrypt(byte[] message) |
protected void |
init() |
EncryptorSigner |
setEncryptor(Encryptor encryptor) |
EncryptorSigner |
setSigner(Digester signer) |
assertNotInitialized, initializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializepublic EncryptorSigner()
public EncryptorSigner(Digester signer)
protected void init()
throws Exception
init in class InitializeObjectExceptionpublic void destroy()
throws DestroyException
destroy in interface InitializeSupportdestroy in class InitializeObjectDestroyExceptionpublic byte[] encrypt(byte[] message)
throws CryptoException
encrypt in interface EncryptorCryptoExceptionpublic byte[] decrypt(byte[] message)
throws CryptoException
decrypt in interface EncryptorCryptoExceptionpublic EncryptorSigner setSigner(Digester signer)
public EncryptorSigner setEncryptor(Encryptor encryptor)
public EncryptorSigner copy()
Copyright © 2018. All rights reserved.