Package com.verisign.epp.interfaces
Class EPPNameVerification
java.lang.Object
com.verisign.epp.interfaces.EPPNameVerification
EPPNameVerification is the primary client interface class used
for the Name Verification EPP mapping. An instance of
EPPNameVerification 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.nv package.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEPPNameVerification(EPPSession aSession) Constructs anEPPNameVerificationgiven an initialized EPP session. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExtension(EPPCodecComponent aExtension) Adds a command extension object.voidAdd a label to the list of labels.Gets the command extensions.Gets the response associated with the last command.protected voidResets the Name Verification instance to its initial state.Sends an Name Verification Check Command to the server.
The required attributes that must be set prior to executingsendCheck()include:
addLabel(String)- Add at least one domain label to check.
The optional attributes can be set with the following:
setTransId- Sets the client transaction identifier.Sends a Name Verification Create Command to the server.
The required attributes that must be set prior to executingsendCreate()include:
setDnv(EPPDomainNameVerification)orsetRnv(EPPRealNameVerification)- Sets the domain or real name verification information needed to be verified.setAuthInfo(String)- Sets the required authorization information for the Name Verification (NV) object.sendInfo()Sends an Name Verification Info Command to the server.
The required attributes that must be set prior to executingsendInfo()include:
setCode(String)- Sets the domain verification code to info.setType(EPPNameVerificationInfoCmd.Type)- Sets the info type using one of theEPPNameVerificationInfoCmd.Typeenumerated values.
The optional attributes can be set with the following:
setTransId- Sets the client transaction identifier.setAuthInfo(String)- Sets the authorization information to OPTIONAL authorize the info command.Sends an Name Verification Update Command to the server.
The required attributes that must be set prior to executingsendUpdate()include:
setCode(String)- Sets the verification code to update.voidsetAuthInfo(String aAuthInfo) Set the auth info for a create or info command.voidSets the code for use with an info command or update command.voidSets the Domain Name Verification (DNV) information used on a create.voidsetExtensions(Vector aExtensions) Sets the command extension objects.voidsetInfoType(EPPNameVerificationInfoCmd.Type aInfoType) Sets the info type that is used on an info command.voidSets the Real Name Verification (RNV) information used on a create.voidsetTransId(String aTransId) Sets the client transaction identifier.
-
Constructor Details
-
EPPNameVerification
Constructs anEPPNameVerificationgiven 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.
-
setTransId
Sets the client transaction identifier.- Parameters:
aTransId- Client transaction identifier
-
addLabel
Add a label to the list of labels.- Parameters:
aLabel- Label to add
-
setAuthInfo
Set the auth info for a create or info command.- Parameters:
aAuthInfo- Authorization value
-
setCode
Sets the code for use with an info command or update command.- Parameters:
aCode- Verification code value
-
setDnv
Sets the Domain Name Verification (DNV) information used on a create.- Parameters:
aDnv- Domain Name Verification (DNV) information
-
setRnv
Sets the Real Name Verification (RNV) information used on a create.- Parameters:
aRnv- Real Name Verification (RNV) information
-
setInfoType
Sets the info type that is used on an info command.- Parameters:
aInfoType- The info type (input or signedCode)
-
sendCheck
Sends an Name Verification Check Command to the server.
The required attributes that must be set prior to executingsendCheck()include:
addLabel(String)- Add at least one domain label to check.
The optional attributes can be set with the following:
setTransId- Sets the client transaction identifier.
- Returns:
EPPNameVerificationCheckResp.- Throws:
EPPCommandException- On error
-
sendInfo
Sends an Name Verification Info Command to the server.
The required attributes that must be set prior to executingsendInfo()include:
setCode(String)- Sets the domain verification code to info.setType(EPPNameVerificationInfoCmd.Type)- Sets the info type using one of theEPPNameVerificationInfoCmd.Typeenumerated values.
The optional attributes can be set with the following:
setTransId- Sets the client transaction identifier.setAuthInfo(String)- Sets the authorization information to OPTIONAL authorize the info command.
- Returns:
EPPNameVerificationInfoResp.- Throws:
EPPCommandException- On error
-
sendCreate
Sends a Name Verification Create Command to the server.
The required attributes that must be set prior to executingsendCreate()include:
setDnv(EPPDomainNameVerification)orsetRnv(EPPRealNameVerification)- Sets the domain or real name verification information needed to be verified.setAuthInfo(String)- Sets the required authorization information for the Name Verification (NV) object.
The optional attributes can be set with the following:
setTransId- Sets the client transaction identifier.
- Returns:
EPPNameVerificationCreateResp.- Throws:
EPPCommandException- On error
-
sendUpdate
Sends an Name Verification Update Command to the server.
The required attributes that must be set prior to executingsendUpdate()include:
setCode(String)- Sets the verification code to update.setAuthInfo(String)- Sets the authorization information to set for the Name Verification (NV) object.
The optional attributes can be set with the following:
setTransId- Sets the client transaction identifier.
- Returns:
EPPResponse.- Throws:
EPPCommandException- On error
-
resetNameVerification
protected void resetNameVerification()Resets the Name Verification 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
-