Class JcaTlsDSSVerifier
java.lang.Object
org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsDSSVerifier
- All Implemented Interfaces:
TlsVerifier
- Direct Known Subclasses:
JcaTlsDSAVerifier
,JcaTlsECDSAVerifier
JCA base class for the verifiers implementing the two DSA style algorithms from FIPS PUB 186-4: DSA and ECDSA.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final String
protected final short
protected final JcaTlsCrypto
protected final PublicKey
-
Constructor Summary
ModifierConstructorDescriptionprotected
JcaTlsDSSVerifier
(JcaTlsCrypto crypto, PublicKey publicKey, short algorithmType, String algorithmName) -
Method Summary
Modifier and TypeMethodDescriptiongetStreamVerifier
(DigitallySigned digitallySigned) boolean
verifyRawSignature
(DigitallySigned digitallySigned, byte[] hash) Return true if the passed in signature and hash represent a real signature.
-
Field Details
-
crypto
-
publicKey
-
algorithmType
protected final short algorithmType -
algorithmName
-
-
Constructor Details
-
JcaTlsDSSVerifier
protected JcaTlsDSSVerifier(JcaTlsCrypto crypto, PublicKey publicKey, short algorithmType, String algorithmName)
-
-
Method Details
-
getStreamVerifier
- Specified by:
getStreamVerifier
in interfaceTlsVerifier
- Throws:
IOException
-
verifyRawSignature
Description copied from interface:TlsVerifier
Return true if the passed in signature and hash represent a real signature.- Specified by:
verifyRawSignature
in interfaceTlsVerifier
- Parameters:
digitallySigned
- the signature object containing the signature to be verified.hash
- the hash calculated for the signature.- Returns:
- true if signature verifies, false otherwise.
-