T - the concrete type of this object.public abstract class AbstractStreamCipherParameters<T extends AbstractStreamCipherParameters<T>> extends AbstractSymmetricAlgorithmParameters<T>
KEY_SIZE_128, KEY_SIZE_192, KEY_SIZE_256, MAC_ALGORITHM_HMAC_MD5, MAC_ALGORITHM_HMAC_SHA1, MAC_ALGORITHM_HMAC_SHA224, MAC_ALGORITHM_HMAC_SHA256, MAC_ALGORITHM_HMAC_SHA3_224, MAC_ALGORITHM_HMAC_SHA3_256, MAC_ALGORITHM_HMAC_SHA3_384, MAC_ALGORITHM_HMAC_SHA3_512, MAC_ALGORITHM_HMAC_SHA384, MAC_ALGORITHM_HMAC_SHA512, MAC_ALGORITHM_HMAC_SHA512_224, MAC_ALGORITHM_HMAC_SHA512_256, MAC_KEY_SIZE_128, MAC_KEY_SIZE_160| Modifier | Constructor and Description |
|---|---|
protected |
AbstractStreamCipherParameters()
Initializes the AbstractStreamCipherParameters.
|
protected |
AbstractStreamCipherParameters(TextEncoder textEncoder)
Initializes the AbstractStreamCipherParameters with a
TextEncoder which is used to
decode the key when set as a string. |
| Modifier and Type | Method and Description |
|---|---|
AlgorithmParameterSpec |
getParameterSpec(byte[] messageData)
Returns an algorithm-specific
AlgorithmParameterSpec object used to hold algorithm
parameters such as an initialization vector or salt from the enciphered message. |
int |
getParameterSpecSize()
Returns the algorithm parameter data size.
|
String |
getTransformation()
Returns the transformation value.
|
generateKeyData, getDecryptionKey, getKey, loadKey, setKey, setKey, setKey, setKeyLoadercreateParameterSpec, generateParameterSpecData, getAlgorithm, getDefaultAlgorithm, getDefaultKeySize, getEncryptionKey, getKeySize, getMacAlgorithm, getMacKey, getMacKeySize, getProvider, getProviderName, hasDecryptionKey, hasEncryptionKey, parseAndVerifySalt, setAlgorithm, setDecryptionKey, setDecryptionKey, setDecryptionKey, setDecryptionKeyLoader, setEncryptionKey, setEncryptionKey, setEncryptionKey, setEncryptionKeyLoader, setKeySize, setMacAlgorithm, setMacKey, setMacKey, setMacKey, setMacKeyLoader, setMacKeySize, setProvider, setProviderName, setSaltGenerator, setSaltMatcherclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateParameterSpec, generateParameterSpecData, getAlgorithm, getEncryptionKey, getKeySize, getMacAlgorithm, getMacKey, getMacKeySize, getProvider, getProviderName, setKeySize, setMacAlgorithm, setMacKey, setMacKey, setMacKey, setMacKeyLoader, setMacKeySize, setProvider, setProviderName, setSaltGenerator, setSaltMatcherprotected AbstractStreamCipherParameters()
protected AbstractStreamCipherParameters(TextEncoder textEncoder)
TextEncoder which is used to
decode the key when set as a string.textEncoder - the TextEncoderpublic String getTransformation()
public int getParameterSpecSize()
public AlgorithmParameterSpec getParameterSpec(byte[] messageData) throws GeneralSecurityException
AlgorithmParameterSpec object used to hold algorithm
parameters such as an initialization vector or salt from the enciphered message.messageData - the message data byte array which holds the parameter dataAlgorithmParameterSpec objectGeneralSecurityException - GeneralSecurityException