All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bouncycastle.crypto.SignatureOperatorFactory Maven / Gradle / Ivy

Go to download

The FIPS 140-2 Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms certified to FIPS 140-2 level 1. This jar contains the debug version JCE provider and low-level API for the BC-FJA version 1.0.2.3, FIPS Certificate #3514. Please note the debug jar is not certified.

There is a newer version: 2.0.0
Show newest version
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);

    /**
     * Create a validator which will verify against data written to
     * its output stream against a signature.
     *
     * @param key the verification key to use.
     * @param parameters the parameters to use to initialize the verifier.
     * @param signature the signature that the data is to be validated against.
     * @return an OutputValidator.
     */
    OutputValidator createValidator(AsymmetricPublicKey key, T parameters, byte[] signature)
        throws InvalidSignatureException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy