edu.vt.middleware.password
Class IllegalCharacterRule

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

public class IllegalCharacterRule
extends Object
implements Rule

Rule for determining if a password contains an illegal character.

Version:
$Revision: 2021 $ $Date: 2011-07-01 18:20:34 -0400 (Fri, 01 Jul 2011) $
Author:
Middleware Services

Field Summary
static String ERROR_CODE
          Error code for illegal character failures.
 
Constructor Summary
IllegalCharacterRule(char[] c)
          Create a new illegal character rule.
 
Method Summary
protected  Map<String,?> createRuleResultDetailParameters(char c)
          Creates the parameter data for the rule result detail.
 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 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 Map<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 String toString()
Returns a string representation of this object.

Overrides:
toString in class Object
Returns:
string representation


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