Package com.iizix.prop
Class PolicyProps
- java.lang.Object
- com.iizix.prop.GProp<GProp<?>[]>
- com.iizix.prop.PropCnr
- com.iizix.prop.PolicyProps
 
 
 
- All Implemented Interfaces:
- EventListener,- IGProp<GProp<?>[]>,- IPropCnr,- java.lang.Cloneable
 - Direct Known Subclasses:
- EditorPolicyProps
 - public class PolicyProps extends PropCnr Container holding policiy settings. In the server, there are two sets: one for administrators and one for normal users. Typically, policy settings are used for security settings such as passwords, etc.- Author:
- Christopher Mindus
 
- Field Summary- Fields - Modifier and Type - Field - Description - static Atom- AN_ADMINThe atom name for "admin".- static Atom- AN_USERThe atom name for "user".- static java.lang.String- PN_ADMINThe policy type name for an administrator: "$admin".- static java.lang.String- PN_CHANGE_AT_NEXT_LOGINProperty name: Password must be changed upon next login (requires "noChanges" = false).- static java.lang.String- PN_HAS_ADVANCED_ENTROPYProperty name: check advanced strength: boolean, to use advanced entropy checking, true by default for admin.- static java.lang.String- PN_HAS_DIGITProperty name: boolean flag for at least one digit.- static java.lang.String- PN_HAS_Q_SYMBOLProperty name: boolean flag for at least one "symbol" character (other than 0-9, a-z, A-Z), default true for admin, false for users.- static java.lang.String- PN_HAS_UPPER_AND_LOWERProperty name: flag for at least one lower case and one upper case character, default true for admin, false for users.- static java.lang.String- PN_HISTORY_LENGTHProperty name: History length: integer, default 4 for users and 8 for admin.- static java.lang.String- PN_MIN_LENGTHProperty name: integer, minimum password length is 4.- static java.lang.String- PN_NO_CHANGESProperty name: Password cannot be changed.- static java.lang.String- PN_USERThe policy type name for a user: "$user".- Fields inherited from class com.iizix.prop.PropCnr- EMPTY, EMPTY_CLASSES, EMPTY_CNRS, EXTENDS_FRAMEWORK_ERROR_ID
 - Fields inherited from class com.iizix.prop.GProp- GPDEBUG, PROP_ATTR_STRING_EDITOR_PROP, PROP_ATTR_STRING_ERRORED_NAME, PROP_ATTR_STRING_EXTENDS, PROP_ATTR_STRING_EXTENDS_FINAL, PROP_ATTR_STRING_EXTENDS_PRIVATE, PROP_ATTR_STRING_NULLABLE, PROP_ATTR_STRING_PRIVATE, PROP_ATTR_STRING_PRIVATE_CHANGE_EVENT, PROP_ATTR_STRING_READ_ONLY, PROP_USER_1, PROP_USER_2
 - Fields inherited from interface com.iizix.prop.IGProp- EQC_ERROR_IGNORE_ALL, EQC_ERROR_IGNORE_REFERENCES, EQC_IGNORE_ARRAY, EQC_IGNORE_VOLATILE_OR_EDITOR, EQC_PRIVATE, EQC_SAVE_FILE, EXT_CONTAINER_EXTENDS, EXT_CONTAINER_EXTENDS_VALID, EXT_EXTENDED, EXT_FINAL, EXT_OVERRIDES, EXT_OVERRIDES_FINAL_ERR, EXT_PRIVATE
 
 - Constructor Summary- Constructors - Constructor - Description - PolicyProps()Creates the container properties without a name.- PolicyProps(Atom atom)Creates the container properties with a name.
 - Method Summary- All Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - boolean- canChangePassword()Checks if the password can be changed or not.- PolicyProps- clone()Clone must be overridden.- java.lang.String- getDescription()Gets the description of the Server.- int- getPasswordHistoryLength()Property name: History length: integer, default 0 for users and 8 for admin, zero for disabled.- int- getPasswordMinLength()Property name: integer, minimum password length is 4.- boolean- isAdminPolicy()Returns if this is a policy for administrators, i.e.- boolean- mustChangePassword()Checks if the password must be changed at next login.- boolean- requiredAdvancedEntropyChecking()Property name: check advanced strength: boolean, to use advanced entropy checking, false by default.- boolean- requiresPasswordDigit()Property name: boolean flag for at least one digit, default true for admin, false for users.- boolean- requiresPasswordQSymbol()Property name: boolean flag for at least one "symbol" character (other than 0-9, a-z, A-Z), default true for admin, false for users.- boolean- requiresPasswordUpperLower()Property name: flag for at least one lower case and one upper case character, default true for admin, false for users.- boolean- setRequireAdvancedEntropyChecking(boolean on)Property name: check advanced strength: boolean, to use advanced entropy checking, false by default.- Methods inherited from class com.iizix.prop.PropCnr- __transferChildProps, addPredefinedProps, addProp, addProp, addProp2, addProp2, appendPropValue, canRequestFocus, completeVirtualize, containsProp, containsProp, convertLoadedProp, couldRequestFocusIfVirtualized, createCopyOfAtom, createUniqueAtom, createUniqueAtom, createUniqueAtom, createVSReference, doPropEqualsArrayValues, doVirtualizePropCnr, enablePropCommunication, enablePropHashMap, equalsTree, equalsTree, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getBool, getBool, getBool, getBool, getChildPropError, getChildPropError, getChildPropErrorSeverity, getChildPropErrorSeverity, getErrorsProp, getExtendsContainer, getExtendsError, getExtendsName, getExtendsOverride, getExtendsPossibleClasses, getFirstProp, getFirstProp, getFocusEngine, getInt, getInt, getInt, getInt, getLong, getLong, getLong, getLong, getNumber, getNumber, getNumber, getNumber, getPossibleChildren, getPredefinedProps, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getPropBaseReference, getPropCnr, getPropCount, getPropCount, getPropIndex, getPropIndex, getPropIndexes, getProps, getProps, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue0, getReferences, getRetargetedVerifyContainer, getString, getString, getString, getString, getValueClasses, getVSReference, hasFocus, hasSendData, initializeElement, initializeExtendsFramework, initializeProp, initializeValue, initPropCnr, insertProp, insertProp2, isChild, isExtendsOverriden, isExtendsPropertyValid, isExtendsRoot, isPropAddRemoveAllowed, isPropCommunicating, isPropExtended, isSibling, list, list, logPropNotFound, maybeAddProp, onInsertProp, onPropDispose, onPropRemoved, onPropTreeInitialized, onReferenceEvent, paramString, prepare, removeAllProps, removeAllProps2, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, reorderProps, replaceProps, requestFocus, requestFocus, requestFocusEx, requestFocusEx, resolveReferences, resolveRuntimeReferences, setBool, setBool, setBool, setBool, setCreateRequiredProp, setExtendsName, setExtendsOverride, setInt, setInt, setInt, setLong, setLong, setLong, setLong, setNumber, setNumber, setNumber, setNumber, setProp, setProp, setProp, setProp2, setProp2, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setString, setString, setString, setString, shouldCreateProps, shouldSerializeToXML, toElementString, toNativeValue0, usePropHashMap, usesPropIndex, validateChildPropInValue, validateClassInstances, validatePropType, validatePropValue, verify, verifyInternalUseOnly, verifyTree, virtualize
 - Methods inherited from class com.iizix.prop.GProp- addPropError, addPropListener, convertPropError, dispose, equals, equals, equalsErrors, equalsObj, equalsPropValue, equalValues, extendsClone, finalize, fine, fine, finer, finer, finest, finest, fromElementString, getAliasName, getAppSessionGyro, getAppWorker, getAtomPath, getAttribute, getChildReferencePropName, getClientSessionGyro, getClientWorker, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropName, getFullPropNameDebug, getFullPropNameDebug, getListeners, getModuleFolder, getModuleFolder, getParent, getParent, getProjectName, getPropAtom, getPropError, getPropError, getPropErroredName, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromPath, getPropFromReference, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropReferenceTarget, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getPropValueObject, getReferencePropName, getRelativePropName, getRootFromName, getRootName, getRootParent, getRootParent, getTreeLock, hasChanged, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropForEditor, isPropNullable, isPropPrivate, isPropPrivateAtCreation, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropUSER, isPropValueTreeLockNeeded, isPropVirtualized, isPropVirtualizing, isPropVolatile, isPropVolatileOrEditorOnly, isProxied, list, list, list, mapAliasToReference, mapAliasToReference, mapReferenceToAlias, mapReferenceToAlias, mapReferenceToProjectRelative, modifyPropValue, moveProp, moveProp, moveProp, onEvent, onEventSelf, onPrepare, onPropInvalidateCache, onPropParentChanged, onPropValueSet, onRemoteEvent, onVirtualizationCompleted, onVirtualized, paramValue, post, post, removePropError, removePropListener, removePropUSER, renameProp, renameProp2, resetChangedTree, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPrivateCreateRequiredProp, setPropError, setPropErroredName, setPropExtended, setPropExtendsFinal, setPropExtendsPrivate, setPropForEditor, setPropNullable, setPropPrivate, setPropReadOnly, setPropUSER, setPropValue, setPropValue, setPropValue, setPropValueIncognito, setPropVolatile, severe, severe, severe, shouldSerializeToXML, throwIfReadOnly, toNativeValue, toString, toString, triggerRemoteEvent, triggerRemoteEvent, validateProp, verifyHasPropertyItem, warning, warning, warning
 - Methods inherited from class java.lang.Object- getClass, hashCode, notify, notifyAll, wait, wait, wait
 - Methods inherited from interface com.iizix.prop.IGProp- addPropError, addPropListener, dispose, equals, fine, fine, finer, finer, finest, finest, fromElementString, getAppSessionGyro, getAtomPath, getClientSessionGyro, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropNameDebug, getModuleFolder, getModuleFolder, getParent, getParent, getPropAtom, getPropError, getPropError, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getReferencePropName, getRelativePropName, getRootParent, getTreeLock, hasChanged, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropNullable, isPropPrivate, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropVirtualized, list, list, list, mapAliasToReference, mapReferenceToAlias, mapReferenceToProjectRelative, moveProp, moveProp, moveProp, onEvent, onEventSelf, onRemoteEvent, removePropError, removePropListener, renameProp, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPropError, setPropExtendsFinal, setPropExtendsPrivate, setPropNullable, setPropPrivate, setPropReadOnly, setPropValue, setPropValue, severe, severe, severe, toNativeValue, triggerRemoteEvent, triggerRemoteEvent, validateProp, verifyHasPropertyItem, warning, warning, warning
 - Methods inherited from interface com.iizix.prop.IPropCnr- canRequestFocus, canRequestFocus, couldRequestFocusIfVirtualized, couldRequestFocusIfVirtualized
 
 
