public class Rc4Parameters extends AbstractStreamCipherParameters<Rc4Parameters>
| Modifier and Type | Field and Description |
|---|---|
static String |
ALGORITHM_RC4
Algorithm for RC4 encryption.
|
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| Constructor and Description |
|---|
Rc4Parameters()
Initializes the Rc4Parameters.
|
Rc4Parameters(TextEncoder textEncoder)
Initializes the Rc4Parameters with a
TextEncoder which is used to decode the key when
set as a string. |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getDefaultAlgorithm()
Returns the defaultAlgorithm.
|
getParameterSpec, getParameterSpecSize, getTransformationgenerateKeyData, getDecryptionKey, getKey, loadKey, setKey, setKey, setKey, setKeyLoadercreateParameterSpec, generateParameterSpecData, getAlgorithm, 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, setSaltMatcherpublic static final String ALGORITHM_RC4
public Rc4Parameters()
public Rc4Parameters(TextEncoder textEncoder)
TextEncoder which is used to decode the key when
set as a string. The default transformation is 'RC4' with a key size of 128 bits.textEncoder - the TextEncoderprotected String getDefaultAlgorithm()
getDefaultAlgorithm in class AbstractAlgorithmParameters<Rc4Parameters>