Class EPPAuthTokenCheckResp
java.lang.Object
com.verisign.epp.codec.gen.EPPResponse
com.verisign.epp.codec.authtoken.v01.EPPAuthTokenCheckResp
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP Authentication Token <authToken:chkData> response to a
EPPAuthTokenCheckCmd. When a <check> command has been processed
successfully, the EPP <resData> element MUST contain a child
<authToken:chkData> element that identifies the authToken namespace and the
location of the authToken schema. The <authToken:chkData> elements that
contain the following child elements: - A <authToken:authToken> element that contains the authentication token of the queried object. This element MUST contain an "valid" attribute whose value indicates if the authToken is valid at the moment the <check> command was completed. A value of "1" or "true" means that the token is valid. A value of "0" or "false" means that the token is not valid.
- An OPTIONAL <authToken:reason> element that MAY be provided when the token is not valid. If present, this element contains server-specific text to help explain why the object is not valid. This text MUST be represented in the response language previously negotiated with the client; an OPTIONAL "lang" attribute MAY be present to identify the language if the negotiated value is something other that a default value of "en" (English).
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPAuthTokenCheckResp.static final StringXML Element Name ofEPPAuthTokenCheckResproot element.Fields inherited from class com.verisign.epp.codec.gen.EPPResponse
ELM_EXTENSION, ELM_MESSAGE_QUEUE, ELM_MESSAGE_QUEUE_QDATE, ELM_RESPONSE_DATA, extensions, TRANSFER_CLIENT_APPROVED, TRANSFER_CLIENT_CANCELLED, TRANSFER_CLIENT_REJECTED, TRANSFER_PENDING, TRANSFER_SERVER_APPROVED, TRANSFER_SERVER_CANCELLED -
Constructor Summary
ConstructorsConstructorDescriptionAllocates a newEPPAuthTokenCheckRespwith default attribute values, which are all set tonull.EPPAuthTokenCheckResp(EPPTransId aTransId, EPPAuthTokenCheckData aCheckData) EPPAuthTokenCheckRespconstructor that will set the result of an individual authentication token.EPPAuthTokenCheckResp(EPPTransId aTransId, List<EPPAuthTokenCheckData> aCheckData) EPPAuthTokenCheckRespconstructor that will set the result of an multiple authentication tokens. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPAuthTokenCheckResp.protected voidDecode the EPPAuthTokenCheckData attributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of the EPPAuthTokenCheckResp instance.booleanCompare an instance ofEPPAuthTokenCheckRespwith this instance.Get the results of aEPPAuthTokenCheckRespResponse.Get the EPP command Namespace associated with EPPAuthTokenCheckResp.voidsetCheckData(List<EPPAuthTokenCheckData> aCheckData) Set the results of aEPPAuthTokenCheckRespResponse.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.Methods inherited from class com.verisign.epp.codec.gen.EPPResponse
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getMessageQueue, getMsgQueue, getMsgQueueCount, getMsgQueueDate, getMsgQueueMsg, getQDate, getResult, getResults, getTransId, getType, hasExtension, hasExtensions, hasMessageQueue, hasMsgQueue, hasResultCode, isSuccess, setExtension, setExtensions, setMsgQueue, setResult, setResult, setResult, setResult, setResults, setTransId
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPAuthTokenCheckResp.- See Also:
-
ELM_NAME
XML Element Name ofEPPAuthTokenCheckResproot element.- See Also:
-
-
Constructor Details
-
EPPAuthTokenCheckResp
public EPPAuthTokenCheckResp()Allocates a newEPPAuthTokenCheckRespwith default attribute values, which are all set tonull. -
EPPAuthTokenCheckResp
EPPAuthTokenCheckRespconstructor that will set the result of an individual authentication token.- Parameters:
aTransId-aCheckData-
-
EPPAuthTokenCheckResp
EPPAuthTokenCheckRespconstructor that will set the result of an multiple authentication tokens.- Parameters:
aTransId-aCheckData-
-
-
Method Details
-
setCheckData
Set the results of aEPPAuthTokenCheckRespResponse. There is oneEPPAuthTokenCheckDatainstance insomeResultsfor each authToken requested in theEPPAuthTokenCheckCmdCommand.- Parameters:
aCheckData-ListofEPPAuthTokenCheckDatainstances.
-
getCheckData
Get the results of aEPPAuthTokenCheckRespResponse. There is oneEPPAuthTokenCheckDatainstance insomeResultsfor each authToken requested in theEPPAuthTokenCheckDataCommand.- Returns:
ListofEPPAuthTokenCheckDatainstances.
-
equals
Compare an instance ofEPPAuthTokenCheckRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise.
-
clone
CloneEPPAuthTokenCheckResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPAuthTokenCheckResp - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPResponse- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
doEncode
Encode a DOM Element tree from the attributes of the EPPAuthTokenCheckResp instance.- Overrides:
doEncodein classEPPResponse- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the EPPAuthTokenCheckResp instance.
- Throws:
EPPEncodeException- Unable to encode EPPAuthTokenCheckResp instance.
-
doDecode
Decode the EPPAuthTokenCheckData attributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decode EPPAuthTokenCheckData from.- Throws:
EPPDecodeException- Unable to decode aElement
-
getNamespace
Get the EPP command Namespace associated with EPPAuthTokenCheckResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPAuthTokenMapFactory.NS
-