Lines Matching refs:algorithm

26  * private key and its related public key utilizing the algorithm it was
45 // Store used algorithm
46 private String algorithm;
50 * the algorithm to use.
52 * @param algorithm
53 * the name of algorithm to use
55 protected KeyPairGenerator(String algorithm) {
56 this.algorithm = algorithm;
60 * Returns the name of the algorithm of this {@code KeyPairGenerator}.
62 * @return the name of the algorithm of this {@code KeyPairGenerator}
65 return algorithm;
70 * specified algorithm.
72 * @param algorithm
73 * the name of the algorithm to use
75 * specified algorithm
76 * @throws NoSuchAlgorithmException if the specified algorithm is not available
78 * if {@code algorithm} is {@code null}
80 public static KeyPairGenerator getInstance(String algorithm)
82 if (algorithm == null) {
83 throw new NullPointerException("algorithm == null");
85 Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null);
90 result.algorithm = algorithm;
94 return new KeyPairGeneratorImpl((KeyPairGeneratorSpi) spi, provider, algorithm);
99 * specified algorithm from the specified provider.
101 * @param algorithm
102 * the name of the algorithm to use
106 * specified algorithm from the specified provider
107 * @throws NoSuchAlgorithmException if the specified algorithm is not available
110 * if {@code algorithm} is {@code null}
113 public static KeyPairGenerator getInstance(String algorithm, String provider)
122 return getInstance(algorithm, impProvider);
127 * specified algorithm from the specified provider.
129 * @param algorithm
130 * the name of the algorithm to use
134 * specified algorithm from the specified provider
135 * @throws NoSuchAlgorithmException if the specified algorithm is not available
137 * if {@code algorithm} is {@code null}
140 public static KeyPairGenerator getInstance(String algorithm,
145 if (algorithm == null) {
146 throw new NullPointerException("algorithm == null");
148 Object spi = ENGINE.getInstance(algorithm, provider, null);
151 result.algorithm = algorithm;
155 return new KeyPairGeneratorImpl((KeyPairGeneratorSpi) spi, provider, algorithm);
258 Provider provider, String algorithm) {
259 super(algorithm);