Class EPPLoginSecPolicySystem
- java.lang.Object
-
- com.verisign.epp.codec.loginsecpolicy.v04.EPPLoginSecPolicySystem
-
- All Implemented Interfaces:
EPPCodecComponent,EPPRegistrySystemInfoInterface,java.io.Serializable,java.lang.Cloneable
public class EPPLoginSecPolicySystem extends java.lang.Object implements EPPCodecComponent, EPPRegistrySystemInfoInterface
EPPLoginSecPolicySystemcontains all of the login security policy information associated with the system.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPLoginSecPolicySystem.static java.lang.StringELM_NAMEXML root tag forEPPLoginSecPolicySystem.
-
Constructor Summary
Constructors Constructor Description EPPLoginSecPolicySystem()Default constructor forEPPLoginSecPolicySystem.EPPLoginSecPolicySystem(EPPLoginSecPolicyPassword aPassword)Constructor forEPPLoginSecPolicySystemthat takes the required password attribute.EPPLoginSecPolicySystem(EPPLoginSecPolicyPassword aPassword, java.lang.Boolean aUserAgentSupport, EPPLoginSecPolicyEvent aEvent)Constructor forEPPLoginSecPolicySystemthat the required password attribute and the optional attributes with a single event.EPPLoginSecPolicySystem(EPPLoginSecPolicyPassword aPassword, java.lang.Boolean aUserAgentSupport, java.util.List<EPPLoginSecPolicyEvent> aEvents)Constructor forEPPLoginSecPolicySystemthat the required password attribute and the optional attributes with a list of events.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEvent(EPPLoginSecPolicyEvent aEvent)Adds an event to the list of events.java.lang.Objectclone()Clone anEPPCodecComponentinstance.voiddecode(org.w3c.dom.Element aElement)Decode a DOM element tree to initialize the instance attributes.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode instance into a DOM element tree.booleanequals(java.lang.Object aObject)Compare an instance ofEPPLoginSecPolicySystemwith this instance.java.util.List<EPPLoginSecPolicyEvent>getEvents()Gets the list of events if defined.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.EPPLoginSecPolicyPasswordgetPassword()Gets the login password format policy.java.lang.BooleangetUserAgentSupport()Gets the OPTIONAL boolean value that indicates the server supports the <loginSec:userAgentSupport> element.booleanhasEvens()Are the events defined?booleanhasUserAgentSupport()Is the user agent flag defined?voidsetEvents(java.util.List<EPPLoginSecPolicyEvent> aEvents)Sets the list of events.voidsetPassword(EPPLoginSecPolicyPassword aPassword)Sets the login password format policy.voidsetUserAgentSupport(java.lang.Boolean aUserAgentSupport)Sets the OPTIONAL boolean value that indicates the server supports the <loginSec:userAgentSupport> element.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 forEPPLoginSecPolicySystem.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPLoginSecPolicySystem.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPLoginSecPolicySystem
public EPPLoginSecPolicySystem()
Default constructor forEPPLoginSecPolicySystem.
-
EPPLoginSecPolicySystem
public EPPLoginSecPolicySystem(EPPLoginSecPolicyPassword aPassword)
Constructor forEPPLoginSecPolicySystemthat takes the required password attribute.- Parameters:
aPassword- The login password format policy
-
EPPLoginSecPolicySystem
public EPPLoginSecPolicySystem(EPPLoginSecPolicyPassword aPassword, java.lang.Boolean aUserAgentSupport, EPPLoginSecPolicyEvent aEvent)
Constructor forEPPLoginSecPolicySystemthat the required password attribute and the optional attributes with a single event.- Parameters:
aPassword- The login password format policyaUserAgentSupport- OPTIONAL boolean value that indicates the server supports the <loginSec:userAgentSupport> element. Set tonullif undefined.aEvent- Login security event. Set tonullif undefined.
-
EPPLoginSecPolicySystem
public EPPLoginSecPolicySystem(EPPLoginSecPolicyPassword aPassword, java.lang.Boolean aUserAgentSupport, java.util.List<EPPLoginSecPolicyEvent> aEvents)
Constructor forEPPLoginSecPolicySystemthat the required password attribute and the optional attributes with a list of events.- Parameters:
aPassword- The login password format policyaUserAgentSupport- OPTIONAL boolean value that indicates the server supports the <loginSec:userAgentSupport> element. Set tonullif undefined.aEvents- List of events.
-
-
Method Detail
-
getPassword
public EPPLoginSecPolicyPassword getPassword()
Gets the login password format policy.- Returns:
- the password format policy if defined;
nullotherwise.
-
setPassword
public void setPassword(EPPLoginSecPolicyPassword aPassword)
Sets the login password format policy.- Parameters:
aPassword- the password format policy to set
-
hasUserAgentSupport
public boolean hasUserAgentSupport()
Is the user agent flag defined?- Returns:
trueif the user agent flag is defined;falseotherwise.
-
getUserAgentSupport
public java.lang.Boolean getUserAgentSupport()
Gets the OPTIONAL boolean value that indicates the server supports the <loginSec:userAgentSupport> element.- Returns:
trueorfalseindicating whether the server supports the <loginSec:userAgentSupport> element if defined;nullotherwise.
-
setUserAgentSupport
public void setUserAgentSupport(java.lang.Boolean aUserAgentSupport)
Sets the OPTIONAL boolean value that indicates the server supports the <loginSec:userAgentSupport> element.- Parameters:
aUserAgentSupport-trueorfalseindicating whether the server supports the <loginSec:userAgentSupport> element. Set tonullif undefined.
-
hasEvens
public boolean hasEvens()
Are the events defined?- Returns:
trueif the evets are defined;falseotherwise.
-
getEvents
public java.util.List<EPPLoginSecPolicyEvent> getEvents()
Gets the list of events if defined.- Returns:
- List of events if defined; empty list otherwise.
-
addEvent
public void addEvent(EPPLoginSecPolicyEvent aEvent)
Adds an event to the list of events.- Parameters:
aEvent- The event to add.
-
setEvents
public void setEvents(java.util.List<EPPLoginSecPolicyEvent> aEvents)
Sets the list of events.- Parameters:
aEvents- The events to set.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode instance into a DOM element tree. A DOM Document is passed as an argument and functions as a factory for DOM objects. The root element associated with the instance is created and each instance attribute is appended as a child node.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document, which acts is an Element factory- Returns:
- Element Root element associated with the object
- Throws:
EPPEncodeException- Error encodingEPPLoginSecPolicySystem
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode a DOM element tree to initialize the instance attributes. TheaElementargument represents the root DOM element and is used to traverse the DOM nodes for instance attribute values.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement-Elementto decode- Throws:
EPPDecodeException- Error decodingElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionClone anEPPCodecComponentinstance.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of concrete
EPPLoginSecPolicySystem - 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.
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPLoginSecPolicySystemwith this instance.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-