1 7 8 package java.security; 9 10 import java.security.spec.KeySpec ; 11 import java.security.spec.InvalidKeySpecException ; 12 13 52 53 public abstract class KeyFactorySpi { 54 55 66 protected abstract PublicKey engineGeneratePublic(KeySpec keySpec) 67 throws InvalidKeySpecException ; 68 69 80 protected abstract PrivateKey engineGeneratePrivate(KeySpec keySpec) 81 throws InvalidKeySpecException ; 82 83 104 protected abstract <T extends KeySpec > 105 T engineGetKeySpec(Key key, Class <T> keySpec) 106 throws InvalidKeySpecException ; 107 108 120 protected abstract Key engineTranslateKey(Key key) 121 throws InvalidKeyException ; 122 123 } 124 | Popular Tags |