JML

java.security
Class MessageDigest

java.lang.Object
  extended byjava.security.MessageDigestSpi
      extended byjava.security.MessageDigest

public abstract class MessageDigest
extends MessageDigestSpi


Nested Class Summary
(package private) static class MessageDigest.Delegate
           
 
Model Field Summary
 
Model fields inherited from class java.lang.Object
_getClass, objectState, theString
 
Ghost Field Summary
 
Ghost fields inherited from class java.lang.Object
objectTimesFinalized, owner
 
Field Summary
private  String algorithm
           
private static int IN_PROGRESS
           
private static int INITIAL
           
private  Provider provider
           
private  int state
           
 
Constructor Summary
protected MessageDigest(String)
           
 
Model Method Summary
 
Model methods inherited from class java.lang.Object
hashValue
 
Method Summary
 Object clone()
           
 byte[] digest()
           
 byte[] digest(byte[])
           
 int digest(byte[], int, int)
           
 String getAlgorithm()
           
 int getDigestLength()
           
static MessageDigest getInstance(String)
           
static MessageDigest getInstance(String, String)
           
static MessageDigest getInstance(String, Provider)
           
 Provider getProvider()
           
static boolean isEqual(byte[], byte[])
           
 void reset()
           
 String toString()
           
 void update(byte)
           
 void update(byte[])
           
 void update(byte[], int, int)
           
 
Methods inherited from class java.security.MessageDigestSpi
engineDigest, engineDigest, engineGetDigestLength, engineReset, engineUpdate, engineUpdate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INITIAL

private static final int INITIAL

algorithm

private String algorithm

state

private int state

provider

private Provider provider

IN_PROGRESS

private static final int IN_PROGRESS
Constructor Detail

MessageDigest

protected MessageDigest(String)
Method Detail

getDigestLength

public final int getDigestLength()

reset

public void reset()

digest

public byte[] digest()

update

public void update(byte)

update

public void update(byte[])

digest

public byte[] digest(byte[])

digest

public int digest(byte[],
                  int,
                  int)
           throws DigestException
Throws:
DigestException

update

public void update(byte[],
                   int,
                   int)

isEqual

public static boolean isEqual(byte[],
                              byte[])

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class MessageDigestSpi
Throws:
CloneNotSupportedException

getAlgorithm

public final String getAlgorithm()

toString

public String toString()
Overrides:
toString in class Object

getProvider

public final Provider getProvider()

getInstance

public static MessageDigest getInstance(String)
                                 throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

getInstance

public static MessageDigest getInstance(String,
                                        String)
                                 throws NoSuchAlgorithmException,
                                        NoSuchProviderException
Throws:
NoSuchAlgorithmException
NoSuchProviderException

getInstance

public static MessageDigest getInstance(String,
                                        Provider)
                                 throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.