public final class NullCryptEngineWrapperImpl extends Object implements CryptEngineWrapper
IMPL
Constructor and Description |
---|
NullCryptEngineWrapperImpl() |
Modifier and Type | Method and Description |
---|---|
void |
decrypt(InputStream encryptedStream,
String[] decryptionKeyIdents,
OutputStream decryptedStream)
Decrypts an input.
|
void |
encrypt(InputStream inputStream,
String[] encryptionKeyIdents,
OutputStream encryptedStream)
Encrypts an input.
|
boolean |
isSecure()
Asks if this engine is secure.
|
boolean |
setUp(KeyedGroups cryptProperties)
Sets up the crypt.
|
void |
sign(InputStream inputStream,
String[] signingKeyIdents,
OutputStream signatureStream)
Signs an input.
|
void |
tearDown()
Tears down what has been set up.
|
boolean |
verify(InputStream signedStream,
InputStream signatureStream,
String[] verificationKeyIdents)
Verifies a signed input.
|
public void decrypt(InputStream encryptedStream, String[] decryptionKeyIdents, OutputStream decryptedStream)
decrypt
in interface CryptEngineWrapper
encryptedStream
- The encrypted stream.decryptionKeyIdents
- The decryption key ident (may be empty).decryptedStream
- The decrypted stream.public void encrypt(InputStream inputStream, String[] encryptionKeyIdents, OutputStream encryptedStream)
encrypt
in interface CryptEngineWrapper
inputStream
- The input stream.encryptionKeyIdents
- The encryption key idents (may be empty).encryptedStream
- The encrypted stream.public boolean isSecure()
isSecure
in interface CryptEngineWrapper
public boolean setUp(KeyedGroups cryptProperties)
setUp
in interface CryptEngineWrapper
cryptProperties
- The crypt configuration properties.public void sign(InputStream inputStream, String[] signingKeyIdents, OutputStream signatureStream)
sign
in interface CryptEngineWrapper
inputStream
- The input stream.signingKeyIdents
- The signing key idents (may be empty).signatureStream
- The signature stream.public void tearDown()
tearDown
in interface CryptEngineWrapper
public boolean verify(InputStream signedStream, InputStream signatureStream, String[] verificationKeyIdents)
verify
in interface CryptEngineWrapper
signedStream
- The signed stream.signatureStream
- The signature stream.verificationKeyIdents
- The verification key idents (may be empty).Copyright © 2003-2019 Serge Brisson. All Rights Reserved.