public abstract class JcaTlsDSSSigner extends java.lang.Object implements TlsSigner
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
algorithmName |
protected short |
algorithmType |
protected JcaTlsCrypto |
crypto |
protected java.security.PrivateKey |
privateKey |
Modifier | Constructor and Description |
---|---|
protected |
JcaTlsDSSSigner(JcaTlsCrypto crypto,
java.security.PrivateKey privateKey,
short algorithmType,
java.lang.String algorithmName) |
Modifier and Type | Method and Description |
---|---|
byte[] |
generateRawSignature(SignatureAndHashAlgorithm algorithm,
byte[] hash)
Generate an encoded signature based on the passed in hash.
|
TlsStreamSigner |
getStreamSigner(SignatureAndHashAlgorithm algorithm) |
protected final JcaTlsCrypto crypto
protected final java.security.PrivateKey privateKey
protected final short algorithmType
protected final java.lang.String algorithmName
protected JcaTlsDSSSigner(JcaTlsCrypto crypto, java.security.PrivateKey privateKey, short algorithmType, java.lang.String algorithmName)
public byte[] generateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash) throws java.io.IOException
TlsSigner
generateRawSignature
in interface TlsSigner
algorithm
- the signature algorithm to use.hash
- the hash calculated for the signature.java.io.IOException
- in case of an exception processing the hash.public TlsStreamSigner getStreamSigner(SignatureAndHashAlgorithm algorithm) throws java.io.IOException
getStreamSigner
in interface TlsSigner
java.io.IOException