Class PssSignerParameters

    • Constructor Detail

      • PssSignerParameters

        public PssSignerParameters​(AsymmetricKeyParameters keyParams)
        Construct default RSASSA-PSS parameters according to PKCS #1 definition of default value.
        Parameters:
        keyParams - the key to use for the RSA cipher.
      • PssSignerParameters

        public PssSignerParameters​(AsymmetricKeyParameters keyParams,
                                   String hashAlgorithm,
                                   int saltLength)
        Construct RSASSA-PSS parameters using default trailer and the same digest algorithm for both hash and mgf1.
        Parameters:
        keyParams - the key to use for the RSA cipher.
        hashAlgorithm - digest algorithm to use for hash and mgf1.
        saltLength - size of salt in bytes.
      • PssSignerParameters

        public PssSignerParameters​(AsymmetricKeyParameters keyParams,
                                   String hashAlgorithm,
                                   String maskGenAlgorithm,
                                   int saltLength)
        Construct RSASSA-PSS parameters using custom parameters.
        Parameters:
        keyParams - the key to use for the RSA cipher.
        hashAlgorithm - digest algorithm to use for hash.
        maskGenAlgorithm - digest algorithm to use for mgf1.
        saltLength - size of salt in bytes.
      • PssSignerParameters

        public PssSignerParameters​(AsymmetricKeyParameters keyParams,
                                   String hashAlgorithm,
                                   String maskGenAlgorithm,
                                   int saltLength,
                                   int trailerField)
        Construct RSASSA-PSS parameters using custom parameters.
        Parameters:
        keyParams - the key to use for the RSA cipher.
        hashAlgorithm - digest algorithm to use for hash.
        maskGenAlgorithm - digest algorithm to use for mgf1.
        saltLength - size of salt in bytes.
        trailerField - trailer selection, only valid value is 1.
    • Method Detail

      • getPssParameters

        public PssParameters getPssParameters()
        Returns:
        the PSS parameters.