Package com.verisign.epp.interfaces
Class EPPKeyRelay
java.lang.Object
com.verisign.epp.interfaces.EPPKeyRelay
EPPKeyRelay is the primary client interface class used for keyrelay
management. An instance of EPPKeyRelay is created with an initialized
EPPSession, and can be used for more than one request within a single
thread. A set of setter methods are provided to set the attributes before a
call to one of the send action methods. The responses returned from the send
action methods are either instances of EPPResponse or instances of
response classes in the com.verisign.epp.codec.keyrelay package.-
Constructor Summary
ConstructorsConstructorDescriptionEPPKeyRelay(EPPSession aSession) Constructs anEPPKeyRelaygiven an initialized EPP session. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExtension(EPPCodecComponent aExtension) Adds a command extension object.voidappendKeyData(EPPKeyRelayData aKeyData) Appends to theListof key dataEPPKeyRelayDatainstances to send.Gets the set authorization information if defined.Sets the authorization roid that is used to identify the registrant or contact object if and only if the value of authInfo, set bysetAuthString(String), is associated with the registrant or contact object.Sets the authorization string associated with ansendCreateandsendTransfer.Gets the command extensions.Gets the key data.Gets the response associated with the last command.booleanIs there key data contained inEPPKeyRelayCreateCmd?protected voidResets the key relay instance to its initial state.Sends a Key Relay Create Command to the server.
The required attributes have been set with the following methods:
setName- Sets the domain name asssociated with the key relay message.setAuthString- Sets the authorization information to authorize insertion of the key relay message. TODO - Add the key relay data
The optional attributes have been set with the following:
setTransId- Sets the client transaction identifiervoidsetAuthInfo(EPPAuthInfo aAuthInfo) Sets the authorization information using theEPPAuthInfoobject.voidsetAuthRoid(String aAuthRoid) Gets the authorization roid that is used to identify the registrant or contact object if and only if the value of authInfo, set bysetAuthString(String), is associated with the registrant or contact object.voidsetAuthString(String aAuthString) Sets the authorization string associated with ansendCreateandsendTransferand optionallysendInfo.voidsetExtensions(Vector<EPPCodecComponent> aExtensions) Sets the command extension objects.voidsetKeyData(List<EPPKeyRelayData> aKeyData) Sets theListof key dataEPPKeyRelayDatainstances to sendvoidSets the domain name associated with the key relay message.
-
Constructor Details
-
EPPKeyRelay
Constructs anEPPKeyRelaygiven an initialized EPP session.- Parameters:
aSession- Server session to use.
-
-
Method Details
-
addExtension
Adds a command extension object.- Parameters:
aExtension- command extension object associated with the command
-
setExtensions
Sets the command extension objects.- Parameters:
aExtensions- command extension objects associated with the command
-
getExtensions
Gets the command extensions.- Returns:
Vectorof concreteEPPCodecComponentassociated with the command if exists;nullotherwise.
-
setName
Sets the domain name associated with the key relay message.- Parameters:
aName- Domain name associated with the key relay message
-
setAuthString
Sets the authorization string associated with ansendCreateandsendTransferand optionallysendInfo.- Parameters:
aAuthString- Authorization string
-
getAuthRoid
Sets the authorization roid that is used to identify the registrant or contact object if and only if the value of authInfo, set bysetAuthString(String), is associated with the registrant or contact object. This can be used withsendCreateandsendInfoalong with setting the authInfo with thesetAuthString(String)method.- Returns:
- Roid of registrant or contact object if defined;
nullotherwise.
-
setAuthRoid
Gets the authorization roid that is used to identify the registrant or contact object if and only if the value of authInfo, set bysetAuthString(String), is associated with the registrant or contact object. This can be used withsendCreatealong with setting the authInfo with thesetAuthString(String)method.- Parameters:
aAuthRoid- Roid of registrant or contact object
-
getAuthString
Sets the authorization string associated with ansendCreateandsendTransfer.- Returns:
- Authorization string if defined;
nullotherwise.
-
getAuthInfo
Gets the set authorization information if defined.- Returns:
- The authorization information if defined;
nullotherwise.
-
setAuthInfo
Sets the authorization information using theEPPAuthInfoobject.- Parameters:
aAuthInfo- The authorization information to set.
-
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-EPPSecDNSExtKeyDatainstance
-
sendCreate
Sends a Key Relay Create Command to the server.
The required attributes have been set with the following methods:
setName- Sets the domain name asssociated with the key relay message.setAuthString- Sets the authorization information to authorize insertion of the key relay message. TODO - Add the key
relay data
The optional attributes have been set with the following:
setTransId- Sets the client transaction identifier
- Returns:
EPPResponsecontaining the result of inserting the key relay message- Throws:
EPPCommandException- Error executing the create command. UsegetResponseto get the associated server error response.
-
resetKeyRelay
protected void resetKeyRelay()Resets the key relay instance to its initial state. -
getResponse
Gets the response associated with the last command. This method can be used to retrieve the server error response in the catch block of EPPCommandException.- Returns:
- Response associated with the last command
-