summaryrefslogtreecommitdiff
path: root/java/security/KeyFactory.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/security/KeyFactory.java')
-rw-r--r--java/security/KeyFactory.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/security/KeyFactory.java b/java/security/KeyFactory.java
index 914975d77..043dd59a1 100644
--- a/java/security/KeyFactory.java
+++ b/java/security/KeyFactory.java
@@ -255,7 +255,7 @@ public class KeyFactory
* the requested key specification is inappropriate for this key or
* the key is unrecognized.
*/
- public final KeySpec getKeySpec(Key key, Class keySpec)
+ public final <T extends KeySpec> T getKeySpec(Key key, Class<T> keySpec)
throws InvalidKeySpecException
{
return keyFacSpi.engineGetKeySpec(key, keySpec);