eTextReader.authentication
Interface PasswordPolicy

All Known Implementing Classes:
CompoundPolicy, MinimumLengthPolicy

public interface PasswordPolicy

This interface defines a set of methods used to determine whether or not a given password is valid

Author:
mcfall

Method Summary
 java.lang.String getDescription()
          Retrieves a human-readable description of the rules this policy enforces
 boolean isValid(java.lang.String password)
          Determines whether or not the given password is valid under this policy
 

Method Detail

isValid

boolean isValid(java.lang.String password)
Determines whether or not the given password is valid under this policy

Parameters:
password - the password to check
Returns:
true if the given password is valid, false otherwise

getDescription

java.lang.String getDescription()
Retrieves a human-readable description of the rules this policy enforces

Returns:
a string describing the policy rules