Top Description Methods
org.bouncycastle.tls.crypto

public Interface TlsSigner

Known Direct Implementers
org.bouncycastle.tls.crypto.impl.bc.BcTlsSigner, org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsDSSSigner, org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsECDSA13Signer, org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsEdDSASigner, org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsRSAPSSSigner, org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsRSASigner
Imports
java.io.IOException, org.bouncycastle.tls.SignatureAndHashAlgorithm

Base interface for a TLS signer that works on raw message digests.

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

an encoded signature.
generateRawSignature
(SignatureAndHashAlgorithm
the signature algorithm to use.
algorithm
,
byte[]
the hash calculated for the signature.
hash
)

Generate an encoded signature based on the passed in hash.

public TlsStreamSigner

Method Detail

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

Generate an encoded signature based on the passed in hash.

Parameters
algorithm:SignatureAndHashAlgorithm

the signature algorithm to use.

hash:byte[]

the hash calculated for the signature.

Returns:byte[]

an encoded signature.

Exceptions
IOException:
in case of an exception processing the hash.
getStreamSignerback to summary
public TlsStreamSigner getStreamSigner(SignatureAndHashAlgorithm algorithm) throws IOException