Class EPPAuthTokenScope
java.lang.Object
com.verisign.epp.codec.authtoken.v01.EPPAuthTokenScope
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
The
EPPAuthTokenScope is the EPPCodecComponent that knows how
to encode and decode mfa element from/to XML and object instance.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new instance ofEPPAuthTokenScopeEPPAuthTokenScope(List<String> aSystem, List<String> aDomain) Create a new instance ofEPPAuthTokenScopewith the optional system and domain data. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPAuthTokenScope.voidPopulate the data of this instance with the data stored in the given Element of the DOM treeSets this instance's data in the given XML documentbooleanimplements a deepEPPAuthTokenScopecompare.Gets the optional domain value.Returns the XML namespace associated with theEPPCodecComponent.Gets the optional system value.voidsetDomains(List<String> aDomains) Sets the domain value.voidsetSystems(List<String> aSystem) Sets the optional system value.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPAuthTokenScope.- See Also:
-
-
Constructor Details
-
EPPAuthTokenScope
public EPPAuthTokenScope()Create a new instance ofEPPAuthTokenScope -
EPPAuthTokenScope
Create a new instance ofEPPAuthTokenScopewith the optional system and domain data.
-
-
Method Details
-
encode
Sets this instance's data in the given XML document- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM document used as a factory of DOM objects.- Returns:
- instance root DOM element along with attribute child nodes.
- Throws:
EPPEncodeException- Error encoding the DOM element tree.
-
decode
Populate the data of this instance with the data stored in the given Element of the DOM tree- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- The root element of the fragment of XML- Throws:
EPPDecodeException- Thrown if any errors occur during decoding.
-
equals
implements a deepEPPAuthTokenScopecompare. -
clone
CloneEPPAuthTokenScope.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPAuthTokenScope - Throws:
CloneNotSupportedException- standard Object.clone exception
-
getDomains
Gets the optional domain value.- Returns:
- domains for which the auth token is scoped to;
nullotherwise.
-
setDomains
Sets the domain value.- Parameters:
aDomains-Listof domains for which the auth token is scoped tonullto unset it.
-
getSystems
Gets the optional system value.- Returns:
- system for which the auth token is scoped to;
nullotherwise.
-
setSystems
Sets the optional system value.- Parameters:
aSystem- sets the registry systems name to scope the token to;nullto unset it.
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-