Class EPPLoginSecPolicyPassword
- java.lang.Object
-
- com.verisign.epp.codec.loginsecpolicy.v04.EPPLoginSecPolicyPassword
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPLoginSecPolicyPassword extends java.lang.Object implements EPPCodecComponent
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTR_LANGXML attribute name used for the OPTIONAL descriptionlangattribute.static java.lang.StringDEFAULT_LANGDefault Language -- English "en"static java.lang.StringELM_LOCALNAMEXML local name forEPPLoginSecPolicyPassword.static java.lang.StringELM_NAMEXML root tag forEPPLoginSecPolicyPassword.
-
Constructor Summary
Constructors Constructor Description EPPLoginSecPolicyPassword()Default constructor forEPPLoginSecPolicyPassword.EPPLoginSecPolicyPassword(java.lang.String aExpression)Constructor forEPPLoginSecPolicyPasswordthat takes the required expression attribute.EPPLoginSecPolicyPassword(java.lang.String aExpression, java.lang.String aLang, java.lang.String aDescription)Constructor forEPPLoginSecPolicyPasswordthat takes all attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPLoginSecPolicyPassword.voiddecode(org.w3c.dom.Element aElement)Decode theEPPLoginSecPolicyPasswordattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPLoginSecPolicyPasswordinstance.booleanequals(java.lang.Object aObject)implements a deepEPPLoginSecPolicyPasswordcompare.java.lang.StringgetDescription()Gets the status description, which is free form text describing the rationale for the status.java.lang.StringgetExpression()Gets the login password format regular expression.java.lang.StringgetLang()Gets the language of the status description with the default set toDEFAULT_LANG.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.BooleangetRestrictedWords()Get restricted words flag.java.lang.StringgetRestrictedWordsUrl()Get restricted words url.java.lang.BooleangetSpecialRules()Get special rules flag.booleanhasDescription()Is the description defined?booleanhasRestrictedWords()Is the restricted words flag defined?booleanhasRestrictedWordsUrl()Is the restricted words url defined?booleanhasSpecialRules()Is the special rules flag defined?voidsetDescription(java.lang.String aDesc)Sets the status description, which is free form text describing the rationale for the status.voidsetExpression(java.lang.String aExpression)Sets the login password format regular expression.voidsetLang(java.lang.String aLang)Sets the language of the status description with the default set toDEFAULT_LANG.voidsetRestrictedWords(java.lang.Boolean aRestrictedWords)Set restricted words flag.voidsetRestrictedWordsUrl(java.lang.String aRestrictedWordsUrl)Set restricted words url.voidsetSpecialRules(java.lang.Boolean aSpecialRules)Set special rules flag.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPLoginSecPolicyPassword.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPLoginSecPolicyPassword.- See Also:
- Constant Field Values
-
DEFAULT_LANG
public static final java.lang.String DEFAULT_LANG
Default Language -- English "en"- See Also:
- Constant Field Values
-
ATTR_LANG
public static final java.lang.String ATTR_LANG
XML attribute name used for the OPTIONAL descriptionlangattribute.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPLoginSecPolicyPassword
public EPPLoginSecPolicyPassword()
Default constructor forEPPLoginSecPolicyPassword. The expression must be set prior to callingencode(Document).
-
EPPLoginSecPolicyPassword
public EPPLoginSecPolicyPassword(java.lang.String aExpression)
Constructor forEPPLoginSecPolicyPasswordthat takes the required expression attribute.- Parameters:
aExpression- The login password format regular expression.
-
EPPLoginSecPolicyPassword
public EPPLoginSecPolicyPassword(java.lang.String aExpression, java.lang.String aLang, java.lang.String aDescription)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 Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public boolean equals(java.lang.Object aObject)
implements a deepEPPLoginSecPolicyPasswordcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPLoginSecPolicyPasswordinstance to compare with- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPLoginSecPolicyPassword.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPLoginSecPolicyPassword - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getExpression
public java.lang.String getExpression()
Gets the login password format regular expression.- Returns:
- the expression if defined;
nullotherwise.
-
setExpression
public void setExpression(java.lang.String aExpression)
Sets the login password format regular expression.- Parameters:
aExpression- the expression to set
-
getLang
public java.lang.String 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
public void setLang(java.lang.String aLang)
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
public java.lang.String getDescription()
Gets the status description, which is free form text describing the rationale for the status.- Returns:
- Status description if defined;
nullotherwise.
-
setDescription
public void setDescription(java.lang.String aDesc)
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
public java.lang.Boolean getSpecialRules()
Get special rules flag.- Returns:
- flag that indicates whether the password has special rules
-
setSpecialRules
public void setSpecialRules(java.lang.Boolean aSpecialRules)
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
public java.lang.Boolean getRestrictedWords()
Get restricted words flag.- Returns:
- flag that indicates whether the password has restricted words
-
setRestrictedWords
public void setRestrictedWords(java.lang.Boolean aRestrictedWords)
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
public java.lang.String getRestrictedWordsUrl()
Get restricted words url.- Returns:
- url that defines the restricted words if defined;
nullotherwise.
-
setRestrictedWordsUrl
public void setRestrictedWordsUrl(java.lang.String aRestrictedWordsUrl)
Set restricted words url.- Parameters:
aRestrictedWordsUrl- url that defines the restricted words. Set tonullif undefined.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-