/** * Encode the given {@link Password} to a byte array. * * @param password the password to encode * @return a byte array representing the encoded password or null if no encoder was capable to encode the given password */ public static byte[] encode(Password password) throws NoSuchAlgorithmException, InvalidKeySpecException { return encode(password, INSTALLED_PROVIDERS); }
String algorithm = password.getAlgorithm(); String passwordString; byte[] encoded = BasicPasswordSpecEncoding.encode(password);
/** * Encode the given {@link Password} to a byte array. * * @param password the password to encode * @return a byte array representing the encoded password or null if no encoder was capable to encode the given password */ public static byte[] encode(Password password) throws NoSuchAlgorithmException, InvalidKeySpecException { return encode(password, INSTALLED_PROVIDERS); }
/** * Encode the given {@link Password} to a byte array. * * @param password the password to encode * @return a byte array representing the encoded password or null if no encoder was capable to encode the given password */ public static byte[] encode(Password password) throws NoSuchAlgorithmException, InvalidKeySpecException { return encode(password, INSTALLED_PROVIDERS); }
/** * Encode the given {@link Password} to a byte array. * * @param password the password to encode * @return a byte array representing the encoded password or null if no encoder was capable to encode the given password */ public static byte[] encode(Password password) throws NoSuchAlgorithmException, InvalidKeySpecException { return encode(password, INSTALLED_PROVIDERS); }
String algorithm = password.getAlgorithm(); String passwordString; byte[] encoded = BasicPasswordSpecEncoding.encode(password);
String algorithm = password.getAlgorithm(); String passwordString; byte[] encoded = BasicPasswordSpecEncoding.encode(password);
String algorithm = password.getAlgorithm(); String passwordString; byte[] encoded = BasicPasswordSpecEncoding.encode(password);