Top Description Fields Constructors Methods
org.bouncycastle.tls.crypto.impl.jcajce

public abstract Class JcaTlsDSSSigner

extends Object
implements TlsSigner
Class Inheritance
All Implemented Interfaces
org.bouncycastle.tls.crypto.TlsSigner
Known Direct Subclasses
org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsECDSASigner, org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsDSASigner
Imports
java.io.IOException, java.security.GeneralSecurityException, .PrivateKey, .Signature, org.bouncycastle.tls.AlertDescription, .SignatureAndHashAlgorithm, .TlsFatalAlert, org.bouncycastle.tls.crypto.TlsSigner, .TlsStreamSigner

JCA base class for the signers implementing the two DSA style algorithms from FIPS PUB 186-4: DSA and ECDSA.

Field Summary

Modifier and TypeField and Description
protected final String
protected final short
protected final JcaTlsCrypto
protected final PrivateKey

Constructor Summary

AccessConstructor and Description
protected
JcaTlsDSSSigner(JcaTlsCrypto crypto, PrivateKey privateKey, short algorithmType, String algorithmName)

Method Summary

Modifier and TypeMethod and Description
public byte[]
generateRawSignature(SignatureAndHashAlgorithm
the signature algorithm to use.
algorithm
,
byte[]
the hash calculated for the signature.
hash
)

Implements org.bouncycastle.tls.crypto.TlsSigner.generateRawSignature.

Generate an encoded signature based on the passed in hash.

public TlsStreamSigner
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

algorithmNameback to summary
protected final String algorithmName
algorithmTypeback to summary
protected final short algorithmType
cryptoback to summary
protected final JcaTlsCrypto crypto
privateKeyback to summary
protected final PrivateKey privateKey

Constructor Detail

JcaTlsDSSSignerback to summary
protected JcaTlsDSSSigner(JcaTlsCrypto crypto, PrivateKey privateKey, short algorithmType, String algorithmName)

Method Detail

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

Implements org.bouncycastle.tls.crypto.TlsSigner.generateRawSignature.

Doc from org.bouncycastle.tls.crypto.TlsSigner.generateRawSignature.

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

Implements org.bouncycastle.tls.crypto.TlsSigner.getStreamSigner.