org.bouncycastle.crypto.SignatureOperatorFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bc-fips Show documentation
Show all versions of bc-fips Show documentation
The FIPS 140-3 Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms certified to FIPS 140-3 level 1. This jar contains JCE provider and low-level API for the BC-FJA version 2.0.0, FIPS Certificate #4743. Please see certificate for certified platform details.
package org.bouncycastle.crypto;
/**
* Interface describing an operator factory that produces signers and verifiers.
*
* @param the parameter type for the signers and verifiers we produce.
*/
public interface SignatureOperatorFactory
{
/**
* Create a signer which will create signatures against data written to
* its output stream.
*
* @param key the signing key to use.
* @param parameters the parameters to use to initialize the signer.
* @return an OutputSigner.
*/
OutputSigner createSigner(AsymmetricPrivateKey key, T parameters);
/**
* Create a verifier which will verify signatures against data written to
* its output stream.
*
* @param key the verification key to use.
* @param parameters the parameters to use to initialize the verifier.
* @return an OutputVerifier.
*/
OutputVerifier createVerifier(AsymmetricPublicKey key, T parameters);
}