public class PasswordFactory extends java.lang.Object implements PasswordParameters
COUNT, DEFAULTPASSWORD, SALT
Constructor and Description |
---|
PasswordFactory() |
public static final char[] create() throws java.security.NoSuchAlgorithmException, java.io.UnsupportedEncodingException
java.security.NoSuchAlgorithmException
java.io.UnsupportedEncodingException
public static final char[] create(java.lang.String seed) throws java.security.NoSuchAlgorithmException, java.io.UnsupportedEncodingException
seed
- the default password supplied by the callerjava.security.NoSuchAlgorithmException
java.io.UnsupportedEncodingException
public static final char[] create(char[] seed) throws java.security.NoSuchAlgorithmException, java.io.UnsupportedEncodingException
seed
- the default password supplied by the callerjava.security.NoSuchAlgorithmException
java.io.UnsupportedEncodingException
public static final char[] create(char[] password, byte[] salt, int count) throws java.security.NoSuchAlgorithmException, java.io.UnsupportedEncodingException
salt
- the password saltpassword
- the default passwordcount
- number of MessageDigest iterationsjava.security.NoSuchAlgorithmException
- the encryption algorithm is not supportedjava.io.UnsupportedEncodingException
- the requested encoding is not supportedCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.