/** * Generates a instance of {@code PrivateKey} from the given key * specification. * * @param keySpec * the specification of the private key. * @return the private key. * @throws InvalidKeySpecException * if the specified {@code keySpec} is invalid. */ public final PrivateKey generatePrivate(KeySpec keySpec) throws InvalidKeySpecException { return spiImpl.engineGeneratePrivate(keySpec); }
/** * Generates a instance of {@code PublicKey} from the given key * specification. * * @param keySpec * the specification of the public key * @return the public key * @throws InvalidKeySpecException * if the specified {@code keySpec} is invalid */ public final PublicKey generatePublic(KeySpec keySpec) throws InvalidKeySpecException { return spiImpl.engineGeneratePublic(keySpec); }
/** * Returns the key specification for the specified key. * * @param key * the key from which the specification is requested. * @param keySpec * the type of the requested {@code KeySpec}. * @return the key specification for the specified key. * @throws InvalidKeySpecException * if the key can not be processed, or the requested requested * {@code KeySpec} is inappropriate for the given key. */ public final <T extends KeySpec> T getKeySpec(Key key, Class<T> keySpec) throws InvalidKeySpecException { return spiImpl.engineGetKeySpec(key, keySpec); }
/** * Translates the given key into a key from this key factory. * * @param key * the key to translate. * @return the translated key. * @throws InvalidKeyException * if the specified key can not be translated by this key * factory. */ public final Key translateKey(Key key) throws InvalidKeyException { return spiImpl.engineTranslateKey(key); } }
/** * Translates the given key into a key from this key factory. * * @param key * the key to translate. * @return the translated key. * @throws InvalidKeyException * if the specified key can not be translated by this key * factory. */ public final Key translateKey(Key key) throws InvalidKeyException { return spiImpl.engineTranslateKey(key); } }
/** * Generates a instance of {@code PublicKey} from the given key * specification. * * @param keySpec * the specification of the public key * @return the public key * @throws InvalidKeySpecException * if the specified {@code keySpec} is invalid */ public final PublicKey generatePublic(KeySpec keySpec) throws InvalidKeySpecException { return spiImpl.engineGeneratePublic(keySpec); }
/** * Generates a instance of {@code PrivateKey} from the given key * specification. * * @param keySpec * the specification of the private key. * @return the private key. * @throws InvalidKeySpecException * if the specified {@code keySpec} is invalid. */ public final PrivateKey generatePrivate(KeySpec keySpec) throws InvalidKeySpecException { return spiImpl.engineGeneratePrivate(keySpec); }
/** * Translates the given key into a key from this key factory. * * @param key * the key to translate. * @return the translated key. * @throws InvalidKeyException * if the specified key can not be translated by this key * factory. */ public final Key translateKey(Key key) throws InvalidKeyException { return spiImpl.engineTranslateKey(key); } }
/** * Returns the key specification for the specified key. * * @param key * the key from which the specification is requested. * @param keySpec * the type of the requested {@code KeySpec}. * @return the key specification for the specified key. * @throws InvalidKeySpecException * if the key can not be processed, or the requested requested * {@code KeySpec} is inappropriate for the given key. */ public final <T extends KeySpec> T getKeySpec(Key key, Class<T> keySpec) throws InvalidKeySpecException { return spiImpl.engineGetKeySpec(key, keySpec); }
/** * Generates a instance of {@code PublicKey} from the given key * specification. * * @param keySpec * the specification of the public key * @return the public key * @throws InvalidKeySpecException * if the specified {@code keySpec} is invalid */ public final PublicKey generatePublic(KeySpec keySpec) throws InvalidKeySpecException { return spiImpl.engineGeneratePublic(keySpec); }
/** * Generates a instance of {@code PrivateKey} from the given key * specification. * * @param keySpec * the specification of the private key. * @return the private key. * @throws InvalidKeySpecException * if the specified {@code keySpec} is invalid. */ public final PrivateKey generatePrivate(KeySpec keySpec) throws InvalidKeySpecException { return spiImpl.engineGeneratePrivate(keySpec); }
/** * Translates the given key into a key from this key factory. * * @param key * the key to translate. * @return the translated key. * @throws InvalidKeyException * if the specified key can not be translated by this key * factory. */ public final Key translateKey(Key key) throws InvalidKeyException { return spiImpl.engineTranslateKey(key); } }
/** * Returns the key specification for the specified key. * * @param key * the key from which the specification is requested. * @param keySpec * the type of the requested {@code KeySpec}. * @return the key specification for the specified key. * @throws InvalidKeySpecException * if the key can not be processed, or the requested requested * {@code KeySpec} is inappropriate for the given key. */ public final <T extends KeySpec> T getKeySpec(Key key, Class<T> keySpec) throws InvalidKeySpecException { return spiImpl.engineGetKeySpec(key, keySpec); }
/** * Generates a instance of {@code PublicKey} from the given key * specification. * * @param keySpec * the specification of the public key * @return the public key * @throws InvalidKeySpecException * if the specified {@code keySpec} is invalid */ public final PublicKey generatePublic(KeySpec keySpec) throws InvalidKeySpecException { return spiImpl.engineGeneratePublic(keySpec); }
/** * Generates a instance of {@code PrivateKey} from the given key * specification. * * @param keySpec * the specification of the private key. * @return the private key. * @throws InvalidKeySpecException * if the specified {@code keySpec} is invalid. */ public final PrivateKey generatePrivate(KeySpec keySpec) throws InvalidKeySpecException { return spiImpl.engineGeneratePrivate(keySpec); }
/** * Translates the given key into a key from this key factory. * * @param key * the key to translate. * @return the translated key. * @throws InvalidKeyException * if the specified key can not be translated by this key * factory. */ public final Key translateKey(Key key) throws InvalidKeyException { return spiImpl.engineTranslateKey(key); } }
/** * Returns the key specification for the specified key. * * @param key * the key from which the specification is requested. * @param keySpec * the type of the requested {@code KeySpec}. * @return the key specification for the specified key. * @throws InvalidKeySpecException * if the key can not be processed, or the requested requested * {@code KeySpec} is inappropriate for the given key. */ public final <T extends KeySpec> T getKeySpec(Key key, Class<T> keySpec) throws InvalidKeySpecException { return spiImpl.engineGetKeySpec(key, keySpec); }
/** * Generates a instance of {@code PublicKey} from the given key * specification. * * @param keySpec * the specification of the public key * @return the public key * @throws InvalidKeySpecException * if the specified {@code keySpec} is invalid */ public final PublicKey generatePublic(KeySpec keySpec) throws InvalidKeySpecException { return spiImpl.engineGeneratePublic(keySpec); }
/** * Generates a instance of {@code PrivateKey} from the given key * specification. * * @param keySpec * the specification of the private key. * @return the private key. * @throws InvalidKeySpecException * if the specified {@code keySpec} is invalid. */ public final PrivateKey generatePrivate(KeySpec keySpec) throws InvalidKeySpecException { return spiImpl.engineGeneratePrivate(keySpec); }
/** * Translates the given key into a key from this key factory. * * @param key * the key to translate. * @return the translated key. * @throws InvalidKeyException * if the specified key can not be translated by this key * factory. */ public final Key translateKey(Key key) throws InvalidKeyException { return spiImpl.engineTranslateKey(key); } }