Class JcaTlsRSAPSSSigner
java.lang.Object
org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsRSAPSSSigner
- All Implemented Interfaces:
TlsSigner
Operator supporting the generation of RSASSA-PSS signatures.
-
Constructor Summary
ConstructorDescriptionJcaTlsRSAPSSSigner
(JcaTlsCrypto crypto, PrivateKey privateKey, int signatureScheme) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
generateRawSignature
(SignatureAndHashAlgorithm algorithm, byte[] hash) Generate an encoded signature based on the passed in hash.getStreamSigner
(SignatureAndHashAlgorithm algorithm)
-
Constructor Details
-
JcaTlsRSAPSSSigner
-
-
Method Details
-
generateRawSignature
public byte[] generateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash) throws IOException Description copied from interface:TlsSigner
Generate an encoded signature based on the passed in hash.- Specified by:
generateRawSignature
in interfaceTlsSigner
- Parameters:
algorithm
- the signature algorithm to use.hash
- the hash calculated for the signature.- Returns:
- an encoded signature.
- Throws:
IOException
- in case of an exception processing the hash.
-
getStreamSigner
- Specified by:
getStreamSigner
in interfaceTlsSigner
- Throws:
IOException
-