Class RSAKeyGenerationParameters

    • Constructor Detail

      • RSAKeyGenerationParameters

        public RSAKeyGenerationParameters()
        Build a new instance with all defaults. The default key strength is 256 bytes. The default public exponent is 0x10001. The default certainty for prime evaluation is 12.
      • RSAKeyGenerationParameters

        public RSAKeyGenerationParameters​(int strength)
        Build a new instance with the given strength. The default public exponent is 0x10001. The default certainty for prime evaluation is 12.
        Parameters:
        strength - the strength in bytes.
      • RSAKeyGenerationParameters

        public RSAKeyGenerationParameters​(int strength,
                                          BigInteger publicExponent)
        Build a new instance with the given strength and public exponent. The default certainty for prime evaluation is 12.
        Parameters:
        strength - the key strength in bytes.
        publicExponent - the public exponent.
      • RSAKeyGenerationParameters

        public RSAKeyGenerationParameters​(int strength,
                                          int certainty)
        Build a new instance with the given strength and certainty for prime evaluation. The default public exponent is 0x10001.
        Parameters:
        strength - the key strength in bytes.
        certainty - certainty for prime evaluation.
      • RSAKeyGenerationParameters

        public RSAKeyGenerationParameters​(int strength,
                                          BigInteger publicExponent,
                                          int certainty)
        Build a new instance with all custom parameters.
        Parameters:
        strength - the key strength in bytes.
        publicExponent - the public exponent.
        certainty - certainty for prime evaluation.
    • Method Detail

      • getPublicExponent

        public BigInteger getPublicExponent()
        Returns:
        the public exponent.
      • getCertainty

        public int getCertainty()
        Returns:
        the certainty for prime evaluation.