Interface Spec<T>

Type Parameters:
T - Type of specification.
All Known Implementing Classes:
AEADBlockCipherSpec, BlockCipherSpec, BufferedBlockCipherSpec, CodecSpec, DigestSpec, KeyedBlockCipherSpec, StreamCipherSpec

public interface Spec<T>
Specification for a cryptographic primitive, e.g. block cipher, message digest, etc.
Author:
Middleware Services
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Creates a new instance of the cryptographic primitive described by this specification.
  • Method Details

    • getAlgorithm

      String getAlgorithm()
      Returns:
      Cryptographic algorithm name.
    • newInstance

      T newInstance()
      Creates a new instance of the cryptographic primitive described by this specification.
      Returns:
      New instance of cryptographic primitive.