Uses of Class
org.refcodes.security.EncryptionException
-
Uses of EncryptionException in org.refcodes.security
Modifier and TypeInterfaceDescriptioninterface
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 ofEncrypter.toEncrypted(Object)
and for forcing your plain functionality to provide a bridge to the Java Cryptographic Extension (JCE) framework'sCipherSpi
as ofEncrypter.toEncrypted(byte[], int, int, byte[], int)
.Modifier and TypeClassDescriptionclass
Thrown in case an encryption issue occurred regarding the encoding.Modifier and TypeMethodDescriptiondefault 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 at 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 and easily to be integrated in a sub-class of theCipherSpi
.Encrypter.toEncrypted
(DEC aInput) You pass in data of a given type and you get encrypted data of (another) given type.int
PasswordTextEncrypter.toEncrypted
(byte[] aBuffer, int aOffset, int aLength, byte[] aOutBuffer, int aOutOffset) For compatibility with the java.security framework and easily to be integrated in a sub-class of theCipherSpi
.PasswordTextEncrypter.toEncrypted
(String aInput) You pass in data of a given type and you get encrypted data of (another) given type.ModifierConstructorDescriptionEncryptionOutputStream
(OutputStream aOutputStream, Encrypter<byte[], byte[], EncryptionException> aEncrypter) Constructs theEncryptionOutputStream
by wrapping the givenOutputStream
for the providedEncrypter
to be applied on the bytes to be written.