public class SimpleBaseDecryptor extends BaseCryptor implements IntegerDecryptor
SimpleBaseDecryptor.model| Constructor and Description |
|---|
SimpleBaseDecryptor(String privateKey)
Instantiates a new
SimpleBaseDecryptor with the given private key. |
| Modifier and Type | Method and Description |
|---|---|
Integer |
decrypt(Integer encypted)
Decrypt the given encrypted 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 SimpleBaseDecryptor(String privateKey) throws InvalidKeyException, NoSuchAlgorithmException, InvalidKeySpecException, NoSuchPaddingException, InvalidAlgorithmParameterException, UnsupportedEncodingException
SimpleBaseDecryptor 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 Integer decrypt(Integer encypted) throws Exception
public int newOperationMode()
newOperationMode in interface CryptorCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.