/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }