275 |
* inappropriate for the given key, or the given key cannot be processed |
* inappropriate for the given key, or the given key cannot be processed |
276 |
* (e.g., the given key has an unrecognized algorithm or format). |
* (e.g., the given key has an unrecognized algorithm or format). |
277 |
*/ |
*/ |
278 |
public final KeySpec getKeySpec(Key key, Class keySpec) |
public final <T extends KeySpec> T getKeySpec(Key key, Class<T> keySpec) |
279 |
throws InvalidKeySpecException |
throws InvalidKeySpecException |
280 |
{ |
{ |
281 |
return keyFacSpi.engineGetKeySpec(key, keySpec); |
return keyFacSpi.engineGetKeySpec(key, keySpec); |