Top Description Fields Constructors Methods
org.bouncycastle.tls.crypto.impl.jcajce

public Class JcaTlsRSAVerifier

extends Object
implements TlsVerifier
Class Inheritance
All Implemented Interfaces
org.bouncycastle.tls.crypto.TlsVerifier
Imports
java.io.IOException, java.security.GeneralSecurityException, .PublicKey, .Signature, org.bouncycastle.asn1.DERNull, org.bouncycastle.asn1.x509.AlgorithmIdentifier, .DigestInfo, org.bouncycastle.tls.DigitallySigned, .SignatureAlgorithm, .SignatureAndHashAlgorithm, .TlsUtils, org.bouncycastle.tls.crypto.TlsStreamVerifier, .TlsVerifier

Operator supporting the verification of RSASSA-PKCS1-v1_5 signatures.

Field Summary

Modifier and TypeField and Description
private final JcaTlsCrypto
private final PublicKey
private Signature

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Signature
public TlsStreamVerifier
protected boolean
public boolean
verifyRawSignature(DigitallySigned
the signature object containing the signature to be verified.
digitallySigned
,
byte[]
the hash calculated for the signature.
hash
)

Implements org.bouncycastle.tls.crypto.TlsVerifier.verifyRawSignature.

Return true if the passed in signature and hash represent a real signature.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cryptoback to summary
private final JcaTlsCrypto crypto
publicKeyback to summary
private final PublicKey publicKey
rawVerifierback to summary
private Signature rawVerifier

Constructor Detail

JcaTlsRSAVerifierback to summary
public JcaTlsRSAVerifier(JcaTlsCrypto crypto, PublicKey publicKey)

Method Detail

getRawVerifierback to summary
protected Signature getRawVerifier() throws GeneralSecurityException
getStreamVerifierback to summary
public TlsStreamVerifier getStreamVerifier(DigitallySigned digitallySigned) throws IOException

Implements org.bouncycastle.tls.crypto.TlsVerifier.getStreamVerifier.

isSunMSCAPIRawVerifierback to summary
protected boolean isSunMSCAPIRawVerifier() throws IOException
verifyRawSignatureback to summary
public boolean verifyRawSignature(DigitallySigned digitallySigned, byte[] hash) throws IOException

Implements org.bouncycastle.tls.crypto.TlsVerifier.verifyRawSignature.

Doc from org.bouncycastle.tls.crypto.TlsVerifier.verifyRawSignature.

Return true if the passed in signature and hash represent a real signature.

Parameters
digitallySigned:DigitallySigned

the signature object containing the signature to be verified.

hash:byte[]

the hash calculated for the signature.

Returns:boolean

true if signature verifies, false otherwise.

Exceptions
IOException:
in case of an exception verifying signature.