public abstract class BcTlsDSSVerifier extends java.lang.Object implements TlsVerifier
Modifier and Type | Field and Description |
---|---|
protected BcTlsCrypto |
crypto |
protected org.bouncycastle.crypto.params.AsymmetricKeyParameter |
pubKey |
Modifier | Constructor and Description |
---|---|
protected |
BcTlsDSSVerifier(BcTlsCrypto crypto,
org.bouncycastle.crypto.params.AsymmetricKeyParameter pubKey) |
Modifier and Type | Method and Description |
---|---|
protected abstract org.bouncycastle.crypto.DSA |
createDSAImpl(short hashAlgorithm) |
protected abstract short |
getSignatureAlgorithm() |
TlsStreamVerifier |
getStreamVerifier(DigitallySigned signature) |
boolean |
verifyRawSignature(DigitallySigned signedParams,
byte[] hash)
Return true if the passed in signature and hash represent a real signature.
|
protected final org.bouncycastle.crypto.params.AsymmetricKeyParameter pubKey
protected final BcTlsCrypto crypto
protected BcTlsDSSVerifier(BcTlsCrypto crypto, org.bouncycastle.crypto.params.AsymmetricKeyParameter pubKey)
protected abstract org.bouncycastle.crypto.DSA createDSAImpl(short hashAlgorithm)
protected abstract short getSignatureAlgorithm()
public TlsStreamVerifier getStreamVerifier(DigitallySigned signature)
getStreamVerifier
in interface TlsVerifier
public boolean verifyRawSignature(DigitallySigned signedParams, byte[] hash)
TlsVerifier
verifyRawSignature
in interface TlsVerifier
signedParams
- the signature object containing the signature to be verified.hash
- the hash calculated for the signature.