C - the generic type of the cipherK - the generic type of the keypublic abstract class AbstractEncryptor<C,K> extends AbstractCryptor<C,K> implements de.alpharogroup.crypto.api.Cryptor
AbstractEncryptor can be extended for providing the encrypting
feature.model| Constructor and Description |
|---|
AbstractEncryptor(de.alpharogroup.crypto.model.CryptModel<C,K> model)
Constructor with the given
CryptModel. |
AbstractEncryptor(K key)
Constructor with a key.
|
| Modifier and Type | Method and Description |
|---|---|
int |
newOperationMode() |
newAlgorithm, newAlgorithmParameterSpec, newCipher, newCipher, newIterationCount, newSalt, newSecretKeyFactory, onInitializepublic AbstractEncryptor(de.alpharogroup.crypto.model.CryptModel<C,K> model) throws InvalidKeyException, NoSuchAlgorithmException, InvalidKeySpecException, NoSuchPaddingException, InvalidAlgorithmParameterException, UnsupportedEncodingException
CryptModel.model - The crypt model.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 AbstractEncryptor(K key) throws InvalidKeyException, NoSuchAlgorithmException, InvalidKeySpecException, NoSuchPaddingException, InvalidAlgorithmParameterException, UnsupportedEncodingException
key - The 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.Copyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.