public class JcaTlsRSAPSSVerifier extends java.lang.Object implements TlsVerifier
Constructor and Description |
---|
JcaTlsRSAPSSVerifier(JcaTlsCrypto crypto,
java.security.PublicKey publicKey,
int signatureScheme) |
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.
|
public JcaTlsRSAPSSVerifier(JcaTlsCrypto crypto, java.security.PublicKey publicKey, int signatureScheme)
public boolean verifyRawSignature(DigitallySigned digitallySigned, byte[] hash) throws java.io.IOException
TlsVerifier
verifyRawSignature
in interface TlsVerifier
digitallySigned
- the signature object containing the signature to be verified.hash
- the hash calculated for the signature.java.io.IOException
- in case of an exception verifying signature.public TlsStreamVerifier getStreamVerifier(DigitallySigned digitallySigned) throws java.io.IOException
getStreamVerifier
in interface TlsVerifier
java.io.IOException