/** * Generate a secret key from the specified key specification. * * @param keySpec * the key specification. * @return a secret key. * @throws InvalidKeySpecException * if the specified key specification cannot be used to generate * a secret key. */ public final SecretKey generateSecret(KeySpec keySpec) throws InvalidKeySpecException { return spiImpl.engineGenerateSecret(keySpec); }
/** * Returns the key specification of the specified secret key. * * @param key * the secret key to get the specification from. * @param keySpec * the target key specification class. * @return an instance of the specified key specification class. * @throws InvalidKeySpecException * if the specified secret key cannot be transformed into the * requested key specification. */ @SuppressWarnings("unchecked") public final KeySpec getKeySpec(SecretKey key, Class keySpec) throws InvalidKeySpecException { return spiImpl.engineGetKeySpec(key, keySpec); }
/** * Translates the specified secret key into an instance of the corresponding * key from the provider of this key factory. * * @param key * the secret key to translate. * @return the corresponding translated key. * @throws InvalidKeyException * if the specified key cannot be translated using this key * factory. */ public final SecretKey translateKey(SecretKey key) throws InvalidKeyException { return spiImpl.engineTranslateKey(key); } }
/** * Generate a secret key from the specified key specification. * * @param keySpec * the key specification. * @return a secret key. * @throws InvalidKeySpecException * if the specified key specification cannot be used to generate * a secret key. */ public final SecretKey generateSecret(KeySpec keySpec) throws InvalidKeySpecException { return spiImpl.engineGenerateSecret(keySpec); }
/** * Translates the specified secret key into an instance of the corresponding * key from the provider of this key factory. * * @param key * the secret key to translate. * @return the corresponding translated key. * @throws InvalidKeyException * if the specified key cannot be translated using this key * factory. */ public final SecretKey translateKey(SecretKey key) throws InvalidKeyException { return spiImpl.engineTranslateKey(key); } }
/** * Returns the key specification of the specified secret key. * * @param key * the secret key to get the specification from. * @param keySpec * the target key specification class. * @return an instance of the specified key specification class. * @throws InvalidKeySpecException * if the specified secret key cannot be transformed into the * requested key specification. */ @SuppressWarnings("unchecked") public final KeySpec getKeySpec(SecretKey key, Class keySpec) throws InvalidKeySpecException { return spiImpl.engineGetKeySpec(key, keySpec); }
/** * Generate a secret key from the specified key specification. * * @param keySpec * the key specification. * @return a secret key. * @throws InvalidKeySpecException * if the specified key specification cannot be used to generate * a secret key. */ public final SecretKey generateSecret(KeySpec keySpec) throws InvalidKeySpecException { return spiImpl.engineGenerateSecret(keySpec); }
/** * Translates the specified secret key into an instance of the corresponding * key from the provider of this key factory. * * @param key * the secret key to translate. * @return the corresponding translated key. * @throws InvalidKeyException * if the specified key cannot be translated using this key * factory. */ public final SecretKey translateKey(SecretKey key) throws InvalidKeyException { return spiImpl.engineTranslateKey(key); } }
/** * Returns the key specification of the specified secret key. * * @param key * the secret key to get the specification from. * @param keySpec * the target key specification class. * @return an instance of the specified key specification class. * @throws InvalidKeySpecException * if the specified secret key cannot be transformed into the * requested key specification. */ @SuppressWarnings("unchecked") public final KeySpec getKeySpec(SecretKey key, Class keySpec) throws InvalidKeySpecException { return spiImpl.engineGetKeySpec(key, keySpec); }
/** * Generate a secret key from the specified key specification. * * @param keySpec * the key specification. * @return a secret key. * @throws InvalidKeySpecException * if the specified key specification cannot be used to generate * a secret key. */ public final SecretKey generateSecret(KeySpec keySpec) throws InvalidKeySpecException { return spiImpl.engineGenerateSecret(keySpec); }
/** * Translates the specified secret key into an instance of the corresponding * key from the provider of this key factory. * * @param key * the secret key to translate. * @return the corresponding translated key. * @throws InvalidKeyException * if the specified key cannot be translated using this key * factory. */ public final SecretKey translateKey(SecretKey key) throws InvalidKeyException { return spiImpl.engineTranslateKey(key); } }
/** * Returns the key specification of the specified secret key. * * @param key * the secret key to get the specification from. * @param keySpec * the target key specification class. * @return an instance of the specified key specification class. * @throws InvalidKeySpecException * if the specified secret key cannot be transformed into the * requested key specification. */ @SuppressWarnings("unchecked") public final KeySpec getKeySpec(SecretKey key, Class keySpec) throws InvalidKeySpecException { return spiImpl.engineGetKeySpec(key, keySpec); }
/** * Generate a secret key from the specified key specification. * * @param keySpec * the key specification. * @return a secret key. * @throws InvalidKeySpecException * if the specified key specification cannot be used to generate * a secret key. */ public final SecretKey generateSecret(KeySpec keySpec) throws InvalidKeySpecException { return spiImpl.engineGenerateSecret(keySpec); }
/** * Translates the specified secret key into an instance of the corresponding * key from the provider of this key factory. * * @param key * the secret key to translate. * @return the corresponding translated key. * @throws InvalidKeyException * if the specified key cannot be translated using this key * factory. */ public final SecretKey translateKey(SecretKey key) throws InvalidKeyException { return spiImpl.engineTranslateKey(key); } }
/** * Returns the key specification of the specified secret key. * * @param key * the secret key to get the specification from. * @param keySpec * the target key specification class. * @return an instance of the specified key specification class. * @throws InvalidKeySpecException * if the specified secret key cannot be transformed into the * requested key specification. */ @SuppressWarnings("unchecked") public final KeySpec getKeySpec(SecretKey key, Class keySpec) throws InvalidKeySpecException { return spiImpl.engineGetKeySpec(key, keySpec); }
/** * Generate a secret key from the specified key specification. * * @param keySpec * the key specification. * @return a secret key. * @throws InvalidKeySpecException * if the specified key specification cannot be used to generate * a secret key. */ public final SecretKey generateSecret(KeySpec keySpec) throws InvalidKeySpecException { return spiImpl.engineGenerateSecret(keySpec); }
/** * Translates the specified secret key into an instance of the corresponding * key from the provider of this key factory. * * @param key * the secret key to translate. * @return the corresponding translated key. * @throws InvalidKeyException * if the specified key cannot be translated using this key * factory. */ public final SecretKey translateKey(SecretKey key) throws InvalidKeyException { return spiImpl.engineTranslateKey(key); } }
/** * Returns the key specification of the specified secret key. * * @param key * the secret key to get the specification from. * @param keySpec * the target key specification class. * @return an instance of the specified key specification class. * @throws InvalidKeySpecException * if the specified secret key cannot be transformed into the * requested key specification. */ @SuppressWarnings("unchecked") public final KeySpec getKeySpec(SecretKey key, Class keySpec) throws InvalidKeySpecException { return spiImpl.engineGetKeySpec(key, keySpec); }
/** * Generate a secret key from the specified key specification. * * @param keySpec * the key specification. * @return a secret key. * @throws InvalidKeySpecException * if the specified key specification cannot be used to generate * a secret key. */ public final SecretKey generateSecret(KeySpec keySpec) throws InvalidKeySpecException { return spiImpl.engineGenerateSecret(keySpec); }
/** * Translates the specified secret key into an instance of the corresponding * key from the provider of this key factory. * * @param key * the secret key to translate. * @return the corresponding translated key. * @throws InvalidKeyException * if the specified key cannot be translated using this key * factory. */ public final SecretKey translateKey(SecretKey key) throws InvalidKeyException { return spiImpl.engineTranslateKey(key); } }