edu.vt.middleware.password
Interface CharacterRule

All Superinterfaces:
Rule
All Known Implementing Classes:
AbstractCharacterRule, AlphabeticalCharacterRule, DigitCharacterRule, LowercaseCharacterRule, NonAlphanumericCharacterRule, UppercaseCharacterRule

public interface CharacterRule
extends Rule

Interface for rules implementing character enforcement.

Version:
$Revision: 1927 $ $Date: 2011-04-27 13:32:24 -0400 (Wed, 27 Apr 2011) $
Author:
Middleware Services

Method Summary
 int getNumberOfCharacters()
          Returns the number of characters which must exist in order for a password to meet the requirements of this rule.
 String getValidCharacters()
          Returns the characters that are considered valid for this rule.
 void setNumberOfCharacters(int n)
          Sets the number of characters to require in a password.
 
Methods inherited from interface edu.vt.middleware.password.Rule
validate
 

Method Detail

setNumberOfCharacters

void setNumberOfCharacters(int n)
Sets the number of characters to require in a password.

Parameters:
n - number of characters to require where n > 0

getNumberOfCharacters

int getNumberOfCharacters()
Returns the number of characters which must exist in order for a password to meet the requirements of this rule.

Returns:
number of characters to require

getValidCharacters

String getValidCharacters()
Returns the characters that are considered valid for this rule.

Returns:
valid characters


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