Lines Matching refs:algorithm

53     // Store used algorithm name
54 private final String algorithm;
63 * @param algorithm
64 * the algorithm name for the secret key.
67 Provider provider, String algorithm) {
69 this.algorithm = algorithm;
74 * Returns the name of the secret key algorithm.
76 * @return the name of the secret key algorithm.
79 return algorithm;
93 * algorithm.
95 * @param algorithm
96 * the name of the key algorithm.
97 * @return a secret key factory for the specified key algorithm.
99 * if no installed provider can provide the requested algorithm.
101 * if the specified algorithm is {@code null}.
103 public static final SecretKeyFactory getInstance(String algorithm)
105 if (algorithm == null) {
106 throw new NullPointerException("algorithm == null");
108 Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null);
109 return new SecretKeyFactory((SecretKeyFactorySpi) sap.spi, sap.provider, algorithm);
114 * algorithm from the specified {@code provider}.
116 * @param algorithm
117 * the name of the key algorithm.
120 * algorithm.
121 * @return a secret key factory for the specified key algorithm from the
125 * algorithm.
131 public static final SecretKeyFactory getInstance(String algorithm,
141 return getInstance(algorithm, impProvider);
146 * algorithm from the specified provider.
148 * @param algorithm
149 * the name of the key algorithm.
151 * the provider that provides the requested algorithm.
152 * @return a secret key factory for the specified key algorithm from the
156 * algorithm.
160 * is the specified algorithm name is {@code null}.
162 public static final SecretKeyFactory getInstance(String algorithm,
167 if (algorithm == null) {
168 throw new NullPointerException("algorithm == null");
170 Object spi = ENGINE.getInstance(algorithm, provider, null);
171 return new SecretKeyFactory((SecretKeyFactorySpi) spi, provider, algorithm);