Lines Matching refs:algorithm

50     // Store used algorithm name
51 private final String algorithm;
60 * @param algorithm
61 * the name of the key agreement algorithm.
64 String algorithm) {
66 this.algorithm = algorithm;
71 * Returns the name of the key agreement algorithm.
73 * @return the name of the key agreement algorithm.
76 return algorithm;
89 * Creates a new {@code KeyAgreement} for the specified algorithm.
91 * @param algorithm
92 * the name of the key agreement algorithm to create.
93 * @return a key agreement for the specified algorithm.
95 * if no installed provider can provide the requested algorithm.
97 * if the specified algorithm is {@code null}.
99 public static final KeyAgreement getInstance(String algorithm)
101 if (algorithm == null) {
102 throw new NullPointerException("algorithm == null");
104 Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null);
105 return new KeyAgreement((KeyAgreementSpi) sap.spi, sap.provider, algorithm);
109 * Creates a new {@code KeyAgreement} for the specified algorithm from the
112 * @param algorithm
113 * the name of the key agreement algorithm to create.
116 * algorithm.
117 * @return a key agreement for the specified algorithm from the specified
121 * algorithm.
127 public static final KeyAgreement getInstance(String algorithm,
137 return getInstance(algorithm, impProvider);
141 * Create a new {@code KeyAgreement} for the specified algorithm from the
144 * @param algorithm
145 * the name of the key agreement algorithm to create.
147 * the provider that provides the requested algorithm.
148 * @return a key agreement for the specified algorithm from the specified
152 * algorithm.
156 * if the specified algorithm name is {@code null}.
158 public static final KeyAgreement getInstance(String algorithm,
163 if (algorithm == null) {
164 throw new NullPointerException("algorithm == null");
166 Object spi = ENGINE.getInstance(algorithm, provider, null);
167 return new KeyAgreement((KeyAgreementSpi) spi, provider, algorithm);
202 * algorithm parameters.
207 * the parameters for this key agreement algorithm.
213 * agreement algorithm.
221 * Initializes this {@code KeyAgreement} with the specified key, algorithm
227 * the parameters for this key agreement algorithm.
235 * agreement algorithm.
298 * @param algorithm
299 * the algorithm to for the {@code SecretKey}
301 * algorithm.
305 * if the specified algorithm for the secret key does not
308 * if a {@code SecretKey} with the specified algorithm cannot be
311 public final SecretKey generateSecret(String algorithm)
314 return spiImpl.engineGenerateSecret(algorithm);