edu.vt.middleware.password
Class IllegalCharacterRule

java.lang.Object
  extended by edu.vt.middleware.password.IllegalCharacterRule
All Implemented Interfaces:
Rule

public class IllegalCharacterRule
extends java.lang.Object
implements Rule

Rule for determining if a password contains an illegal character.

Version:
$Revision: 1930 $ $Date: 2011-04-28 13:06:17 -0400 (Thu, 28 Apr 2011) $
Author:
Middleware Services

Field Summary
static java.lang.String ERROR_CODE
          Error code for illegal character failures.
 
Constructor Summary
IllegalCharacterRule(char[] c)
          Create a new illegal character rule.
 
Method Summary
protected  java.util.Map<java.lang.String,?> createRuleResultDetailParameters(char c)
          Creates the parameter data for the rule result detail.
 java.lang.String toString()
          Returns a string representation of this object.
 RuleResult validate(PasswordData passwordData)
          Validates the supplied password data per the requirements of this rule.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR_CODE

public static final java.lang.String ERROR_CODE
Error code for illegal character failures.

See Also:
Constant Field Values
Constructor Detail

IllegalCharacterRule

public IllegalCharacterRule(char[] c)
Create a new illegal character rule.

Parameters:
c - illegal characters
Method Detail

validate

public RuleResult validate(PasswordData passwordData)
Validates the supplied password data per the requirements of this rule.

Specified by:
validate in interface Rule
Parameters:
passwordData - to verify (not null).
Returns:
details on password verification

createRuleResultDetailParameters

protected java.util.Map<java.lang.String,?> createRuleResultDetailParameters(char c)
Creates the parameter data for the rule result detail.

Parameters:
c - illegal character
Returns:
map of parameter name to value

toString

public java.lang.String toString()
Returns a string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
string representation


Copyright © 2003-2011 Virginia Tech. All Rights Reserved.