public abstract class AbstractSymmetricCipherService extends JcaCipherService
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSymmetricCipherService(String algorithmName) |
| Modifier and Type | Method and Description |
|---|---|
Key |
generateNewKey()
Generates a new
Key suitable for this CipherService's algorithm
by calling generateNewKey(128) (uses a 128 bit size by default). |
Key |
generateNewKey(int keyBitSize)
Generates a new
Key of the specified size suitable for this CipherService
(based on the algorithmName using the JDK KeyGenerator. |
createParameterSpec, decrypt, decrypt, encrypt, encrypt, ensureSecureRandom, generateInitializationVector, getAlgorithmName, getDefaultSecureRandom, getInitializationVectorSize, getKeySize, getSecureRandom, getStreamingBufferSize, getTransformationString, isGenerateInitializationVectors, isGenerateInitializationVectors, setGenerateInitializationVectors, setInitializationVectorSize, setKeySize, setSecureRandom, setStreamingBufferSizeprotected AbstractSymmetricCipherService(String algorithmName)
public Key generateNewKey()
Key suitable for this CipherService's algorithm
by calling generateNewKey(128) (uses a 128 bit size by default).Key, 128 bits in length.public Key generateNewKey(int keyBitSize)
Key of the specified size suitable for this CipherService
(based on the algorithmName using the JDK KeyGenerator.keyBitSize - the bit size of the key to createCopyright © 2004–2019 The Apache Software Foundation. All rights reserved.