41 |
import java.security.spec.InvalidKeySpecException; |
import java.security.spec.InvalidKeySpecException; |
42 |
import java.security.NoSuchAlgorithmException; |
import java.security.NoSuchAlgorithmException; |
43 |
|
|
44 |
|
import gnu.java.security.Engine; |
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 |
194 |
Engine.getInstance(KEY_FACTORY, algorithm, provider), |
Engine.getInstance(KEY_FACTORY, algorithm, provider), |
195 |
provider, algorithm); |
provider, algorithm); |
196 |
} |
} |
197 |
|
catch (java.lang.reflect.InvocationTargetException ite) |
198 |
|
{ |
199 |
|
throw new NoSuchAlgorithmException(algorithm); |
200 |
|
} |
201 |
catch (ClassCastException cce) |
catch (ClassCastException cce) |
202 |
{ |
{ |
203 |
throw new NoSuchAlgorithmException(algorithm); |
throw new NoSuchAlgorithmException(algorithm); |