Package org.xwiki.crypto.cipher
Interface CipherFactory
-
- All Superinterfaces:
CipherSpecifications
@Role public interface CipherFactory extends CipherSpecifications
Factory creating block ciphers for encryption and decryption.- Since:
- 5.4M1
- Version:
- $Id: 864c091a788b14f331b54143cd8ce63de448fd5f $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Cipher
getInstance(boolean forEncryption, CipherParameters parameters)
-
Methods inherited from interface org.xwiki.crypto.cipher.CipherSpecifications
getCipherAlgorithmName, getIVSize, getKeySize, getSupportedKeySizes, isSupportedKeySize
-
-
-
-
Method Detail
-
getInstance
Cipher getInstance(boolean forEncryption, CipherParameters parameters)
- Parameters:
forEncryption
- if true the cipher is initialised for encryption, if false for decryption.parameters
- the key and other data required by the cipher.- Returns:
- an initialized cipher ready to process data.
-
-