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
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final shortprotected final JcaTlsCryptoprotected final PublicKey -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJcaTlsDSSVerifier(JcaTlsCrypto crypto, PublicKey publicKey, short algorithmType, String algorithmName) -
Method Summary
Modifier and TypeMethodDescriptiongetStreamVerifier(DigitallySigned digitallySigned) booleanverifyRawSignature(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:
getStreamVerifierin interfaceTlsVerifier- Throws:
IOException
-
verifyRawSignature
Description copied from interface:TlsVerifierReturn true if the passed in signature and hash represent a real signature.- Specified by:
verifyRawSignaturein 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.
-