|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.policy.PolicyImplementation
com.waveset.policy.StringQualityPolicy
Field Summary | |
static java.lang.String[] |
ALLOWED_ALL_CHAR_TYPES
|
static java.lang.String[] |
ALPHA_CHAR_TYPES
|
static java.lang.String[] |
CHAR_TYPE_RULES
|
static java.lang.String |
CHECK_DICTIONARY
|
static java.lang.String |
code_id
|
static java.lang.String |
DESC
The description to use in the prototype instance. |
static java.lang.String |
DISALLOW_DUPLICATE_ANSWERS
A policy attribute that determines whether answers to Authentication Questions can be duplicated within a login interface. |
static java.lang.String |
DISALLOW_QUESTION_WORDS_IN_ANSWERS
A policy attribute that determines whether answers may contain words from the corresponding question. |
static java.lang.String |
DN_FORMAT
Flag to indicate that the account Id must conform to the LDAP DN format |
static java.lang.String |
DONT_MATCH_REGEXP
Attributes for unimplemented policy restrictions |
static java.lang.String[][] |
INCOMPATIBLE_CHAR_TYPE_RULES
|
static java.lang.String[] |
INCOMPATIBLE_NUMERIC_RULES
|
static java.lang.String[] |
INCOMPATIBLE_START_RULES
|
static java.lang.String |
KEY_OTHER_ANSWERS
Key into map for list of other answers, used when checking (DISALLOW_DUPLICATE_ANSWERS) |
static java.lang.String |
KEY_QUESTION_WORDS
Key into map for list of question words, used when checking (DISALLOW_QUESTION_WRODS_IN_ANSWERS) |
static java.lang.String[] |
LENGTH_RULES
|
static java.lang.String |
MAX_ALPHA
Must not contain more than N alpha characters. |
static java.lang.String |
MAX_EMBEDDED_SPACES
A policy attribute that specifies the maximum number of spaces that can be embedded in the string (no string can have leading or trailing spaces) |
static java.lang.String |
MAX_LEN
A policy attribute that specifies the maximum length of the string. |
static java.lang.String |
MAX_LOWER
Must not contain more than N lowercase characters. |
static java.lang.String |
MAX_NUMERIC
Must not contain more than N numeric characters. |
static java.lang.String |
MAX_OCCURENCES
A policy attribute that specifies the Maximum number of times one character can occur, irrespective of its placement in a string (e.g. |
static java.lang.String |
MAX_REPETITIVE
A policy attribute that specifies the maximum number of repetitive, adajcent characters or numbers in the string (e.g. |
static java.lang.String |
MAX_SEQUENTIAL
A policy attribute that specifies the maximum number of sequential numbers (e.g. |
static java.lang.String |
MAX_SPECIAL
Must not contain more than N special characters. |
static java.lang.String |
MAX_UPPER
Must not contain more than N uppercase characters. |
static java.lang.String |
MIN_ALPHA
A policy attribute that specifies the minimum number of alphabetic characters |
static java.lang.String |
MIN_CHAR_TYPE_RULES_REQUIRED_TO_PASS
A policy attribute that specifies how many of the selected character type rules have to pass for validation to succeed |
static java.lang.String |
MIN_EMBEDDED_NUMERIC
The number of embedded numeric chars required (not the first or last) |
static java.lang.String |
MIN_LEN
A policy attribute that specifies the minimum length of the string. |
static java.lang.String |
MIN_LOWER
A policy attribute that specifies the minimum number of lowercase letters |
static java.lang.String |
MIN_NUMERIC
A policy attribute that specifies the minimum number of numeric characters |
static java.lang.String |
MIN_SPECIAL
Must contain N special chars |
static java.lang.String |
MIN_START_ALPHA
The number of alpha chars required at beginning |
static java.lang.String |
MIN_START_NUMERIC
The number of numeric chars required at beginning |
static java.lang.String |
MIN_UPPER
A policy attribute that specifies the minimum number of uppercase letters |
static java.lang.String |
MUST_MATCH_REGEXP
|
static java.lang.String |
MUST_NOT_CONTAIN
A policy attribute that specifies the list of attribute values the value cannot contain (e.g. |
static java.lang.String |
MUST_NOT_CONTAIN_WORDS
A policy attribute that specifies the list of words the value cannot contain (e.g. |
static java.lang.String[] |
NUMERIC_CHAR_TYPES
|
static java.lang.String |
PASSWORD_HISTORY_DEPTH
A policy attribute that specifies the number of previous passwords that should be kept per user, per resource. |
static java.lang.String |
PASSWORD_HISTORY_MAX_SIMILAR_CHARS_ALLOWED
A policy attribute that specifies the maximum number of similar characters that can be reused when compared to previous passwords stored in password history. |
static java.lang.String |
PROTONAME
The name to use in our prototype instance. |
static java.lang.String |
SPECIAL_CHARS
|
static java.lang.String |
TYPE
A policy attribute that can be used to supply a string used to make formatting message clearer. |
Fields inherited from class com.waveset.policy.PolicyImplementation |
ALL_CHARS, NO_VALUE, trace |
Constructor Summary | |
StringQualityPolicy()
Create an empty policy object. |
Method Summary | |
void |
check(Policy policy,
java.lang.Object value,
java.util.Map map,
java.util.List pwdhistory,
java.lang.String owner)
Tests a string for certain characteristics. |
void |
check(Policy policy,
java.lang.Object value,
java.lang.String owner)
Analyzes a single value for adherance to the policy. |
java.lang.Object |
generate(Policy policy)
Generate an identifier that is consistent with the policy. |
java.lang.Object |
generate(Policy policy,
java.util.Map map,
java.util.List pwdHistory)
Generate an object that would pass the check() method for this policy. |
byte[] |
generateByteArray(Policy policy)
Generate an identifier that is consistent with the policy. |
java.lang.Object |
getAllowedAttributeValues(java.lang.String name,
java.lang.String type)
Called by PolicyForm to decide whether to put up a multiselect in which case it returns a list of String, or a text box for Integer arguments. |
static java.lang.String |
getAttributeDisplayName(java.lang.String attributeName)
|
static java.lang.String[] |
getAttributeNames()
|
Policy |
getPrototype()
Returns the prototype instance for this policy. |
static boolean |
validCharacterRules(Policy policy)
|
Methods inherited from class com.waveset.policy.PolicyImplementation |
checkPolicyArg, getAllowedAttributeValues, getAttributeFromUser, getBooleanAttribute, getContext, getIntAttribute, getIntAttribute, getObjectAttribute, getStringAttribute, getStringListAttribute, getUserPropertyName, getValue, setAttributeOnUser, setContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
public static final java.lang.String PROTONAME
public static final java.lang.String DESC
public static final java.lang.String TYPE
public static final java.lang.String MIN_LEN
public static final java.lang.String MAX_LEN
public static final java.lang.String MIN_ALPHA
public static final java.lang.String MIN_NUMERIC
public static final java.lang.String MIN_UPPER
public static final java.lang.String MIN_LOWER
public static final java.lang.String MAX_OCCURENCES
public static final java.lang.String MAX_REPETITIVE
public static final java.lang.String MAX_SEQUENTIAL
public static final java.lang.String MUST_NOT_CONTAIN
public static final java.lang.String MUST_NOT_CONTAIN_WORDS
public static final java.lang.String MIN_START_ALPHA
public static final java.lang.String MIN_START_NUMERIC
public static final java.lang.String MIN_EMBEDDED_NUMERIC
public static final java.lang.String MAX_EMBEDDED_SPACES
public static final java.lang.String MIN_CHAR_TYPE_RULES_REQUIRED_TO_PASS
public static final java.lang.String MIN_SPECIAL
public static final java.lang.String CHECK_DICTIONARY
public static final java.lang.String MAX_ALPHA
public static final java.lang.String MAX_NUMERIC
public static final java.lang.String MAX_UPPER
public static final java.lang.String MAX_LOWER
public static final java.lang.String MAX_SPECIAL
public static final java.lang.String DN_FORMAT
public static final java.lang.String SPECIAL_CHARS
public static final java.lang.String[] LENGTH_RULES
public static final java.lang.String[] CHAR_TYPE_RULES
public static final java.lang.String[] ALLOWED_ALL_CHAR_TYPES
public static final java.lang.String[] ALPHA_CHAR_TYPES
public static final java.lang.String[] NUMERIC_CHAR_TYPES
public static final java.lang.String[] INCOMPATIBLE_NUMERIC_RULES
public static final java.lang.String[] INCOMPATIBLE_START_RULES
public static final java.lang.String[][] INCOMPATIBLE_CHAR_TYPE_RULES
public static final java.lang.String PASSWORD_HISTORY_DEPTH
public static final java.lang.String PASSWORD_HISTORY_MAX_SIMILAR_CHARS_ALLOWED
public static final java.lang.String DISALLOW_DUPLICATE_ANSWERS
public static final java.lang.String KEY_OTHER_ANSWERS
public static final java.lang.String DISALLOW_QUESTION_WORDS_IN_ANSWERS
public static final java.lang.String KEY_QUESTION_WORDS
public static final java.lang.String DONT_MATCH_REGEXP
public static final java.lang.String MUST_MATCH_REGEXP
Constructor Detail |
public StringQualityPolicy()
Method Detail |
public Policy getPrototype() throws WavesetException
getPrototype
in class PolicyImplementation
WavesetException
public static java.lang.String[] getAttributeNames()
public static java.lang.String getAttributeDisplayName(java.lang.String attributeName)
public java.lang.Object getAllowedAttributeValues(java.lang.String name, java.lang.String type)
public void check(Policy policy, java.lang.Object value, java.util.Map map, java.util.List pwdhistory, java.lang.String owner) throws PolicyViolation, WavesetException
check
in class PolicyImplementation
PolicyViolation
WavesetException
public void check(Policy policy, java.lang.Object value, java.lang.String owner) throws PolicyViolation, WavesetException
PolicyImplementation
A policy object representing a particular "instance" of this policy implementation is passed in. This object supplies zero or more "policy attributes" which can be used to tailor the behavior of the policy.
check
in class PolicyImplementation
PolicyViolation
- if the value violates the policy.
WavesetException
- if an internal error was encountered.public java.lang.Object generate(Policy policy, java.util.Map map, java.util.List pwdHistory) throws WavesetException
PolicyImplementation
generate
in class PolicyImplementation
WavesetException
public java.lang.Object generate(Policy policy) throws WavesetException
generate
in class PolicyImplementation
WavesetException
public byte[] generateByteArray(Policy policy) throws WavesetException
generateByteArray
in class PolicyImplementation
WavesetException
public static boolean validCharacterRules(Policy policy) throws WavesetException
WavesetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |