Second parameter of "initialize" method is not used

XMLWordPrintable

    • b19
    • generic
    • generic
    • Verified

        A DESCRIPTION OF THE PROBLEM :
        The second parameter of method "initialize(int keySize, SecureRandom random)" in "sun.security.rsa.RSAKeyPairGenerator" is not used.

            // initialize the generator. See JCA doc
            public void initialize(int keySize, SecureRandom random) {
                try {
                    initialize(new RSAKeyGenParameterSpec(keySize,
                            RSAKeyGenParameterSpec.F4), null);
                } catch (InvalidAlgorithmParameterException iape) {
                    throw new InvalidParameterException(iape.getMessage());
                }
            }

        It seems "null" is used, ignoring the passing in parameter.

        I don't know if this is intended or not.

        FREQUENCY : always


              Assignee:
              Valerie Peng
              Reporter:
              Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: