public abstract class BaseEncryptor<T,R> extends AbstractCryptor implements GenericEncryptor<T,R>
cipher| Constructor and Description |
|---|
BaseEncryptor(String privateKey)
Constructor with a private key.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
newOperationMode()
Abstact 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
|
newAlgorithm, newAlgorithmParameterSpec, newCipher, newCipher, newCipher, newIterationCount, newKeySpec, newSalt, newSecretKeyFactory, onInitializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitencryptpublic BaseEncryptor(String privateKey) throws InvalidKeyException, NoSuchAlgorithmException, InvalidKeySpecException, NoSuchPaddingException, InvalidAlgorithmParameterException, UnsupportedEncodingException
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.UnsupportedEncodingException - is thrown if the named charset is not supported.protected final int newOperationMode()
newOperationMode in class AbstractCryptorCopyright © 2015–2016 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.