Lines Matching refs:Mac

57  * the following standard <code>Mac</code> algorithms:
64 * <a href="{@docRoot}/../technotes/guides/security/StandardNames.html#Mac">
65 * Mac section</a> of the
75 public class Mac implements Cloneable {
78 Debug.getInstance("jca", "Mac");
109 protected Mac(MacSpi macSpi, Provider provider, String algorithm) {
117 private Mac(Service s, Iterator t, String algorithm) {
125 * Returns the algorithm name of this <code>Mac</code> object.
129 * <code>Mac</code> object.
131 * @return the algorithm name of this <code>Mac</code> object.
138 * Returns a <code>Mac</code> object that implements the
143 * A new Mac object encapsulating the
151 * See the Mac section in the <a href=
152 * "{@docRoot}/../technotes/guides/security/StandardNames.html#Mac">
156 * @return the new <code>Mac</code> object.
164 public static final Mac getInstance(String algorithm)
166 List services = GetInstance.getServices("Mac", algorithm);
174 return new Mac(s, t, algorithm);
181 * Returns a <code>Mac</code> object that implements the
184 * <p> A new Mac object encapsulating the
193 * See the Mac section in the <a href=
194 * "{@docRoot}/../technotes/guides/security/StandardNames.html#Mac">
200 * @return the new <code>Mac</code> object.
214 public static final Mac getInstance(String algorithm, String provider)
217 ("Mac", MacSpi.class, algorithm, provider);
218 return new Mac((MacSpi)instance.impl, instance.provider, algorithm);
222 * Returns a <code>Mac</code> object that implements the
225 * <p> A new Mac object encapsulating the
231 * See the Mac section in the <a href=
232 * "{@docRoot}/../technotes/guides/security/StandardNames.html#Mac">
238 * @return the new <code>Mac</code> object.
249 public static final Mac getInstance(String algorithm, Provider provider)
252 ("Mac", MacSpi.class, algorithm, provider);
253 return new Mac((MacSpi)instance.impl, instance.provider, algorithm);
275 debug.println("Mac.init() not first method "
378 * Returns the provider of this <code>Mac</code> object.
380 * @return the provider of this <code>Mac</code> object.
398 * Initializes this <code>Mac</code> object with the given key.
419 * Initializes this <code>Mac</code> object with the given key and
445 * @exception IllegalStateException if this <code>Mac</code> has not been
461 * @exception IllegalStateException if this <code>Mac</code> has not been
482 * @exception IllegalStateException if this <code>Mac</code> has not been
507 * @exception IllegalStateException if this <code>Mac</code> has not been
525 * <p>A call to this method resets this <code>Mac</code> object to the
532 * (In order to reuse this <code>Mac</code> object with a different key,
538 * @exception IllegalStateException if this <code>Mac</code> has not been
554 * <p>A call to this method resets this <code>Mac</code> object to the
561 * (In order to reuse this <code>Mac</code> object with a different key,
574 * @exception IllegalStateException if this <code>Mac</code> has not been
597 * <p>A call to this method resets this <code>Mac</code> object to the
604 * (In order to reuse this <code>Mac</code> object with a different key,
611 * @exception IllegalStateException if this <code>Mac</code> has not been
625 * Resets this <code>Mac</code> object.
627 * <p>A call to this method resets this <code>Mac</code> object to the
634 * (In order to reuse this <code>Mac</code> object with a different key,
653 Mac that = (Mac)super.clone();