Top Description Fields Constructors Methods
org.bouncycastle.tls

public Class DefaultTlsCredentialedSigner

extends Object
implements TlsCredentialedSigner
Class Inheritance
All Implemented Interfaces
org.bouncycastle.tls.TlsCredentialedSigner, org.bouncycastle.tls.TlsCredentials
Known Direct Subclasses
org.bouncycastle.tls.crypto.impl.bc.BcDefaultTlsCredentialedSigner, org.bouncycastle.tls.crypto.impl.jcajce.JcaDefaultTlsCredentialedSigner
Imports
java.io.IOException, org.bouncycastle.tls.crypto.TlsCryptoParameters, .TlsSigner, .TlsStreamSigner, org.bouncycastle.tls.crypto.impl.TlsImplUtils

Container class for generating signatures that carries the signature type, parameters, public key certificate and public key's associated signer object.

Field Summary

Modifier and TypeField and Description
protected Certificate
protected TlsCryptoParameters
protected SignatureAndHashAlgorithm
protected TlsSigner

Constructor Summary

AccessConstructor and Description
public
DefaultTlsCredentialedSigner(TlsCryptoParameters cryptoParams, TlsSigner signer, Certificate certificate, SignatureAndHashAlgorithm signatureAndHashAlgorithm)

Method Summary

Modifier and TypeMethod and Description
public byte[]
generateRawSignature(byte[]
a message digest calculated across the message the signature is to apply to.
hash
)

Implements org.bouncycastle.tls.TlsCredentialedSigner.generateRawSignature.

Generate a signature against the passed in hash.

public Certificate
getCertificate()

Implements org.bouncycastle.tls.TlsCredentials.getCertificate.

Return the certificate structure representing our identity.

protected SignatureAndHashAlgorithm
public SignatureAndHashAlgorithm
getSignatureAndHashAlgorithm()

Implements org.bouncycastle.tls.TlsCredentialedSigner.getSignatureAndHashAlgorithm.

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

public TlsStreamSigner
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

certificateback to summary
protected Certificate certificate
cryptoParamsback to summary
protected TlsCryptoParameters cryptoParams
signatureAndHashAlgorithmback to summary
protected SignatureAndHashAlgorithm signatureAndHashAlgorithm
signerback to summary
protected TlsSigner signer

Constructor Detail

DefaultTlsCredentialedSignerback to summary
public DefaultTlsCredentialedSigner(TlsCryptoParameters cryptoParams, TlsSigner signer, Certificate certificate, SignatureAndHashAlgorithm signatureAndHashAlgorithm)

Method Detail

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

Implements org.bouncycastle.tls.TlsCredentialedSigner.generateRawSignature.

Doc from org.bouncycastle.tls.TlsCredentialedSigner.generateRawSignature.

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.
getCertificateback to summary
public Certificate getCertificate()

Implements org.bouncycastle.tls.TlsCredentials.getCertificate.

Doc from org.bouncycastle.tls.TlsCredentials.getCertificate.

Return the certificate structure representing our identity.

Returns:Certificate

our certificate structure.

getEffectiveAlgorithmback to summary
protected SignatureAndHashAlgorithm getEffectiveAlgorithm()
getSignatureAndHashAlgorithmback to summary
public SignatureAndHashAlgorithm getSignatureAndHashAlgorithm()

Implements org.bouncycastle.tls.TlsCredentialedSigner.getSignatureAndHashAlgorithm.

Doc from org.bouncycastle.tls.TlsCredentialedSigner.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

Implements org.bouncycastle.tls.TlsCredentialedSigner.getStreamSigner.