Modifier and Type | Interface | Description |
---|---|---|
interface |
Crypter<ENC,DEC,ENCEXC extends EncryptionException,DECEXC extends DecryptionException> |
|
interface |
Encrypter<ENC,DEC,EXC extends EncryptionException> |
Plain interface for providing straight forward encryption functionality as of
Encrypter.toEncrypted(Object) and for forcing your plain functionality to
provide a bridge to the Java Cryptographic Extension (JCE) framework's
CipherSpi as of Encrypter.toEncrypted(byte[], int, int, byte[], int) . |
Modifier and Type | Method | Description |
---|---|---|
default int |
Encrypter.encrypt(byte[] aBuffer) |
This method encrypts the provided buffer.
|
default int |
Encrypter.encrypt(byte[] aBuffer,
int aOffset,
int aLength) |
This method encrypts the provided buffer beginning sat the given offset
and the given number of bytes.
|
int |
Encrypter.toEncrypted(byte[] aBuffer,
int aOffset,
int aLength,
byte[] aOutBuffer,
int aOutOffset) |
For compatibility with the java.security framework, especially to be
integrated in a sub-class of the
CipherSpi . |
ENC |
Encrypter.toEncrypted(DEC aInput) |
You pass in data of a given type and you get encrypted data of (another)
given type.
|
Constructor | Description |
---|---|
DecryptionOutputStream(OutputStream aOutputStream,
Encrypter<byte[],byte[],EncryptionException> aEncrypter) |
Constructs the
DecryptionOutputStream by wrapping the given
OutputStream for the provided Encrypter to be applied on
the bytes to be written. |
Copyright © 2021. All rights reserved.