Class EPPAuthTokenCheckData
java.lang.Object
com.verisign.epp.codec.authtoken.v01.EPPAuthTokenCheckData
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
The
EPPAuthTokenCheckData is the EPPCodecComponent that knows
how to encode and decode checkData elements from/to XML and object instance.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAllocates a newEPPAuthTokenCheckDatawith default attribute values, which are all set tonull.EPPAuthTokenCheckData(EPPAuthTokenData aAuthToken) Creates new instance of a valid EPPAuthTokenCheckDataEPPAuthTokenCheckData(EPPAuthTokenData aAuthToken, String aReason) Creates a new instance an invalid EPPAuthTokenCheckData -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPAuthTokenCheckData.voidDecode the EPPAuthTokenCheckData attributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of the EPPAuthTokenCheckData instance.booleanCompare an instance ofEPPAuthTokenCheckDatawith this instance.Get the authentication token data.Returns the XML namespace associated with theEPPCodecComponent.booleanisValid()get value that represents if this token is validvoidsetAuthToken(EPPAuthTokenData aAuthToken) Set the authentication token data.voidvoidset value that represents if this token is validtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPAuthTokenCheckData.- See Also:
-
ELM_NAME
XML Element Name ofEPPAuthTokenCheckDataroot element.- See Also:
-
-
Constructor Details
-
EPPAuthTokenCheckData
public EPPAuthTokenCheckData()Allocates a newEPPAuthTokenCheckDatawith default attribute values, which are all set tonull. -
EPPAuthTokenCheckData
Creates new instance of a valid EPPAuthTokenCheckData- Parameters:
aAuthToken-EPPAuthTokenDatainstance
-
EPPAuthTokenCheckData
Creates a new instance an invalid EPPAuthTokenCheckData- Parameters:
aAuthToken-EPPAuthTokenDatainstanceaReason- represents why authToken is invalid
-
-
Method Details
-
getAuthenticationToken
Get the authentication token data.- Returns:
EPPAuthTokenDatainstance
-
setAuthToken
Set the authentication token data.- Parameters:
aAuthToken- Authentication Token
-
getReason
- Returns:
-
setReason
- Parameters:
aReason-
-
isValid
public boolean isValid()get value that represents if this token is valid- Returns:
-
setValid
set value that represents if this token is valid- Parameters:
valid-
-
equals
Compare an instance ofEPPAuthTokenCheckDatawith this instance. -
clone
CloneEPPAuthTokenCheckData.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPAuthTokenCheckData - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
encode
Encode a DOM Element tree from the attributes of the EPPAuthTokenCheckData instance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the EPPAuthTokenCheckData instance.
- Throws:
EPPEncodeException- Unable to encode EPPAuthTokenCheckData instance.
-
decode
Decode the EPPAuthTokenCheckData attributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decode EPPAuthTokenCheckData from.- Throws:
EPPDecodeException- Unable to decode aElement
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-