public class SimpleBaseEncryptor extends BaseCryptor implements IntegerEncryptor
SimpleBaseEncryptor.model| Constructor and Description |
|---|
SimpleBaseEncryptor(String privateKey)
Instantiates a new
SimpleBaseEncryptor with the given private key. |
| Modifier and Type | Method and Description |
|---|---|
Integer |
encrypt(Integer toEncrypt)
Encrypt the given object.
|
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
|
newCipher, newCipher, newKeySpecnewAlgorithm, newAlgorithmParameterSpec, newCipher, newIterationCount, newSalt, newSecretKeyFactory, onInitializepublic SimpleBaseEncryptor(String privateKey) throws InvalidKeyException, NoSuchAlgorithmException, InvalidKeySpecException, NoSuchPaddingException, InvalidAlgorithmParameterException, UnsupportedEncodingException
SimpleBaseEncryptor with the given private key.privateKey - The private key.InvalidAlgorithmParameterException - is thrown if initialization of the cypher object fails.NoSuchPaddingException - is thrown if instantiation of the SecretKeyFactory object fails.InvalidKeySpecException - is thrown if generation of the SecretKey object fails.NoSuchAlgorithmException - is thrown if instantiation of the SecretKeyFactory object fails.InvalidKeyException - is thrown if initialization of the cypher object fails.NoSuchAlgorithmException - is thrown if instantiation of the SecretKeyFactory object fails.UnsupportedEncodingException - is thrown if the named charset is not supported.public int newOperationMode()
newOperationMode in interface CryptorCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.