/** * Generate a key specification of the given type from the given password object. * * @param password the password object * @param specType the specification class * @param <T> the specification type * @return the key specification * @throws InvalidKeySpecException if the password cannot be translated to the given key specification type */ public <T extends KeySpec> T getKeySpec(Password password, Class<T> specType) throws InvalidKeySpecException { return spi.engineGetKeySpec(algorithm, password, specType); }
/** * Generate a key specification of the given type from the given password object. * * @param password the password object * @param specType the specification class * @param <T> the specification type * @return the key specification * @throws InvalidKeySpecException if the password cannot be translated to the given key specification type */ public <T extends KeySpec> T getKeySpec(Password password, Class<T> specType) throws InvalidKeySpecException { return spi.engineGetKeySpec(algorithm, password, specType); }
/** * Generate a key specification of the given type from the given password object. * * @param password the password object * @param specType the specification class * @param <T> the specification type * @return the key specification * @throws InvalidKeySpecException if the password cannot be translated to the given key specification type */ public <T extends KeySpec> T getKeySpec(Password password, Class<T> specType) throws InvalidKeySpecException { return spi.engineGetKeySpec(algorithm, password, specType); }
/** * Generate a key specification of the given type from the given password object. * * @param password the password object * @param specType the specification class * @param <T> the specification type * @return the key specification * @throws InvalidKeySpecException if the password cannot be translated to the given key specification type */ public <T extends KeySpec> T getKeySpec(Password password, Class<T> specType) throws InvalidKeySpecException { return spi.engineGetKeySpec(algorithm, password, specType); }