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

org.bouncycastle.tls.TlsCredentialedSigner Maven / Gradle / Ivy

Go to download

The Bouncy Castle Java APIs for the TLS, including a JSSE provider. The APIs are designed primarily to be used in conjunction with the BC FIPS provider. The APIs may also be used with other providers although if being used in a FIPS context it is the responsibility of the user to ensure that any other providers used are FIPS certified and used appropriately.

There is a newer version: 2.0.19
Show newest version
package org.bouncycastle.tls;

import java.io.IOException;

import org.bouncycastle.tls.crypto.TlsStreamSigner;

/**
 * Support interface for generating a signature based on our private credentials.
 */
public interface TlsCredentialedSigner
    extends TlsCredentials
{
    /**
     * Generate a signature against the passed in hash.
     *
     * @param hash a message digest calculated across the message the signature is to apply to.
     * @return an encoded signature.
     * @throws IOException if the hash cannot be processed, or there is an issue with the private credentials.
     */
    byte[] generateRawSignature(byte[] hash)
        throws IOException;

    /**
     * Return the algorithm IDs for the signature algorithm and the associated hash it uses.
     *
     * @return the full algorithm details for the signature.
     */
    SignatureAndHashAlgorithm getSignatureAndHashAlgorithm();

    TlsStreamSigner getStreamSigner() throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy