|
TrueLicense Core 1.33 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.schlichtherle.license.Policy
public class Policy
Provides an interface for security policies and implements the default policy.
| Field Summary | |
|---|---|
private static Policy |
current
The current policy. |
| Constructor Summary | |
|---|---|
protected |
Policy()
Only subclasses can instantiate this class. |
| Method Summary | |
|---|---|
void |
checkPwd(String pwd)
Checks the given password for compliance to the current password policy. |
static Policy |
getCurrent()
Returns the current policy. |
static void |
setCurrent(Policy current)
Sets the current policy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static Policy current
| Constructor Detail |
|---|
protected Policy()
| Method Detail |
|---|
public void checkPwd(String pwd)
The default policy implemented by this class ensures that the password is at least six characters long and consists of letters and digits.
IllegalPasswordException - If the given password does not comply
to the current policy.public static Policy getCurrent()
public static void setCurrent(Policy current)
current - The new current policy.
May be null to cause the default policy implemented by
this class to be installed and returned by getCurrent().
|
TrueLicense Core 1.33 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||