/** * Transform a password with new parameters. Not every transformation is allowed, but iterative password types * generally should allow increasing the number of iterations. * * @param password the password * @param parameterSpec the new parameters * @return the transformed password * @throws InvalidKeyException if the given password is invalid * @throws InvalidAlgorithmParameterException if the transformation cannot be applied to the given parameters */ public Password transform(Password password, AlgorithmParameterSpec parameterSpec) throws InvalidKeyException, InvalidAlgorithmParameterException { return spi.engineTransform(algorithm, password, parameterSpec); } }
/** * Transform a password with new parameters. Not every transformation is allowed, but iterative password types * generally should allow increasing the number of iterations. * * @param password the password * @param parameterSpec the new parameters * @return the transformed password * @throws InvalidKeyException if the given password is invalid * @throws InvalidAlgorithmParameterException if the transformation cannot be applied to the given parameters */ public Password transform(Password password, AlgorithmParameterSpec parameterSpec) throws InvalidKeyException, InvalidAlgorithmParameterException { return spi.engineTransform(algorithm, password, parameterSpec); } }
/** * Transform a password with new parameters. Not every transformation is allowed, but iterative password types * generally should allow increasing the number of iterations. * * @param password the password * @param parameterSpec the new parameters * @return the transformed password * @throws InvalidKeyException if the given password is invalid * @throws InvalidAlgorithmParameterException if the transformation cannot be applied to the given parameters */ public Password transform(Password password, AlgorithmParameterSpec parameterSpec) throws InvalidKeyException, InvalidAlgorithmParameterException { return spi.engineTransform(algorithm, password, parameterSpec); } }
/** * Transform a password with new parameters. Not every transformation is allowed, but iterative password types * generally should allow increasing the number of iterations. * * @param password the password * @param parameterSpec the new parameters * @return the transformed password * @throws InvalidKeyException if the given password is invalid * @throws InvalidAlgorithmParameterException if the transformation cannot be applied to the given parameters */ public Password transform(Password password, AlgorithmParameterSpec parameterSpec) throws InvalidKeyException, InvalidAlgorithmParameterException { return spi.engineTransform(algorithm, password, parameterSpec); } }