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

public Class JcaTlsRSAPSSVerifier

extends Object
implements TlsVerifier
Class Inheritance
All Implemented Interfaces
org.bouncycastle.tls.crypto.TlsVerifier
Imports
java.io.IOException, java.security.PublicKey, java.security.spec.AlgorithmParameterSpec, org.bouncycastle.tls.DigitallySigned, .SignatureAndHashAlgorithm, .SignatureScheme, org.bouncycastle.tls.crypto.TlsStreamVerifier, .TlsVerifier

Operator supporting the verification of RSASSA-PSS signatures.

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
JcaTlsRSAPSSVerifier(JcaTlsCrypto crypto, PublicKey publicKey, int signatureScheme)

Method Summary

Modifier and TypeMethod and Description
public TlsStreamVerifier
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
signatureSchemeback to summary
private final int signatureScheme

Constructor Detail

JcaTlsRSAPSSVerifierback to summary
public JcaTlsRSAPSSVerifier(JcaTlsCrypto crypto, PublicKey publicKey, int signatureScheme)

Method Detail

getStreamVerifierback to summary
public TlsStreamVerifier getStreamVerifier(DigitallySigned digitallySigned) throws IOException

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

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.