Class EPPAuthTokenInfoResp
java.lang.Object
com.verisign.epp.codec.gen.EPPResponse
com.verisign.epp.codec.authtoken.v01.EPPAuthTokenInfoResp
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP Auth Token <authToken:infData> response that is used in
the authToken info message. The <authToken:infData> element contains the
following child elements:
- A <authToken:authToken> element that contains the authentication token passed.
- A <authToken:status> element that contains status of the authToken like active, expired, revoked etc.
- A <authToken:crDate> element that contains the date and time of the authentication token creation.
- A <authToken:exDate> element that contains the date and time of the authentication token expiration.
- A <authToken:revokedDate> element that contains the date and time of the authentication token revocation.
- A <authToken:revokedID> element that contains the identifier of the client that revoked the authentication token.
- A <authToken:revokedReason> element that contains the freeform reason for authentication token revocation.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPAuthTokenInfoResp.static final StringXML Element Name ofEPPAuthTokenInfoResproot 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
ConstructorsConstructorDescriptionEPPAuthTokenInfoRespdefault constructor.EPPAuthTokenInfoResp(EPPTransId aTransId, EPPAuthTokenData aAuthToken, String aStatus) EPPAuthTokenInfoRespconstructor that takes the required attribute values as parameters. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPAuthTokenInfoResp.protected voidDecode theEPPAuthTokenInfoRespattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPAuthTokenInfoRespinstance.booleanCompare an instance ofEPPAuthTokenInfoRespwith this instance.Gets the authentication token dataGets the date and time of the submitted <create> command.Gets the expiration date of this tokenGets the EPP command namespace associated withEPPAuthTokenInfoResp.Gets the revocation dateGets identifier of the client that revoked the auth token.Gets the revoked reasonGets the status of this tokengetType()Gets the EPP response type associated withEPPAuthTokenInfoResp.inthashCode()voidsetAuthToken(EPPAuthTokenData aAuthToken) Set the authentication token data.voidsetCreatedDate(Date aDate) Sets the date and time of the submitted <create> command.voidsetExpirationDate(Date aExpirationDate) Sets the expiration datevoidsetRevokedDate(Date aRevokedDate) Sets the revocation datevoidsetRevokedId(String aRequestedId) Sets identifier of the client that revoked the auth token.voidsetRevokedReason(String aRevokedReason) Sets the revoked reasonvoidSet the status of this token (e.g.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, hasExtension, hasExtensions, hasMessageQueue, hasMsgQueue, hasResultCode, isSuccess, setExtension, setExtensions, setMsgQueue, setResult, setResult, setResult, setResult, setResults, setTransId
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPAuthTokenInfoResp.- See Also:
-
ELM_NAME
XML Element Name ofEPPAuthTokenInfoResproot element.- See Also:
-
-
Constructor Details
-
EPPAuthTokenInfoResp
public EPPAuthTokenInfoResp()EPPAuthTokenInfoRespdefault constructor. Must call required setter methods before invokingencode, which include:
- name -
setName
- name -
-
EPPAuthTokenInfoResp
EPPAuthTokenInfoRespconstructor that takes the required attribute values as parameters.- Parameters:
aTransId- Transaction Id associated with response.aAuthToken-EPPAuthTokenDatainstanceaStatus- status of the auth token
-
-
Method Details
-
getType
Gets the EPP response type associated withEPPAuthTokenInfoResp.- Overrides:
getTypein classEPPResponse- Returns:
EPPAuthTokenInfoResp.ELM_NAME
-
getNamespace
Gets the EPP command namespace associated withEPPAuthTokenInfoResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPAuthTokenMapFactory.NS
-
hashCode
public int hashCode() -
equals
Compare an instance ofEPPAuthTokenInfoRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise.
-
clone
CloneEPPAuthTokenInfoResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPAuthTokenInfoResp - 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.
-
getRevokedId
Gets identifier of the client that revoked the auth token.- Returns:
- identifier of the client that revoked the auth token if defined;
nullotherwise.
-
setRevokedId
Sets identifier of the client that revoked the auth token.- Parameters:
aRequestedId- Identifier of the client that revoked the auth token.
-
getCreatedDate
Gets the date and time of the submitted <create> command.- Returns:
- Date and time of the submitted <create> command if defined;
nullotherwise.
-
setCreatedDate
Sets the date and time of the submitted <create> command.- Parameters:
aDate- Date and time of the submitted <create> command
-
getAuthToken
Gets the authentication token data- Returns:
- an instance of
EPPAuthTokenData
-
setAuthToken
Set the authentication token data.- Parameters:
aAuthToken- an instance ofEPPAuthTokenData
-
getStatus
Gets the status of this token- Returns:
-
setStatus
Set the status of this token (e.g. revoked, expired etc.)- Parameters:
aStatus- status of this token
-
getExpirationDate
Gets the expiration date of this token- Returns:
- instance of
java.util.Date
-
setExpirationDate
Sets the expiration date- Parameters:
aExpirationDate- expiration date to set
-
getRevokedDate
Gets the revocation date- Returns:
- instance of
java.util.Date
-
setRevokedDate
Sets the revocation date- Parameters:
aRevokedDate- revocation date to set
-
getRevokedReason
Gets the revoked reason- Returns:
- reason for which this token is revoked
-
setRevokedReason
Sets the revoked reason- Parameters:
aRevokedReason- reason for which this token is revoked
-
doEncode
Encode a DOM Element tree from the attributes of theEPPAuthTokenInfoRespinstance.- Overrides:
doEncodein classEPPResponse- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the EPPAuthTokenInfoResp instance.
- Throws:
EPPEncodeException- Unable to encode EPPAuthTokenInfoResp instance.
-
doDecode
Decode theEPPAuthTokenInfoRespattributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPAuthTokenInfoRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-