Lines Matching defs:algorithm

55  * bits generator or DRBG), which means they use a deterministic algorithm
72 * specific algorithm supporting the specific instantiate parameters. The
181 * The algorithm name of null if unknown.
186 private String algorithm;
193 * default random number algorithm.
199 * Provider that supports a {@code SecureRandom} (RNG) algorithm is returned.
200 * If none of the Providers support a RNG algorithm,
209 * for information about standard RNG algorithm names.
223 if (provider == null || algorithm == null) {
227 "SecureRandom." + algorithm + " ThreadSafe", "false"));
233 * default random number algorithm.
240 * Provider that supports a {@code SecureRandom} (RNG) algorithm is returned.
241 * If none of the Providers support a RNG algorithm,
250 * for information about standard RNG algorithm names.
279 // never happens, because we made sure the algorithm exists
287 // algorithm value as it would be inaccurate.
289 this.algorithm = prng;
305 String algorithm) {
309 this.algorithm = algorithm;
313 pdebug.println("SecureRandom." + algorithm +
314 " algorithm from: " + getProviderName());
324 * Random Number Generator (RNG) algorithm.
330 * Provider that supports the specified algorithm is returned.
339 * the preferred provider order for the specified algorithm. This
343 * @param algorithm the name of the RNG algorithm.
347 * for information about standard RNG algorithm names.
353 * specified algorithm
355 * @throws NullPointerException if {@code algorithm} is {@code null}
361 public static SecureRandom getInstance(String algorithm)
363 Objects.requireNonNull(algorithm, "null algorithm name");
365 SecureRandomSpi.class, algorithm);
367 instance.provider, algorithm);
372 * Random Number Generator (RNG) algorithm.
382 * @param algorithm the name of the RNG algorithm.
386 * for information about standard RNG algorithm names.
396 * implementation for the specified algorithm is not
402 * @throws NullPointerException if {@code algorithm} is {@code null}
408 public static SecureRandom getInstance(String algorithm, String provider)
410 Objects.requireNonNull(algorithm, "null algorithm name");
412 SecureRandomSpi.class, algorithm, provider);
414 instance.provider, algorithm);
419 * Random Number Generator (RNG) algorithm.
426 * @param algorithm the name of the RNG algorithm.
430 * for information about standard RNG algorithm names.
440 * implementation for the specified algorithm is not available
443 * @throws NullPointerException if {@code algorithm} is {@code null}
449 public static SecureRandom getInstance(String algorithm,
451 Objects.requireNonNull(algorithm, "null algorithm name");
453 SecureRandomSpi.class, algorithm, provider);
455 instance.provider, algorithm);
460 * Random Number Generator (RNG) algorithm and supports the specified
467 * Provider that supports the specified algorithm and the specified
476 * the preferred provider order for the specified algorithm. This
480 * @param algorithm the name of the RNG algorithm.
484 * for information about standard RNG algorithm names.
496 * algorithm and parameters
498 * @throws NullPointerException if {@code algorithm} is {@code null}
505 String algorithm, SecureRandomParameters params)
507 Objects.requireNonNull(algorithm, "null algorithm name");
512 SecureRandomSpi.class, algorithm, params);
514 instance.provider, algorithm);
519 * Random Number Generator (RNG) algorithm and supports the specified
530 * @param algorithm the name of the RNG algorithm.
534 * for information about standard RNG algorithm names.
548 * specified algorithm and parameters
553 * @throws NullPointerException if {@code algorithm} is {@code null}
559 public static SecureRandom getInstance(String algorithm,
562 Objects.requireNonNull(algorithm, "null algorithm name");
567 SecureRandomSpi.class, algorithm, params, provider);
569 instance.provider, algorithm);
574 * Random Number Generator (RNG) algorithm and supports the specified
583 * @param algorithm the name of the RNG algorithm.
587 * for information about standard RNG algorithm names.
601 * specified algorithm and parameters
603 * @throws NullPointerException if {@code algorithm} is {@code null}
609 public static SecureRandom getInstance(String algorithm,
612 Objects.requireNonNull(algorithm, "null algorithm name");
617 SecureRandomSpi.class, algorithm, params, provider);
619 instance.provider, algorithm);
639 * Returns the name of the algorithm implemented by this
642 * @return the name of the algorithm or {@code unknown}
643 * if the algorithm name cannot be determined.
647 return Objects.toString(algorithm, "unknown");
808 * generation algorithm that this class uses to seed itself. This
835 * generation algorithm that this class uses to seed itself. This
871 * Gets a default PRNG algorithm by looking through all registered
872 * providers. Returns the first PRNG algorithm of the first provider that
927 * @throws NoSuchAlgorithmException if no algorithm is available