public abstract class JcaTlsDSSVerifier extends java.lang.Object implements TlsVerifier
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
algorithmName |
protected short |
algorithmType |
protected JcaTlsCrypto |
crypto |
protected java.security.PublicKey |
publicKey |
Modifier | Constructor and Description |
---|---|
protected |
JcaTlsDSSVerifier(JcaTlsCrypto crypto,
java.security.PublicKey publicKey,
short algorithmType,
java.lang.String algorithmName) |
Modifier and Type | Method and Description |
---|---|
TlsStreamVerifier |
getStreamVerifier(DigitallySigned digitallySigned) |
boolean |
verifyRawSignature(DigitallySigned digitallySigned,
byte[] hash)
Return true if the passed in signature and hash represent a real signature.
|
protected final JcaTlsCrypto crypto
protected final java.security.PublicKey publicKey
protected final short algorithmType
protected final java.lang.String algorithmName
protected JcaTlsDSSVerifier(JcaTlsCrypto crypto, java.security.PublicKey publicKey, short algorithmType, java.lang.String algorithmName)
public TlsStreamVerifier getStreamVerifier(DigitallySigned digitallySigned) throws java.io.IOException
getStreamVerifier
in interface TlsVerifier
java.io.IOException
public boolean verifyRawSignature(DigitallySigned digitallySigned, byte[] hash)
TlsVerifier
verifyRawSignature
in interface TlsVerifier
digitallySigned
- the signature object containing the signature to be verified.hash
- the hash calculated for the signature.