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
ConstructorsConstructorDescriptionJcaTlsRSAPSSSigner(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:TlsSignerGenerate an encoded signature based on the passed in hash.- Specified by:
generateRawSignaturein 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:
getStreamSignerin interfaceTlsSigner- Throws:
IOException
-