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

Diff of /classpath/java/security/AlgorithmParameters.java

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

revision 1.9 by mkoch, Sat Apr 17 18:46:40 2004 UTC revision 1.9.2.1 by gnu_andrew, Sat Jan 15 17:02:07 2005 UTC
# Line 1  Line 1 
1  /* AlgorithmParameters.java --- Algorithm Parameters Implementation Class  /* AlgorithmParameters.java --- Algorithm Parameters Implementation Class
2     Copyright (C) 1999, 2003 Free Software Foundation, Inc.     Copyright (C) 1999, 2003, 2004  Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 35  this exception to your version of the li Line 35  this exception to your version of the li
35  obligated to do so.  If you do not wish to do so, delete this  obligated to do so.  If you do not wish to do so, delete this
36  exception statement from your version. */  exception statement from your version. */
37    
 package java.security;  
38    
39  import java.security.spec.InvalidParameterSpecException;  package java.security;
 import java.security.spec.AlgorithmParameterSpec;  
 import java.io.IOException;  
40    
41  import gnu.java.security.Engine;  import gnu.java.security.Engine;
42    
43    import java.io.IOException;
44    import java.security.spec.AlgorithmParameterSpec;
45    import java.security.spec.InvalidParameterSpecException;
46    
47  /**  /**
48   * <p>This class is used as an opaque representation of cryptographic   * <p>This class is used as an opaque representation of cryptographic
49   * parameters.</p>   * parameters.</p>
# Line 136  public class AlgorithmParameters Line 137  public class AlgorithmParameters
137      throws NoSuchAlgorithmException      throws NoSuchAlgorithmException
138    {    {
139      Provider[] p = Security.getProviders();      Provider[] p = Security.getProviders();
140    
141      for (int i = 0; i < p.length; i++)      for (int i = 0; i < p.length; i++)
142        try        try
143          {          {
144            return getInstance(algorithm, p[i]);            return getInstance(algorithm, p[i]);
145          }          }
146        catch (NoSuchAlgorithmException ignored) {}        catch (NoSuchAlgorithmException e)
147            {
148              // Ignore this.
149            }
150    
151      throw new NoSuchAlgorithmException(algorithm);      throw new NoSuchAlgorithmException(algorithm);
152    }    }

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

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