InitializeSupport, Encryptorpublic class EncryptorSigner extends InitializeObject implements Encryptor
mutex| Constructor | Description |
|---|---|
EncryptorSigner() |
|
EncryptorSigner(Digester signer,
Encryptor encryptor) |
| Modifier and Type | Method | 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, initializeinitializeprotected 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.