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