Class StreamCipherSpec

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

public class StreamCipherSpec extends Object implements Spec<org.bouncycastle.crypto.StreamCipher>
Stream cipher specification.
Author:
Middleware Services
  • Constructor Details

    • StreamCipherSpec

      public StreamCipherSpec(String algName)
      Creates a new instance that describes the given stream cipher algorithm.
      Parameters:
      algName - Stream cipher algorithm.
  • Method Details

    • getAlgorithm

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

      public org.bouncycastle.crypto.StreamCipher 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.StreamCipher>
      Returns:
      New instance of cryptographic primitive.
    • toString

      public String toString()
      Overrides:
      toString in class Object