Top Description Methods
org.bouncycastle.tls

public Interface TlsCredentialedSigner

extends TlsCredentials
Known Direct Implementers
org.bouncycastle.tls.DefaultTlsCredentialedSigner
Imports
java.io.IOException, org.bouncycastle.tls.crypto.TlsStreamSigner

Support interface for generating a signature based on our private credentials.

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

an encoded signature.
generateRawSignature
(byte[]
a message digest calculated across the message the signature is to apply to.
hash
)

Generate a signature against the passed in hash.

public SignatureAndHashAlgorithm

Returns:

the full algorithm details for the signature.
getSignatureAndHashAlgorithm
()

Return the algorithm IDs for the signature algorithm and the associated hash it uses.

public TlsStreamSigner
Inherited from org.bouncycastle.tls.TlsCredentials:
getCertificate

Method Detail

generateRawSignatureback to summary
public byte[] generateRawSignature(byte[] hash) throws IOException

Generate a signature against the passed in hash.

Parameters
hash:byte[]

a message digest calculated across the message the signature is to apply to.

Returns:byte[]

an encoded signature.

Exceptions
IOException:
if the hash cannot be processed, or there is an issue with the private credentials.
getSignatureAndHashAlgorithmback to summary
public SignatureAndHashAlgorithm getSignatureAndHashAlgorithm()

Return the algorithm IDs for the signature algorithm and the associated hash it uses.

Returns:SignatureAndHashAlgorithm

the full algorithm details for the signature.

getStreamSignerback to summary
public TlsStreamSigner getStreamSigner() throws IOException