Class BcTlsRSAPSSSigner

  • All Implemented Interfaces:
    TlsSigner

    public class BcTlsRSAPSSSigner
    extends BcTlsSigner
    Operator supporting the generation of RSASSA-PSS signatures using the BC light-weight API.
    • Constructor Detail

      • BcTlsRSAPSSSigner

        public BcTlsRSAPSSSigner​(BcTlsCrypto crypto,
                                 org.bouncycastle.crypto.params.RSAKeyParameters privateKey,
                                 int signatureScheme)
    • Method Detail

      • generateRawSignature

        public byte[] generateRawSignature​(SignatureAndHashAlgorithm algorithm,
                                           byte[] hash)
                                    throws java.io.IOException
        Description copied from interface: TlsSigner
        Generate an encoded signature based on the passed in hash.
        Parameters:
        algorithm - the signature algorithm to use.
        hash - the hash calculated for the signature.
        Returns:
        an encoded signature.
        Throws:
        java.io.IOException - in case of an exception processing the hash.