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

public Class JcaTlsRSAPSSSigner

extends Object
implements TlsSigner
Class Inheritance
All Implemented Interfaces
org.bouncycastle.tls.crypto.TlsSigner
Imports
java.io.IOException, java.security.PrivateKey, java.security.spec.AlgorithmParameterSpec, org.bouncycastle.tls.SignatureAndHashAlgorithm, .SignatureScheme, org.bouncycastle.tls.crypto.TlsSigner, .TlsStreamSigner

Operator supporting the generation of RSASSA-PSS signatures.

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
JcaTlsRSAPSSSigner(JcaTlsCrypto crypto, PrivateKey privateKey, int signatureScheme)

Method Summary

Modifier and TypeMethod and Description
public byte[]
generateRawSignature(SignatureAndHashAlgorithm
the signature algorithm to use.
algorithm
,
byte[]
the hash calculated for the signature.
hash
)

Implements org.bouncycastle.tls.crypto.TlsSigner.generateRawSignature.

Generate an encoded signature based on the passed in hash.

public TlsStreamSigner
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cryptoback to summary
private final JcaTlsCrypto crypto
privateKeyback to summary
private final PrivateKey privateKey
signatureSchemeback to summary
private final int signatureScheme

Constructor Detail

JcaTlsRSAPSSSignerback to summary
public JcaTlsRSAPSSSigner(JcaTlsCrypto crypto, PrivateKey privateKey, int signatureScheme)

Method Detail

generateRawSignatureback to summary
public byte[] generateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash) throws IOException

Implements org.bouncycastle.tls.crypto.TlsSigner.generateRawSignature.

Doc from org.bouncycastle.tls.crypto.TlsSigner.generateRawSignature.

Generate an encoded signature based on the passed in hash.

Parameters
algorithm:SignatureAndHashAlgorithm

the signature algorithm to use.

hash:byte[]

the hash calculated for the signature.

Returns:byte[]

an encoded signature.

Exceptions
IOException:
in case of an exception processing the hash.
getStreamSignerback to summary
public TlsStreamSigner getStreamSigner(SignatureAndHashAlgorithm algorithm) throws IOException

Implements org.bouncycastle.tls.crypto.TlsSigner.getStreamSigner.