org.cryptacular.spec.Spec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cryptacular Show documentation
Show all versions of cryptacular Show documentation
The spectacular complement to the Bouncy Castle crypto API for Java.
/* See LICENSE for licensing and NOTICE for copyright. */
package org.cryptacular.spec;
/**
* Specification for a cryptographic primitive, e.g. block cipher, message digest, etc.
*
* @param Type of specification.
*
* @author Middleware Services
*/
public interface Spec
{
/** @return Cryptographic algorithm name. */
String getAlgorithm();
/**
* Creates a new instance of the cryptographic primitive described by this specification.
*
* @return New instance of cryptographic primitive.
*/
T newInstance();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy