Class EPPLoginSecPolicySystem
java.lang.Object
com.verisign.epp.codec.loginsecpolicy.v04.EPPLoginSecPolicySystem
- All Implemented Interfaces:
EPPCodecComponent,EPPRegistrySystemInfoInterface,Serializable,Cloneable
public class EPPLoginSecPolicySystem
extends Object
implements EPPCodecComponent, EPPRegistrySystemInfoInterface
EPPLoginSecPolicySystem contains all of the login security policy
information associated with the system.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPLoginSecPolicySystem.EPPLoginSecPolicySystem(EPPLoginSecPolicyPassword aPassword) Constructor forEPPLoginSecPolicySystemthat takes the required password attribute.EPPLoginSecPolicySystem(EPPLoginSecPolicyPassword aPassword, Boolean aUserAgentSupport, EPPLoginSecPolicyEvent aEvent) Constructor forEPPLoginSecPolicySystemthat the required password attribute and the optional attributes with a single event.EPPLoginSecPolicySystem(EPPLoginSecPolicyPassword aPassword, Boolean aUserAgentSupport, List<EPPLoginSecPolicyEvent> aEvents) Constructor forEPPLoginSecPolicySystemthat the required password attribute and the optional attributes with a list of events. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEvent(EPPLoginSecPolicyEvent aEvent) Adds an event to the list of events.clone()Clone anEPPCodecComponentinstance.voidDecode a DOM element tree to initialize the instance attributes.Encode instance into a DOM element tree.booleanCompare an instance ofEPPLoginSecPolicySystemwith this instance.Gets the list of events if defined.Returns the XML namespace associated with theEPPCodecComponent.Gets the login password format policy.Gets the OPTIONAL boolean value that indicates the server supports the <loginSec:userAgentSupport> element.booleanhasEvens()Are the events defined?booleanIs the user agent flag defined?voidsetEvents(List<EPPLoginSecPolicyEvent> aEvents) Sets the list of events.voidsetPassword(EPPLoginSecPolicyPassword aPassword) Sets the login password format policy.voidsetUserAgentSupport(Boolean aUserAgentSupport) Sets the OPTIONAL boolean value that indicates the server supports the <loginSec:userAgentSupport> element.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPLoginSecPolicySystem.- See Also:
-
ELM_NAME
XML root tag forEPPLoginSecPolicySystem.- See Also:
-
-
Constructor Details
-
EPPLoginSecPolicySystem
public EPPLoginSecPolicySystem()Default constructor forEPPLoginSecPolicySystem. -
EPPLoginSecPolicySystem
Constructor forEPPLoginSecPolicySystemthat takes the required password attribute.- Parameters:
aPassword- The login password format policy
-
EPPLoginSecPolicySystem
public EPPLoginSecPolicySystem(EPPLoginSecPolicyPassword aPassword, 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, Boolean aUserAgentSupport, 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 Details
-
getPassword
Gets the login password format policy.- Returns:
- the password format policy if defined;
nullotherwise.
-
setPassword
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
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
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
Gets the list of events if defined.- Returns:
- List of events if defined; empty list otherwise.
-
addEvent
Adds an event to the list of events.- Parameters:
aEvent- The event to add.
-
setEvents
Sets the list of events.- Parameters:
aEvents- The events to set.
-
encode
Encode 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
Decode 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
Clone anEPPCodecComponentinstance.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPLoginSecPolicySystem - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
equals
Compare an instance ofEPPLoginSecPolicySystemwith this instance. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-