Package java.security

Class KeyPairGeneratorSpi

    • Constructor Detail

      • KeyPairGeneratorSpi

        public KeyPairGeneratorSpi()
        Constructs a new instance of KeyPairGeneratorSpi.
    • Method Detail

      • generateKeyPair

        public abstract KeyPair generateKeyPair()
        Computes and returns a new unique KeyPair each time this method is called.
        Returns:
        a new unique KeyPair each time this method is called.
      • initialize

        public abstract void initialize​(int keysize,
                                        SecureRandom random)
        Initializes this KeyPairGeneratorSpi with the given key size and the given SecureRandom. The default parameter set will be used.
        Parameters:
        keysize - the key size (number of bits).
        random - the source of randomness.