public class JcaTlsRSAVerifier extends java.lang.Object implements TlsVerifier
| Modifier and Type | Field and Description |
|---|---|
protected java.security.interfaces.RSAPublicKey |
pubKeyRSA |
| Constructor and Description |
|---|
JcaTlsRSAVerifier(java.security.interfaces.RSAPublicKey pubKeyRSA,
org.spongycastle.jcajce.util.JcaJceHelper helper) |
| Modifier and Type | Method and Description |
|---|---|
protected java.security.Signature |
getRawVerifier() |
TlsStreamVerifier |
getStreamVerifier(DigitallySigned signature) |
boolean |
verifyRawSignature(DigitallySigned signedParams,
byte[] hash)
Return true if the passed in signature and hash represent a real signature.
|
public JcaTlsRSAVerifier(java.security.interfaces.RSAPublicKey pubKeyRSA,
org.spongycastle.jcajce.util.JcaJceHelper helper)
public TlsStreamVerifier getStreamVerifier(DigitallySigned signature) throws java.io.IOException
getStreamVerifier in interface TlsVerifierjava.io.IOExceptionpublic boolean verifyRawSignature(DigitallySigned signedParams, byte[] hash) throws java.io.IOException
TlsVerifierverifyRawSignature in interface TlsVerifiersignedParams - 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.GeneralSecurityException