Lines Matching defs:MessageDigest

39  * This MessageDigest class provides applications the functionality of a
44 * <p>A MessageDigest object starts out initialized. The data is
52 * of updates. After <code>digest</code> has been called, the MessageDigest
60 * MessageDigest md = MessageDigest.getInstance("SHA");
64 * MessageDigest tc1 = md.clone();
80 * this <code>MessageDigest</code> class; all the methods in
85 * the following standard <code>MessageDigest</code> algorithms:
92 * "{@docRoot}/../technotes/guides/security/StandardNames.html#MessageDigest">
93 * MessageDigest section</a> of the
104 public abstract class MessageDigest extends MessageDigestSpi {
120 * See the MessageDigest section in the <a href=
121 * "{@docRoot}/../technotes/guides/security/StandardNames.html#MessageDigest">
125 protected MessageDigest(String algorithm) {
130 * Returns a MessageDigest object that implements the specified digest
135 * A new MessageDigest object encapsulating the
143 * See the MessageDigest section in the <a href=
144 * "{@docRoot}/../technotes/guides/security/StandardNames.html#MessageDigest">
156 public static MessageDigest getInstance(String algorithm)
159 Object[] objs = Security.getImpl(algorithm, "MessageDigest",
161 if (objs[0] instanceof MessageDigest) {
162 MessageDigest md = (MessageDigest)objs[0];
166 MessageDigest delegate =
177 * Returns a MessageDigest object that implements the specified digest
180 * <p> A new MessageDigest object encapsulating the
189 * See the MessageDigest section in the <a href=
190 * "{@docRoot}/../technotes/guides/security/StandardNames.html#MessageDigest">
196 * @return a MessageDigest object that implements the specified algorithm.
210 public static MessageDigest getInstance(String algorithm, String provider)
215 Object[] objs = Security.getImpl(algorithm, "MessageDigest", provider);
216 if (objs[0] instanceof MessageDigest) {
217 MessageDigest md = (MessageDigest)objs[0];
221 MessageDigest delegate =
229 * Returns a MessageDigest object that implements the specified digest
232 * <p> A new MessageDigest object encapsulating the
238 * See the MessageDigest section in the <a href=
239 * "{@docRoot}/../technotes/guides/security/StandardNames.html#MessageDigest">
245 * @return a MessageDigest object that implements the specified algorithm.
257 public static MessageDigest getInstance(String algorithm,
263 Object[] objs = Security.getImpl(algorithm, "MessageDigest", provider);
264 if (objs[0] instanceof MessageDigest) {
265 MessageDigest md = (MessageDigest)objs[0];
269 MessageDigest delegate =
455 * See the MessageDigest section in the <a href=
456 * "{@docRoot}/../technotes/guides/security/StandardNames.html#MessageDigest">
479 MessageDigest md = (MessageDigest)clone();
510 * rather than from MessageDigest. It represents a MessageDigest with an
516 * Note: All SPI methods from the original MessageDigest class have been
518 * been interposed in the hierarchy between the API (MessageDigest)
522 static class Delegate extends MessageDigest {
548 MessageDigest that =
550 ((MessageDigest)this).algorithm);
551 that.provider = ((MessageDigest)this).provider;
552 that.state = ((MessageDigest)this).state;