Class KeyPairGeneratorSpi

    • Method Detail

      • initialize

        public void initialize​(int keySize,
                               java.security.SecureRandom random)
        Native public method. There is no notion of a keysize for composite signatures. Therefore, this method is unsupported. For setting a custom SecureRandom the other initialize method must be used.
        Specified by:
        initialize in class java.security.KeyPairGeneratorSpi
        Parameters:
        keySize -
        random -
      • initialize

        public void initialize​(java.security.spec.AlgorithmParameterSpec paramSpec,
                               java.security.SecureRandom secureRandom)
                        throws java.security.InvalidAlgorithmParameterException
        Setting custom AlgorithmParameterSpec is not supported since the composite signature algorithm definition allow only for one specific parameter spec which is initialized by the initializeParameters method. This method only serves to set a custom SecureRandom.
        Overrides:
        initialize in class java.security.KeyPairGeneratorSpi
        Parameters:
        paramSpec - Unsupported, needs to be null.
        secureRandom - A SecureRandom used by component key generators.
        Throws:
        java.security.InvalidAlgorithmParameterException
      • generateKeyPair

        public java.security.KeyPair generateKeyPair()
        Specified by:
        generateKeyPair in class java.security.KeyPairGeneratorSpi