Lines Matching refs:algorithm

43     // The algorithm.
44 private final String algorithm;
54 * @param algorithm
55 * the algorithm to use.
59 String algorithm) {
61 this.algorithm = algorithm;
67 * algorithm.
69 * @param algorithm
70 * the name of the algorithm.
72 * algorithm.
74 * if no provider provides the requested algorithm.
76 public static KeyFactory getInstance(String algorithm)
78 if (algorithm == null) {
79 throw new NullPointerException("algorithm == null");
81 Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null);
82 return new KeyFactory((KeyFactorySpi) sap.spi, sap.provider, algorithm);
87 * algorithm from the specified provider.
89 * @param algorithm
90 * the name of the algorithm.
94 * algorithm from the specified provider.
96 * if the provider does not provide the requested algorithm.
101 public static KeyFactory getInstance(String algorithm, String provider)
110 return getInstance(algorithm, p);
115 * algorithm from the specified provider.
117 * @param algorithm
118 * the name of the algorithm.
122 * algorithm from the specified provider.
124 * if the provider does not provide the requested algorithm.
127 public static KeyFactory getInstance(String algorithm, Provider provider)
132 if (algorithm == null) {
133 throw new NullPointerException("algorithm == null");
135 Object spi = ENGINE.getInstance(algorithm, provider, null);
136 return new KeyFactory((KeyFactorySpi) spi, provider, algorithm);
149 * Returns the name of the algorithm associated with this {@code
152 * @return the name of the algorithm associated with this {@code
156 return algorithm;