Package org.cryptacular.spec
Class BlockCipherSpec
java.lang.Object
org.cryptacular.spec.BlockCipherSpec
- All Implemented Interfaces:
Spec<org.bouncycastle.crypto.BlockCipher>
Block cipher specification.
- Author:
- Middleware Services
-
Constructor Summary
ConstructorsConstructorDescriptionBlockCipherSpec(String algName) Creates a new instance that describes the given block cipher algorithm. -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.crypto.BlockCipherCreates a new instance of the cryptographic primitive described by this specification.toString()
-
Constructor Details
-
BlockCipherSpec
Creates a new instance that describes the given block cipher algorithm.- Parameters:
algName- Block cipher algorithm.
-
-
Method Details
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceSpec<org.bouncycastle.crypto.BlockCipher>- Returns:
- Cryptographic algorithm name.
-
newInstance
public org.bouncycastle.crypto.BlockCipher newInstance()Description copied from interface:SpecCreates a new instance of the cryptographic primitive described by this specification.- Specified by:
newInstancein interfaceSpec<org.bouncycastle.crypto.BlockCipher>- Returns:
- New instance of cryptographic primitive.
-
toString
-