1 |
/* KeyFactory.java --- Key Factory Class |
/* KeyFactory.java --- Key Factory 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 |
|
|
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.KeySpec; |
package java.security; |
|
import java.security.spec.InvalidKeySpecException; |
|
|
import java.security.NoSuchAlgorithmException; |
|
40 |
|
|
41 |
import gnu.java.security.Engine; |
import gnu.java.security.Engine; |
42 |
|
|
43 |
|
import java.security.spec.InvalidKeySpecException; |
44 |
|
import java.security.spec.KeySpec; |
45 |
|
|
46 |
/** |
/** |
47 |
* <p>Key factories are used to convert keys (opaque cryptographic keys of type |
* <p>Key factories are used to convert keys (opaque cryptographic keys of type |
48 |
* {@link Key}) into key specifications (transparent representations of the |
* {@link Key}) into key specifications (transparent representations of the |
132 |
{ |
{ |
133 |
return getInstance(algorithm, p[i]); |
return getInstance(algorithm, p[i]); |
134 |
} |
} |
135 |
catch (NoSuchAlgorithmException ignored) {} |
catch (NoSuchAlgorithmException e) |
136 |
|
{ |
137 |
|
// Ignore. |
138 |
|
} |
139 |
|
|
140 |
throw new NoSuchAlgorithmException(algorithm); |
throw new NoSuchAlgorithmException(algorithm); |
141 |
} |
} |