Package com.verisign.epp.codec.keyrelay
Class EPPKeyRelayCreateCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPCreateCmd
com.verisign.epp.codec.keyrelay.EPPKeyRelayCreateCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP Key Relay <create> command, which provides a
transform operation that allows a client to create a key relay message. The
<keyrelay:create> element MUST contain the following child elements:
- A <keyrelay:name> element that contains containing the domain name for which the DNSSEC key material is relayed.
- A <keyrelay:authInfo> element that contains authorization information to insert the key relay message.
- One or more REQUIRED <keyrelay:keyRelayData> elements containing data to be relayed.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPKeyRelayCreateCmd.static final StringXML Element Name ofEPPKeyRelayCreateCmdroot 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 newEPPKeyRelayCreateCmdwith default attribute values, which are all set tonull.EPPKeyRelayCreateCmd(String aTransId, String aName, EPPAuthInfo aAuthInfo) Allocates a newEPPKeyRelayCreateCmdwith all of the required attributes without the key data that can be appended withappendKeyData(com.verisign.epp.codec.keyrelay.EPPKeyRelayData).EPPKeyRelayCreateCmd(String aTransId, String aName, EPPAuthInfo aAuthInfo, List<EPPKeyRelayData> aKeyData) Allocates a newEPPKeyRelayCreateCmdwith all of the required attributes. -
Method Summary
Modifier and TypeMethodDescriptionvoidappendKeyData(EPPKeyRelayData aKeyData) Appends to theListof key dataEPPKeyRelayDatainstances to send.clone()CloneEPPKeyRelayCreateCmd.protected voidDecode the EPPKeyRelayCreateCmd attributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of the EPPKeyRelayCreateCmd instance.booleanCompare an instance ofEPPKeyRelayCreateCmdwith this instance.Get authorization information to insert the key relay message.getKey()Gets the key for the keyrelay name object, which is the keyrelay name.Gets the key data.getName()Get the domain name for the key relay message.Get the EPP command Namespace associated with EPPKeyRelayCreateCmd.booleanIs there key data contained inEPPKeyRelayCreateCmd?voidsetAuthInfo(EPPAuthInfo aAuthInfo) Set authorization information for the key relay messagevoidsetKeyData(List<EPPKeyRelayData> aKeyData) Sets theListof key dataEPPKeyRelayDatainstances to sendvoidSet the domain name for the key relay message.toString()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, getOp, getTransId, hasExtension, hasExtensions, hasKey, hasTransId, setExtension, setExtensions, setTransId
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPKeyRelayCreateCmd.- See Also:
-
ELM_NAME
XML Element Name ofEPPKeyRelayCreateCmdroot element.- See Also:
-
-
Constructor Details
-
EPPKeyRelayCreateCmd
public EPPKeyRelayCreateCmd()Allocates a newEPPKeyRelayCreateCmdwith default attribute values, which are all set tonull. -
EPPKeyRelayCreateCmd
Allocates a newEPPKeyRelayCreateCmdwith all of the required attributes without the key data that can be appended withappendKeyData(com.verisign.epp.codec.keyrelay.EPPKeyRelayData).- Parameters:
aTransId- Transaction Id associated with command.aName- Domain name for the key relay messageaAuthInfo- EPPAuthInfo authorization information to authorize insertion of the key relay message
-
EPPKeyRelayCreateCmd
public EPPKeyRelayCreateCmd(String aTransId, String aName, EPPAuthInfo aAuthInfo, List<EPPKeyRelayData> aKeyData) Allocates a newEPPKeyRelayCreateCmdwith all of the required attributes.- Parameters:
aTransId- Transaction Id associated with command.aName- Domain name for the key relay messageaAuthInfo- EPPAuthInfo authorization information to authorize insertion of the key relay messsageaKeyData- Key data to send
-
-
Method Details
-
getNamespace
Get the EPP command Namespace associated with EPPKeyRelayCreateCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPKeyRelayMapFactory.NS
-
getKey
Gets the key for the keyrelay name object, which is the keyrelay name.- Overrides:
getKeyin classEPPCommand- Returns:
- The keyrelay name if set;
nullotherwise.
-
getName
Get the domain name for the key relay message.- Returns:
- Domain Name
-
setName
Set the domain name for the key relay message.- Parameters:
aName- Domain name for the key relay message
-
hasKeyData
public boolean hasKeyData()Is there key data contained inEPPKeyRelayCreateCmd?- Returns:
trueif list ofEPPKeyRelayDatais notnulland not empty;falseotherwise.
-
getKeyData
Gets the key data.- Returns:
Listof keyDataEPPKeyRelayDatainstances if defined;nullotherwise.
-
setKeyData
Sets theListof key dataEPPKeyRelayDatainstances to send- Parameters:
aKeyData-ListofEPPKeyRelayDatainstances
-
appendKeyData
Appends to theListof key dataEPPKeyRelayDatainstances to send.- Parameters:
aKeyData-EPPKeyRelayDatainstance
-
equals
Compare an instance ofEPPKeyRelayCreateCmdwith this instance.- Overrides:
equalsin classEPPCreateCmd- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise.
-
clone
CloneEPPKeyRelayCreateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPKeyRelayCreateCmd - 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.
-
getAuthInfo
Get authorization information to insert the key relay message.- Returns:
- Authorization information for the key relay message
-
setAuthInfo
Set authorization information for the key relay message- Parameters:
aAuthInfo- Authorization information to authorize the insertion of the key relay message
-
doEncode
Encode a DOM Element tree from the attributes of the EPPKeyRelayCreateCmd instance.- Specified by:
doEncodein classEPPCreateCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the EPPKeyRelayCreateCmd instance.
- Throws:
EPPEncodeException- Unable to encode EPPKeyRelayCreateCmd instance.
-
doDecode
Decode the EPPKeyRelayCreateCmd attributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPCreateCmd- Parameters:
aElement- Root DOM Element to decode EPPKeyRelayCreateCmd from.- Throws:
EPPDecodeException- Unable to decode aElement
-