/** * Generate a new {@link Password} object for the given specification. * * @param keySpec the specification * @return the password object * @throws InvalidKeySpecException if the key specification is not valid for this algorithm */ public Password generatePassword(KeySpec keySpec) throws InvalidKeySpecException { return spi.engineGeneratePassword(algorithm, keySpec); }
/** * Generate a new {@link Password} object for the given specification. * * @param keySpec the specification * @return the password object * @throws InvalidKeySpecException if the key specification is not valid for this algorithm */ public Password generatePassword(KeySpec keySpec) throws InvalidKeySpecException { return spi.engineGeneratePassword(algorithm, keySpec); }
/** * Generate a new {@link Password} object for the given specification. * * @param keySpec the specification * @return the password object * @throws InvalidKeySpecException if the key specification is not valid for this algorithm */ public Password generatePassword(KeySpec keySpec) throws InvalidKeySpecException { return spi.engineGeneratePassword(algorithm, keySpec); }
/** * Generate a new {@link Password} object for the given specification. * * @param keySpec the specification * @return the password object * @throws InvalidKeySpecException if the key specification is not valid for this algorithm */ public Password generatePassword(KeySpec keySpec) throws InvalidKeySpecException { return spi.engineGeneratePassword(algorithm, keySpec); }