- Field Detail- PN_ADMIN- public static final java.lang.String PN_ADMIN The policy type name for an administrator: "$admin".- See Also:
- Constant Field Values
 
 - PN_USER- public static final java.lang.String PN_USER The policy type name for a user: "$user".- See Also:
- Constant Field Values
 
 - AN_ADMIN- public static final Atom AN_ADMIN The atom name for "admin".
 - AN_USER- public static final Atom AN_USER The atom name for "user".
 - PN_MIN_LENGTH- public static final java.lang.String PN_MIN_LENGTH Property name: integer, minimum password length is 4.- See Also:
- Constant Field Values
 
 - PN_HAS_DIGIT- public static final java.lang.String PN_HAS_DIGIT Property name: boolean flag for at least one digit.- See Also:
- Constant Field Values
 
 - PN_HAS_Q_SYMBOL- public static final java.lang.String PN_HAS_Q_SYMBOL Property name: boolean flag for at least one "symbol" character (other than 0-9, a-z, A-Z), default true for admin, false for users.- See Also:
- Constant Field Values
 
 - PN_HAS_UPPER_AND_LOWER- public static final java.lang.String PN_HAS_UPPER_AND_LOWER Property name: flag for at least one lower case and one upper case character, default true for admin, false for users.- See Also:
