public class SignedEncryptor extends InitializeObject implements Encryptor
mutex| Constructor and Description |
|---|
SignedEncryptor() |
SignedEncryptor(Encryptor encryptor,
Digester signer) |
| Modifier and Type | Method and Description |
|---|---|
SignedEncryptor |
copy() |
byte[] |
decrypt(byte[] message) |
void |
destroy() |
byte[] |
encrypt(byte[] message) |
protected void |
init() |
SignedEncryptor |
setEncryptor(Encryptor encryptor) |
SignedEncryptor |
setSigner(Digester signer) |
assertNotInitialized, initializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeprotected 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 SignedEncryptor setEncryptor(Encryptor encryptor)
public SignedEncryptor setSigner(Digester signer)
public SignedEncryptor copy()
Copyright © 2017. All rights reserved.