/[classpath]/classpath/java/security/MessageDigest.java
ViewVC logotype

Diff of /classpath/java/security/MessageDigest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by cbj, Thu Mar 27 03:32:08 2003 UTC revision 1.10 by rsdio, Wed Apr 23 23:15:47 2003 UTC
# Line 37  exception statement from your version. * Line 37  exception statement from your version. *
37    
38  package java.security;  package java.security;
39    
40    import gnu.java.security.Engine;
41    
42  /**  /**
43   * <p>This <code>MessageDigest</code> class provides applications the   * <p>This <code>MessageDigest</code> class provides applications the
44   * functionality of a message digest algorithm, such as <i>MD5</i> or <i>SHA</i>.   * functionality of a message digest algorithm, such as <i>MD5</i> or <i>SHA</i>.
# Line 197  public abstract class MessageDigest exte Line 199  public abstract class MessageDigest exte
199        throw new IllegalArgumentException("Illegal provider");        throw new IllegalArgumentException("Illegal provider");
200    
201      MessageDigest result = null;      MessageDigest result = null;
202      Object o = Engine.getInstance(MESSAGE_DIGEST, algorithm, provider);      Object o = null;
203        try
204          {
205            o = Engine.getInstance(MESSAGE_DIGEST, algorithm, provider);
206          }
207        catch (java.lang.reflect.InvocationTargetException ite)
208          {
209            throw new NoSuchAlgorithmException(algorithm);
210          }
211            
212      if (o instanceof MessageDigestSpi)      if (o instanceof MessageDigestSpi)
213        {        {

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26