Class JcaTlsRSAVerifier
java.lang.Object
org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsRSAVerifier
- All Implemented Interfaces:
TlsVerifier
Operator supporting the verification of RSASSA-PKCS1-v1_5 signatures.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Signature
getStreamVerifier
(DigitallySigned digitallySigned) protected boolean
boolean
verifyRawSignature
(DigitallySigned digitallySigned, byte[] hash) Return true if the passed in signature and hash represent a real signature.
-
Constructor Details
-
JcaTlsRSAVerifier
-
-
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.
- Throws:
IOException
- in case of an exception verifying signature.
-
getRawVerifier
- Throws:
GeneralSecurityException
-
isSunMSCAPIRawVerifier
- Throws:
IOException
-