- Constant Field Values
 
 - PN_HAS_ADVANCED_ENTROPY- public static final java.lang.String PN_HAS_ADVANCED_ENTROPY Property name: check advanced strength: boolean, to use advanced entropy checking, true by default for admin.- See Also:
- Constant Field Values
 
 - PN_HISTORY_LENGTH- public static final java.lang.String PN_HISTORY_LENGTH Property name: History length: integer, default 4 for users and 8 for admin.- See Also:
- Constant Field Values
 
 - PN_CHANGE_AT_NEXT_LOGIN- public static final java.lang.String PN_CHANGE_AT_NEXT_LOGIN Property name: Password must be changed upon next login (requires "noChanges" = false).- See Also:
- Constant Field Values
 
 - PN_NO_CHANGES- public static final java.lang.String PN_NO_CHANGES Property name: Password cannot be changed.- See Also:
- Constant Field Values
 
 
 - Constructor Detail- PolicyProps- public PolicyProps() Creates the container properties without a name.
 - PolicyProps- public PolicyProps(Atom atom) Creates the container properties with a name.- Parameters:
- atom- The atom name.
 
 
 - Method Detail- clone- public PolicyProps clone() Clone must be overridden.
 - getDescription- public java.lang.String getDescription() Gets the description of the Server.- Returns:
- The description, "Administrator's password policy" or "User's password policy" for default.
 
 - isAdminPolicy- public boolean isAdminPolicy() Returns if this is a policy for administrators, i.e. has the name "admin".
 - getPasswordMinLength- public int getPasswordMinLength() Property name: integer, minimum password length is 4. Default is 8 for admin and 6 for users.
 - requiresPasswordDigit- public boolean requiresPasswordDigit() Property name: boolean flag for at least one digit, default true for admin, false for users.
 - requiresPasswordQSymbol- public boolean requiresPasswordQSymbol() Property name: boolean flag for at least one "symbol" character (other than 0-9, a-z, A-Z), default true for admin, false for users.
 - requiresPasswordUpperLower- public boolean requiresPasswordUpperLower() Property name: flag for at least one lower case and one upper case character, default true for admin, false for users.
 - setRequireAdvancedEntropyChecking- public boolean setRequireAdvancedEntropyChecking(boolean on) Property name: check advanced strength: boolean, to use advanced entropy checking, false by default.
 - requiredAdvancedEntropyChecking- public boolean requiredAdvancedEntropyChecking() Property name: check advanced strength: boolean, to use advanced entropy checking, false by default.
 - getPasswordHistoryLength- public int getPasswordHistoryLength() Property name: History length: integer, default 0 for users and 8 for admin, zero for disabled.
 - canChangePassword- public boolean canChangePassword() Checks if the password can be changed or not.- Returns:
- true for changeable, false for fixed.
 
 - mustChangePassword- public boolean mustChangePassword() Checks if the password must be changed at next login.- Returns:
- true for must change, false for not required.