Class BlockCipherSpec

java.lang.Object
org.cryptacular.spec.BlockCipherSpec
All Implemented Interfaces:
Spec<org.bouncycastle.crypto.BlockCipher>

public class BlockCipherSpec extends Object implements Spec<org.bouncycastle.crypto.BlockCipher>
Block cipher specification.
Author:
Middleware Services
  • Constructor Details

    • BlockCipherSpec

      public BlockCipherSpec(String algName)
      Creates a new instance that describes the given block cipher algorithm.
      Parameters:
      algName - Block cipher algorithm.
  • Method Details

    • getAlgorithm

      public String getAlgorithm()
      Specified by:
      getAlgorithm in interface Spec<org.bouncycastle.crypto.BlockCipher>
      Returns:
      Cryptographic algorithm name.
    • newInstance

      public org.bouncycastle.crypto.BlockCipher newInstance()
      Description copied from interface: Spec
      Creates a new instance of the cryptographic primitive described by this specification.
      Specified by:
      newInstance in interface Spec<org.bouncycastle.crypto.BlockCipher>
      Returns:
      New instance of cryptographic primitive.
    • toString

      public String toString()
      Overrides:
      toString in class Object