Keel 2.1RC2

org.keel.services.password
Interface PasswordGenerator

All Known Implementing Classes:
DefaultPasswordGenerator, SimplePasswordGenerator

public interface PasswordGenerator

A Service to provide a random password as a string

Author:
Jeff Richley

Field Summary
static java.lang.String ROLE
           
 
Method Summary
 java.lang.String getRandomPassword()
          Produce a random password according to default settings or configuration
 java.lang.String getRandomPassword(int length, boolean lower, boolean upper, boolean digits, boolean special)
          Produce a random password according to certain parameters that constrain the result
 

Field Detail

ROLE

public static final java.lang.String ROLE
See Also:
Constant Field Values
Method Detail

getRandomPassword

public java.lang.String getRandomPassword()
Produce a random password according to default settings or configuration

Returns:
The new random password

getRandomPassword

public java.lang.String getRandomPassword(int length,
                                          boolean lower,
                                          boolean upper,
                                          boolean digits,
                                          boolean special)
Produce a random password according to certain parameters that constrain the result

Parameters:
length - Length of the password to be generated
lower - Use all lower case?
upper - Use all upper case?
digits - Use digits?
special - Use special characters (e.g. punctuation)?
Returns:
The generated password

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.