Class JcaTlsRSAPSSVerifier
java.lang.Object
org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsRSAPSSVerifier
- All Implemented Interfaces:
TlsVerifier
Operator supporting the verification of RSASSA-PSS signatures.
-
Constructor Summary
ConstructorDescriptionJcaTlsRSAPSSVerifier
(JcaTlsCrypto crypto, PublicKey publicKey, int signatureScheme) -
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.
-
Constructor Details
-
JcaTlsRSAPSSVerifier
-
-
Method Details
-
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.
-
getStreamVerifier
- Specified by:
getStreamVerifier
in interfaceTlsVerifier
- Throws:
IOException
-