Class EPPLoginSecPolicyPassword
java.lang.Object
com.verisign.epp.codec.loginsecpolicy.v04.EPPLoginSecPolicyPassword
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
This class is encoded to the <loginSecPolicy:pw> element that
represents the login password format policy. The <loginSecPolicy:pw>
element contains the following child elements:
- <loginSecPolicy:expression> - The login password format regular expression.
- <oginSecPolicy:description> - The OPTIONAL human readable description of the login password format policy. The "lang" attribute MAY be present to identify the language of the description if the negotiated value is something other than the default value of "en" (English).
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML attribute name used for the OPTIONAL descriptionlangattribute.static final StringDefault Language -- English "en"static final StringXML local name forEPPLoginSecPolicyPassword.static final StringXML root tag forEPPLoginSecPolicyPassword. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPLoginSecPolicyPassword.EPPLoginSecPolicyPassword(String aExpression) Constructor forEPPLoginSecPolicyPasswordthat takes the required expression attribute.EPPLoginSecPolicyPassword(String aExpression, String aLang, String aDescription) Constructor forEPPLoginSecPolicyPasswordthat takes all attributes. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPLoginSecPolicyPassword.voidDecode theEPPLoginSecPolicyPasswordattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPLoginSecPolicyPasswordinstance.booleanimplements a deepEPPLoginSecPolicyPasswordcompare.Gets the status description, which is free form text describing the rationale for the status.Gets the login password format regular expression.getLang()Gets the language of the status description with the default set toDEFAULT_LANG.Returns the XML namespace associated with theEPPCodecComponent.Get restricted words flag.Get restricted words url.Get special rules flag.booleanIs the description defined?booleanIs the restricted words flag defined?booleanIs the restricted words url defined?booleanIs the special rules flag defined?voidsetDescription(String aDesc) Sets the status description, which is free form text describing the rationale for the status.voidsetExpression(String aExpression) Sets the login password format regular expression.voidSets the language of the status description with the default set toDEFAULT_LANG.voidsetRestrictedWords(Boolean aRestrictedWords) Set restricted words flag.voidsetRestrictedWordsUrl(String aRestrictedWordsUrl) Set restricted words url.voidsetSpecialRules(Boolean aSpecialRules) Set special rules flag.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPLoginSecPolicyPassword.- See Also:
-
ELM_NAME
XML root tag forEPPLoginSecPolicyPassword.- See Also:
-
DEFAULT_LANG
Default Language -- English "en"- See Also:
-
ATTR_LANG
XML attribute name used for the OPTIONAL descriptionlangattribute.- See Also:
-
-
Constructor Details
-
EPPLoginSecPolicyPassword
public EPPLoginSecPolicyPassword()Default constructor forEPPLoginSecPolicyPassword. The expression must be set prior to callingencode(Document). -
EPPLoginSecPolicyPassword
Constructor forEPPLoginSecPolicyPasswordthat takes the required expression attribute.- Parameters:
aExpression- The login password format regular expression.
-
EPPLoginSecPolicyPassword
Constructor forEPPLoginSecPolicyPasswordthat takes all attributes.- Parameters:
aExpression- The login password format regular expression.aLang- OPTIONAL language of the description with a default ofDEFAULT_LANG. Set toDEFAULT_LANGornullto use the default value.aDescription- Description of the password policy
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPLoginSecPolicyPasswordinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPLoginSecPolicyPasswordinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPLoginSecPolicyPasswordinstance.
-
decode
Decode theEPPLoginSecPolicyPasswordattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPLoginSecPolicyPasswordfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
implements a deepEPPLoginSecPolicyPasswordcompare. -
clone
CloneEPPLoginSecPolicyPassword.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPLoginSecPolicyPassword - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getExpression
Gets the login password format regular expression.- Returns:
- the expression if defined;
nullotherwise.
-
setExpression
Sets the login password format regular expression.- Parameters:
aExpression- the expression to set
-
getLang
Gets the language of the status description with the default set toDEFAULT_LANG.- Returns:
- Language of description with the default value of
DEFAULT_LANG.
-
setLang
Sets the language of the status description with the default set toDEFAULT_LANG.- Parameters:
aLang- Language of description. If set tonull, the value will be set to the default ofDEFAULT_LANG.
-
hasDescription
public boolean hasDescription()Is the description defined?- Returns:
trueif the description is defined;falseotherwise.
-
getDescription
Gets the status description, which is free form text describing the rationale for the status.- Returns:
- Status description if defined;
nullotherwise.
-
setDescription
Sets the status description, which is free form text describing the rationale for the status.- Parameters:
aDesc- Status description. Set tonullif undefined.
-
hasSpecialRules
public boolean hasSpecialRules()Is the special rules flag defined?- Returns:
trueif the special rules flag is defined;falseotherwise.
-
getSpecialRules
Get special rules flag.- Returns:
- flag that indicates whether the password has special rules
-
setSpecialRules
Set special rules flag.- Parameters:
aSpecialRules- flag that indicates whether the password has special rules
-
hasRestrictedWords
public boolean hasRestrictedWords()Is the restricted words flag defined?- Returns:
trueif the restricted words flag is defined;falseotherwise.
-
getRestrictedWords
Get restricted words flag.- Returns:
- flag that indicates whether the password has restricted words
-
setRestrictedWords
Set restricted words flag.- Parameters:
aRestrictedWords- flag that indicates whether the password has restricted words
-
hasRestrictedWordsUrl
public boolean hasRestrictedWordsUrl()Is the restricted words url defined?- Returns:
trueif the restricted words url is defined;falseotherwise.
-
getRestrictedWordsUrl
Get restricted words url.- Returns:
- url that defines the restricted words if defined;
nullotherwise.
-
setRestrictedWordsUrl
Set restricted words url.- Parameters:
aRestrictedWordsUrl- url that defines the restricted words. Set tonullif undefined.
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-