public abstract class AbstractSymmetricCipherService extends JcaCipherService
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSymmetricCipherService(String
|
| 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.
|
decrypt, decrypt, encrypt, encrypt, ensureSecureRandom, generateInitializationVector, getAlgorithmName, getDefaultSecureRandom, getInitializationVectorSize, getKeySize, getSecureRandom, getStreamingBufferSize, getTransformationString, isGenerateInitializationVectors, isGenerateInitializationVectors, setGenerateInitializationVectors, setInitializationVectorSize, setKeySize, setSecureRandom, setStreamingBufferSizeprotected AbstractSymmetricCipherService(StringalgorithmName)
public KeygenerateNewKey()
Key suitable for this CipherService's
algorithm by calling
generateNewKey(128) (uses a 128 bit size by default).
Key, 128 bits in length.
public KeygenerateNewKey(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 create