Package com.verisign.epp.codec.gen
Class EPPAuthInfo
java.lang.Object
com.verisign.epp.codec.gen.EPPAuthInfo
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents authorization information which is a shared structure been used by
other mapping such as domain and contact mappings. This object structure is a
direct mapping from the data type
authInfo in the EPP Shared
Structure Schema (with the name space eppcom).- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringXML Element roid attribute name ofEPPAuthInforoot element.protected static final StringXML Element name for extensible authorization typeprotected static final StringXML Element name for null authorization typeprotected static final StringXML Element name for password authorization typeprotected EPPCodecComponentExtension authorization information.protected StringPassword authorization information.protected Stringroid.protected shorttype, and default value isTYPE_PWstatic final shortExtensible auth info type.static final shortNull type to remove authorization information.static final shortPassword auth info type -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor that must have the password or extension attributes set before callingencode.EPPAuthInfo(EPPCodecComponent aExt) Constructor that takes just the authorization extension.EPPAuthInfo(String aPassword) Constructor that takes just the authorization password.EPPAuthInfo(String aRootNS, String aRootName, EPPCodecComponent aExt) Constructor that takes a root elemeent and the authorization extension.EPPAuthInfo(String aRootNS, String aRootName, String aPassword) Constructor that takes the root element and the authorization password.EPPAuthInfo(String aRootNS, String aRootName, String aRoid, String aPassword) Constructor that takes the root element, the authorization password, and the roid. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPAuthInfo.voidDecode the EPPAuthInfo attributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of the EPPAuthInfo instance.booleanimplements a deepEPPAuthInfocompare.Deprecated.getExt()Gets the extension authorization.Returns the XML namespace associated with theEPPCodecComponent.Gets the password authorization information.getRoid()Get Registry Object IDentifier (ROID).Get root name such as domain or contact.Gets the root element XML namespace URI.shortgetType()Get the type of the auth info.booleanhasExt()Has the the the extension authorization set?booleanHas the the password been set with a non-empty value?voidRemoves the password authorization information on update.voidsetAuthInfo(String aPassword) Deprecated.Replaced bysetPassword(String).voidsetExt(EPPCodecComponent aExt) Sets the extension authorization information.voidsetPassword(String aPassword) Sets the password authorization information.voidSet Registry Object IDentifier (ROID).voidsetRootName(String aRootNS, String newRootName) Set root name and XML namespace.voidsetType(short aType) Set auth info type.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
TYPE_PW
public static final short TYPE_PWPassword auth info type- See Also:
-
TYPE_EXT
public static final short TYPE_EXTExtensible auth info type.- See Also:
-
TYPE_NULL
public static final short TYPE_NULLNull type to remove authorization information. This is not supported by all objects.- See Also:
-
ELM_PW
XML Element name for password authorization type- See Also:
-
ELM_EXT
XML Element name for extensible authorization type- See Also:
-
ELM_NULL
XML Element name for null authorization type- See Also:
-
ATTR_ROID
XML Element roid attribute name ofEPPAuthInforoot element.- See Also:
-
password
Password authorization information. -
ext
Extension authorization information. -
type
protected short typetype, and default value isTYPE_PW -
roid
roid.
-
-
Constructor Details
-
EPPAuthInfo
public EPPAuthInfo()Default constructor that must have the password or extension attributes set before callingencode. -
EPPAuthInfo
Constructor that takes just the authorization password.- Parameters:
aPassword- Authorization password
-
EPPAuthInfo
Constructor that takes the root element and the authorization password.- Parameters:
aRootNS- Root element namespace URIaRootName- Root element of auth info.aPassword- Authorization password
-
EPPAuthInfo
Constructor that takes the root element, the authorization password, and the roid.- Parameters:
aRootNS- Root element namespace URIaRootName- Root element of auth info.aRoid- Roid of the RegistrantaPassword- Authorization password
-
EPPAuthInfo
Constructor that takes just the authorization extension.- Parameters:
aExt- Extension authorization element
-
EPPAuthInfo
Constructor that takes a root elemeent and the authorization extension.- Parameters:
aRootNS- Root element namespace URIaRootName- Root element of auth info.aExt- Extension authorization element
-
-
Method Details
-
getRoid
Get Registry Object IDentifier (ROID).- Returns:
- Registry Object IDentifier (ROID)
-
setRoid
Set Registry Object IDentifier (ROID).- Parameters:
aRoid- The Registry Object IDentifier (ROID) value.
-
getRootNS
Gets the root element XML namespace URI.- Returns:
- root element XML namespace URI
-
getRootName
Get root name such as domain or contact.- Returns:
- String
-
setRootName
Set root name and XML namespace.- Parameters:
aRootNS- Root element namespace URInewRootName- String
-
getAuthInfo
Deprecated.Replaced bygetPassword().Gets the password authorization information.- Returns:
- Password
-
hasPassword
public boolean hasPassword()Has the the password been set with a non-empty value?- Returns:
trueif the password has has been set with a non-empty value;falseotherwise.
-
getPassword
Gets the password authorization information.- Returns:
- Authorization password
-
setPassword
Sets the password authorization information.- Parameters:
aPassword- Authorization password
-
removePassword
public void removePassword()Removes the password authorization information on update. This option is not supported by all objects and only available with the update command. It will result in setting thetypetoTYPE_NULL. -
hasExt
public boolean hasExt()Has the the the extension authorization set?- Returns:
trueif the extension authorization has been set;falseotherwise.
-
getExt
Gets the extension authorization.- Returns:
- Authorization extension
-
setExt
Sets the extension authorization information.- Parameters:
aExt- Authorization extension
-
setAuthInfo
Deprecated.Replaced bysetPassword(String).Sets the password authorization information.- Parameters:
aPassword- Authorization password
-
getType
public short getType()Get the type of the auth info.- Returns:
- One of the
TYPE_constants.
-
setType
public void setType(short aType) Set auth info type. The default value isTYPE_PW.- Parameters:
aType- One of theTYPE_constants
-
clone
CloneEPPAuthInfo.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPAuthInfo - Throws:
CloneNotSupportedException- standard Object.clone exception
-
decode
Decode the EPPAuthInfo attributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decode EPPDomainContact from.- Throws:
EPPDecodeException- - Unable to decode aElement.
-
encode
Encode a DOM Element tree from the attributes of the EPPAuthInfo instance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- - DOM Document that is being built. Used as an Element factory.- Returns:
- Element - Root DOM Element representing the EPPAuthInfo instance.
- Throws:
EPPEncodeException- - Unable to encode EPPAuthInfo instance.
-
equals
implements a deepEPPAuthInfocompare. -
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.
-
getPassword().