T - the generic type of the input to encryptR - the generic type of the resultpublic interface Encryptor<T,R> extends Cryptor
Encryptor can encrypt an object of type <T> and return
the encrypted result as object of type <R>.| Modifier and Type | Method and Description |
|---|---|
R |
encrypt(T toEncrypt)
Encrypt the given object.
|
default int |
newOperationMode()
Factory callback method for get the operation mode. the operation mode can be one of the
following values: ENCRYPT_MODE, DECRYPT_MODE, WRAP_MODE or UNWRAP_MODE
|
R encrypt(T toEncrypt) throws Exception
toEncrypt - The object to encrypt.Exception - is thrown if encryption fails.default int newOperationMode()
newOperationMode in interface CryptorCopyright © 2015–2016 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.