public interface CryptEngineWrapper
| 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.
|
static final ClassDef IMPL
@CheckReturnValue
void decrypt(@Nonnull
InputStream encryptedStream,
@Nonnull
String[] decryptionKeyIdents,
@Nonnull
OutputStream decryptedStream)
throws CryptException
encryptedStream - The encrypted stream.decryptionKeyIdents - The decryption key ident (may be empty).decryptedStream - The decrypted stream.CryptException - On failure.@CheckReturnValue
void encrypt(@Nonnull
InputStream inputStream,
@Nonnull
String[] encryptionKeyIdents,
@Nonnull
OutputStream encryptedStream)
throws CryptException
inputStream - The input stream.encryptionKeyIdents - The encryption key idents (may be empty).encryptedStream - The encrypted stream.CryptException - On failure.@CheckReturnValue boolean isSecure()
@CheckReturnValue
boolean setUp(@Nonnull
KeyedGroups cryptProperties)
cryptProperties - The crypt configuration properties.@CheckReturnValue
void sign(@Nonnull
InputStream inputStream,
@Nonnull
String[] signingKeyIdents,
@Nonnull
OutputStream signatureStream)
throws CryptException
inputStream - The input stream.signingKeyIdents - The signing key idents (may be empty).signatureStream - The signature stream.CryptException - On failure.void tearDown()
@CheckReturnValue
boolean verify(@Nonnull
InputStream signedStream,
@Nonnull
InputStream signatureStream,
@Nonnull
String[] verificationKeyIdents)
throws CryptException
signedStream - The signed stream.signatureStream - The signature stream.verificationKeyIdents - The verification key idents (may be empty).CryptException - On failure.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.