public class JcaTlsRSAVerifier extends java.lang.Object implements TlsVerifier
| Constructor and Description |
|---|
JcaTlsRSAVerifier(JcaTlsCrypto crypto,
java.security.PublicKey publicKey) |
| Modifier and Type | Method and Description |
|---|---|
protected java.security.Signature |
getRawVerifier() |
TlsStreamVerifier |
getStreamVerifier(DigitallySigned digitallySigned) |
protected boolean |
isSunMSCAPIRawVerifier() |
boolean |
verifyRawSignature(DigitallySigned digitallySigned,
byte[] hash)
Return true if the passed in signature and hash represent a real signature.
|
public JcaTlsRSAVerifier(JcaTlsCrypto crypto, java.security.PublicKey publicKey)
public TlsStreamVerifier getStreamVerifier(DigitallySigned digitallySigned) throws java.io.IOException
getStreamVerifier in interface TlsVerifierjava.io.IOExceptionpublic boolean verifyRawSignature(DigitallySigned digitallySigned, byte[] hash) throws java.io.IOException
TlsVerifierverifyRawSignature in interface TlsVerifierdigitallySigned - 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.protected java.security.Signature getRawVerifier()
throws java.security.GeneralSecurityException
java.security.GeneralSecurityExceptionprotected boolean isSunMSCAPIRawVerifier()
throws java.io.IOException
java.io.IOException