public class EPPLoginSecPolicySystem extends java.lang.Object implements EPPCodecComponent, EPPRegistrySystemInfoInterface
EPPLoginSecPolicySystem contains all of the login security policy
information associated with the system.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPLoginSecPolicySystem. |
static java.lang.String |
ELM_NAME
XML root tag for
EPPLoginSecPolicySystem. |
| Constructor and Description |
|---|
EPPLoginSecPolicySystem()
Default constructor for
EPPLoginSecPolicySystem. |
EPPLoginSecPolicySystem(EPPLoginSecPolicyPassword aPassword)
Constructor for
EPPLoginSecPolicySystem that takes the required
password attribute. |
EPPLoginSecPolicySystem(EPPLoginSecPolicyPassword aPassword,
java.lang.Boolean aUserAgentSupport,
EPPLoginSecPolicyEvent aEvent)
Constructor for
EPPLoginSecPolicySystem that 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 for
EPPLoginSecPolicySystem that the required password
attribute and the optional attributes with a list of events. |
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(EPPLoginSecPolicyEvent aEvent)
Adds an event to the list of events.
|
java.lang.Object |
clone()
Clone an
EPPCodecComponent instance. |
void |
decode(org.w3c.dom.Element aElement)
Decode a DOM element tree to initialize the instance attributes.
|
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode instance into a DOM element tree.
|
boolean |
equals(java.lang.Object aObject)
Compare an instance of
EPPLoginSecPolicySystem with this instance. |
java.util.List<EPPLoginSecPolicyEvent> |
getEvents()
Gets the list of events if defined.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
EPPLoginSecPolicyPassword |
getPassword()
Gets the login password format policy.
|
java.lang.Boolean |
getUserAgentSupport()
Gets the OPTIONAL boolean value that indicates the server supports the
<loginSec:userAgentSupport> element.
|
boolean |
hasEvens()
Are the events defined?
|
boolean |
hasUserAgentSupport()
Is the user agent flag defined?
|
void |
setEvents(java.util.List<EPPLoginSecPolicyEvent> aEvents)
Sets the list of events.
|
void |
setPassword(EPPLoginSecPolicyPassword aPassword)
Sets the login password format policy.
|
void |
setUserAgentSupport(java.lang.Boolean aUserAgentSupport)
Sets the OPTIONAL boolean value that indicates the server supports the
<loginSec:userAgentSupport> element.
|
java.lang.String |
toString()
Implementation of
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
public static final java.lang.String ELM_LOCALNAME
EPPLoginSecPolicySystem.public static final java.lang.String ELM_NAME
EPPLoginSecPolicySystem.public EPPLoginSecPolicySystem()
EPPLoginSecPolicySystem.public EPPLoginSecPolicySystem(EPPLoginSecPolicyPassword aPassword)
EPPLoginSecPolicySystem that takes the required
password attribute.aPassword - The login password format policypublic EPPLoginSecPolicySystem(EPPLoginSecPolicyPassword aPassword, java.lang.Boolean aUserAgentSupport, EPPLoginSecPolicyEvent aEvent)
EPPLoginSecPolicySystem that the required password
attribute and the optional attributes with a single event.aPassword - The login password format policyaUserAgentSupport - OPTIONAL boolean value that indicates the server supports the
<loginSec:userAgentSupport> element. Set to null if
undefined.aEvent - Login security event. Set to null if undefined.public EPPLoginSecPolicySystem(EPPLoginSecPolicyPassword aPassword, java.lang.Boolean aUserAgentSupport, java.util.List<EPPLoginSecPolicyEvent> aEvents)
EPPLoginSecPolicySystem that the required password
attribute and the optional attributes with a list of events.aPassword - The login password format policyaUserAgentSupport - OPTIONAL boolean value that indicates the server supports the
<loginSec:userAgentSupport> element. Set to null if
undefined.aEvents - List of events.public EPPLoginSecPolicyPassword getPassword()
null otherwise.public void setPassword(EPPLoginSecPolicyPassword aPassword)
aPassword - the password format policy to setpublic boolean hasUserAgentSupport()
true if the user agent flag is defined; false
otherwise.public java.lang.Boolean getUserAgentSupport()
true or false indicating whether the server
supports the <loginSec:userAgentSupport> element if defined;
null otherwise.public void setUserAgentSupport(java.lang.Boolean aUserAgentSupport)
aUserAgentSupport - true or false indicating whether the server
supports the <loginSec:userAgentSupport> element. Set to
null if undefined.public boolean hasEvens()
true if the evets are defined; false otherwise.public java.util.List<EPPLoginSecPolicyEvent> getEvents()
public void addEvent(EPPLoginSecPolicyEvent aEvent)
aEvent - The event to add.public void setEvents(java.util.List<EPPLoginSecPolicyEvent> aEvents)
aEvents - The events to set.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
encode in interface EPPCodecComponentaDocument - DOM Document, which acts is an Element factoryEPPEncodeException - Error encoding EPPLoginSecPolicySystempublic void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
aElement argument represents the root DOM element and is used to
traverse the DOM nodes for instance attribute values.decode in interface EPPCodecComponentaElement - Element to decodeEPPDecodeException - Error decoding Elementpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPCodecComponent instance.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPLoginSecPolicySystemjava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic java.lang.String toString()
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent.toString in class java.lang.ObjectString if successful; ERROR
otherwise.public boolean equals(java.lang.Object aObject)
EPPLoginSecPolicySystem with this instance.equals in class java.lang.ObjectaObject - Object to compare with.true if equal; false otherwise.public java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.