Package com.verisign.epp.codec.nv
Class EPPDomainNameVerification
java.lang.Object
com.verisign.epp.codec.nv.EPPDomainNameVerification
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents a Domain Name Verification (DNV) used in
EPPNameVerificationCreateCmd and the
EPPNameVerificationInfoResp.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEPPDomainNameVerificationdefault constructor.EPPDomainNameVerification(String aName) EPPDomainNameVerificationconstructor that takes the required domain label.EPPDomainNameVerification(String aName, String aRnvCode) EPPDomainNameVerificationconstructor that takes the required domain label and the optional Real Name Verification Code Token value for verification of a Restricted Name. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPDomainNameVerification.voidDecode theEPPDomainNameVerificationattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPDomainNameVerificationinstance.booleanCompare an instance ofEPPDomainNameVerificationwith this instance.getName()Gets the domain label for verificationReturns the XML namespace associated with theEPPCodecComponent.Gets the Real Name Verification Code Token value.booleanHas the Real Name Verification Code Token value been set?voidSets the domain label for verification.voidsetRnvCode(String aRnvCode) Sets the Real Name Verification Code Token value.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPDomainNameVerification.- See Also:
-
ELM_NAME
XML root tag forEPPDomainNameVerification.- See Also:
-
-
Constructor Details
-
EPPDomainNameVerification
public EPPDomainNameVerification()EPPDomainNameVerificationdefault constructor. -
EPPDomainNameVerification
EPPDomainNameVerificationconstructor that takes the required domain label.- Parameters:
aName- Domain label to verify
-
EPPDomainNameVerification
EPPDomainNameVerificationconstructor that takes the required domain label and the optional Real Name Verification Code Token value for verification of a Restricted Name.- Parameters:
aName- Domain label to verifyaRnvCode- OPTIONAL Real Name Verification Code Token value. Set tonullif undefined.
-
-
Method Details
-
getName
Gets the domain label for verification- Returns:
- The domain label for verification
-
setName
Sets the domain label for verification.- Parameters:
aName- Domain label for verification
-
hasRnvCode
public boolean hasRnvCode()Has the Real Name Verification Code Token value been set?- Returns:
trueif the code has been set;falseotherwise.
-
getRnvCode
Gets the Real Name Verification Code Token value.- Returns:
- Real Name Verification Code Token value if defined;
nullotherwise.
-
setRnvCode
Sets the Real Name Verification Code Token value.- Parameters:
aRnvCode- Real Name Verification Code Token value. Set tonullif undefined.
-
encode
Encode a DOM Element tree from the attributes of theEPPDomainNameVerificationinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPDomainNameVerificationinstance. - Throws:
EPPEncodeException- Unable to encodeEPPDomainNameVerificationinstance.
-
decode
Decode theEPPDomainNameVerificationattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPDomainNameVerificationfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
Compare an instance ofEPPDomainNameVerificationwith this instance. -
clone
CloneEPPDomainNameVerification.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- Deep copy clone of
EPPDomainNameVerification - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-