Class RSAKeyGenerator

    • Constructor Detail

      • RSAKeyGenerator

        public RSAKeyGenerator​(int size)
        Creates a new RSA JWK generator.
        Parameters:
        size - The RSA key size, in bits. Must be at least 2048 bits long for sufficient strength.
      • RSAKeyGenerator

        public RSAKeyGenerator​(int size,
                               boolean allowWeakKeys)
        Creates a new RSA JWK generator.
        Parameters:
        size - The RSA key size, in bits. Must be at least 2048 bits long for sufficient strength.
        allowWeakKeys - true to allow generation of keys shorter than 2048 bits.