Class EPPAuthTokenCreateCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPCreateCmd
com.verisign.epp.codec.authtoken.v01.EPPAuthTokenCreateCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP Authentication Token <create> command, which provides a
transform operation that allows a client to create an authentication token. The
<authToken:create> element MUST contain the following child elements:
- A <authToken:scope> element that scopes the authentication to a set of registry systems or domain names.
- Authentication credentials that are either <authToken:credential> element or <authToken:bearerToken> information to create the authentication token.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPAuthTokenCreateCmd.static final StringXML Element Name ofEPPAuthTokenCreateCmdroot element.Fields inherited from class com.verisign.epp.codec.gen.EPPCommand
extensions, OP_APPROVE, OP_CANCEL, OP_QUERY, OP_REJECT, OP_REQUEST, transId, TYPE_CHECK, TYPE_CREATE, TYPE_DELETE, TYPE_INFO, TYPE_LOGIN, TYPE_LOGOUT, TYPE_POLL, TYPE_RENEW, TYPE_TRANSFER, TYPE_UPDATE -
Constructor Summary
ConstructorsConstructorDescriptionAllocates a newEPPAuthTokenCreateCmdwith default attribute values, which are all set tonull.EPPAuthTokenCreateCmd(String aTransId, EPPAuthTokenCredential aCredential) Allocates a newEPPAuthTokenCreateCmdwith all the required attributes.EPPAuthTokenCreateCmd(String aTransId, EPPAuthTokenCredential aCredential, String aBearerToken) Allocates a newEPPAuthTokenCreateCmdwith all the required attributes.EPPAuthTokenCreateCmd(String aTransId, String aBearerToken) Allocates a newEPPAuthTokenCreateCmdwith all the required attributes.EPPAuthTokenCreateCmd(String aTransId, List<EPPAuthTokenScope> aScope, EPPAuthTokenCredential aCredential, String aBearerToken) Allocates a newEPPAuthTokenCreateCmdwith all the required attributes. -
Method Summary
Modifier and TypeMethodDescriptionvoidappendScope(EPPAuthTokenScope aScope) Appends to theListof scope dataEPPAuthTokenScopeinstances to send.clone()CloneEPPAuthTokenCreateCmd.protected voidDecode the EPPAuthTokenCreateCmd attributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of the EPPAuthTokenCreateCmd instance.booleanCompare an instance ofEPPAuthTokenCreateCmdwith this instance.Get the bearer token for the create command.Get the credential for the create command.Get the EPP command Namespace associated with EPPAuthTokenCreateCmd.getScope()Gets the scope data.booleanhasScope()voidsetBearerToken(String aBearerToken) Set the bearer token for the create command.voidsetCredential(EPPAuthTokenCredential aCredential) Set the credential to create the auth token.voidsetScope(List<EPPAuthTokenScope> aScope) Sets theListof scope dataEPPAuthTokenScopeinstances to sendtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.Methods inherited from class com.verisign.epp.codec.gen.EPPCreateCmd
doGenDecode, doGenEncode, getTypeMethods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getKey, getOp, getTransId, hasExtension, hasExtensions, hasKey, hasTransId, setExtension, setExtensions, setTransId
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPAuthTokenCreateCmd.- See Also:
-
ELM_NAME
XML Element Name ofEPPAuthTokenCreateCmdroot element.- See Also:
-
-
Constructor Details
-
EPPAuthTokenCreateCmd
public EPPAuthTokenCreateCmd()Allocates a newEPPAuthTokenCreateCmdwith default attribute values, which are all set tonull. -
EPPAuthTokenCreateCmd
public EPPAuthTokenCreateCmd(String aTransId, EPPAuthTokenCredential aCredential, String aBearerToken) Allocates a newEPPAuthTokenCreateCmdwith all the required attributes. Only aCredential or aBearerToken is required.- Parameters:
aTransId- Transaction Id associated with command.aCredential- authorization information to authorize creation of the authentication tokenaBearerToken- bearer token to authorize creation of the authentication token
-
EPPAuthTokenCreateCmd
Allocates a newEPPAuthTokenCreateCmdwith all the required attributes. Only aCredential or aBearerToken is required.- Parameters:
aTransId- Transaction Id associated with command.aCredential- authorization information to authorize creation of the authentication token
-
EPPAuthTokenCreateCmd
Allocates a newEPPAuthTokenCreateCmdwith all the required attributes. Only aCredential or aBearerToken is required.- Parameters:
aTransId- Transaction Id associated with command.aBearerToken- bearer token to authorize creation of the authentication token
-
EPPAuthTokenCreateCmd
public EPPAuthTokenCreateCmd(String aTransId, List<EPPAuthTokenScope> aScope, EPPAuthTokenCredential aCredential, String aBearerToken) Allocates a newEPPAuthTokenCreateCmdwith all the required attributes. Only aCredential or aBearerToken is required.- Parameters:
aTransId- Transaction Id associated with command.aScope- List ofEPPAuthTokenScopeelementsaCredential- authorization information to authorize creation of the authentication tokenaBearerToken- bearer token to authorize creation of the authentication token
-
-
Method Details
-
getNamespace
Get the EPP command Namespace associated with EPPAuthTokenCreateCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPAuthTokenMapFactory.NS
-
getBearerToken
Get the bearer token for the create command.- Returns:
- bearer token
-
setBearerToken
Set the bearer token for the create command.- Parameters:
aBearerToken- bearer token for the create command
-
getCredential
Get the credential for the create command.- Returns:
EPPAuthTokenCredentialinstance
-
setCredential
Set the credential to create the auth token.- Parameters:
aCredential- credential to create the auth token
-
hasScope
public boolean hasScope()- Returns:
- returns true only when scope is not null or empty
-
getScope
Gets the scope data.- Returns:
Listof scopeEPPAuthTokenScopeinstances if defined;nullotherwise.
-
setScope
Sets theListof scope dataEPPAuthTokenScopeinstances to send- Parameters:
aScope-ListofEPPAuthTokenScopeinstances
-
appendScope
Appends to theListof scope dataEPPAuthTokenScopeinstances to send.- Parameters:
aScope-EPPAuthTokenScopeinstance
-
equals
Compare an instance ofEPPAuthTokenCreateCmdwith this instance.- Overrides:
equalsin classEPPCreateCmd- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise.
-
clone
CloneEPPAuthTokenCreateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPAuthTokenCreateCmd - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPCommand- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
doEncode
Encode a DOM Element tree from the attributes of the EPPAuthTokenCreateCmd instance.- Specified by:
doEncodein classEPPCreateCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the EPPAuthTokenCreateCmd instance.
- Throws:
EPPEncodeException- Unable to encode EPPAuthTokenCreateCmd instance.
-
doDecode
Decode the EPPAuthTokenCreateCmd attributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPCreateCmd- Parameters:
aElement- Root DOM Element to decode EPPAuthTokenCreateCmd from.- Throws:
EPPDecodeException- Unable to decode aElement
-