Package com.verisign.epp.codec.nv
Class EPPRealNameVerification
java.lang.Object
com.verisign.epp.codec.nv.EPPRealNameVerification
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents a Real Name Verification (RNV) used in
EPPNameVerificationCreateCmd and the
EPPNameVerificationInfoResp.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumReal Name Verification (RNV) proof type include:
POC- Proof of Citizen, where the POC represents the citizen's identification card (ID) material.POE- Proof of Enterprise, where the POE represents the Organization Code Certificate (OCC) or Business License (BL) material.POOT- Proof of Other Types, in the POOT represents other certificate materials except the POC or POE.static enumReal Name Verification (RNV) role that include:
PERSON- The RNV is for a person.ORG- The RNV is for an organization. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEPPRealNameVerificationdefault constructor.EPPRealNameVerification(EPPRealNameVerification.Role aRole, String aName, String aNum, EPPRealNameVerification.ProofType aProofType) EPPRealNameVerificationconstructor the required attributes.EPPRealNameVerification(EPPRealNameVerification.Role aRole, String aName, String aNum, EPPRealNameVerification.ProofType aProofType, EPPNameVerificationDocument aDocument) EPPRealNameVerificationconstructor that takes all attributes with a single document.EPPRealNameVerification(EPPRealNameVerification.Role aRole, String aName, String aNum, EPPRealNameVerification.ProofType aProofType, List<EPPNameVerificationDocument> aDocuments) EPPRealNameVerificationconstructor that takes all attributes. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDocument(EPPNameVerificationDocument aDocument) Adds a document to the list of verification documents.clone()CloneEPPRealNameVerification.voidDecode theEPPRealNameVerificationattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRealNameVerificationinstance.booleanCompare an instance ofEPPRealNameVerificationwith this instance.Gets the verification documents.getName()Gets the full name of the contactReturns the XML namespace associated with theEPPCodecComponent.getNum()Gets the citizen or the organization ID of the contact.Gets the proof material type of the contact.getRole()Gets the contact role.booleanAre there any verification documents?voidsetDocuments(List<EPPNameVerificationDocument> aDocuments) Sets the verification documents.voidSets the full name of the contact.voidSets the citizen or the organization ID of the contact.voidsetProofType(EPPRealNameVerification.ProofType aProofType) Sets the proof material type of the contact.voidSets the contact role.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPRealNameVerification.- See Also:
-
ELM_NAME
XML root tag forEPPRealNameVerification.- See Also:
-
ROLE_PERSON
Contact for the default contact type.- See Also:
-
-
Constructor Details
-
EPPRealNameVerification
public EPPRealNameVerification()EPPRealNameVerificationdefault constructor. -
EPPRealNameVerification
public EPPRealNameVerification(EPPRealNameVerification.Role aRole, String aName, String aNum, EPPRealNameVerification.ProofType aProofType) EPPRealNameVerificationconstructor the required attributes.- Parameters:
aRole- Contact role.aName- Real name to verifyaNum- Citizen or organization ID of the contact.aProofType- Proof type
-
EPPRealNameVerification
public EPPRealNameVerification(EPPRealNameVerification.Role aRole, String aName, String aNum, EPPRealNameVerification.ProofType aProofType, EPPNameVerificationDocument aDocument) EPPRealNameVerificationconstructor that takes all attributes with a single document. * @param aType Contact type with default ofTYPE_REGISTRANT.- Parameters:
aRole- Role of the contactaName- Full name of the contactaNum- Citizen or the organization ID of the contact.aProofType- Proof material type of the contact.aDocument- Single proof document
-
EPPRealNameVerification
public EPPRealNameVerification(EPPRealNameVerification.Role aRole, String aName, String aNum, EPPRealNameVerification.ProofType aProofType, List<EPPNameVerificationDocument> aDocuments) EPPRealNameVerificationconstructor that takes all attributes. * @param aType Contact type with default ofTYPE_REGISTRANT.- Parameters:
aRole- Role of the contactaName- Full name of the contactaNum- Citizen or the organization ID of the contact.aProofType- Proof material type of the contact.aDocuments- List of proof documents
-
-
Method Details
-
getRole
Gets the contact role.- Returns:
- Contact role
-
setRole
Sets the contact role.- Parameters:
aRole- Contact role
-
getNum
Gets the citizen or the organization ID of the contact.- Returns:
- The citizen or the organization ID of the contact.
-
setNum
Sets the citizen or the organization ID of the contact.- Parameters:
aNum- Citizen or the organization ID of the contact.
-
getName
Gets the full name of the contact- Returns:
- Full name of the contact
-
setName
Sets the full name of the contact.- Parameters:
aName- Full name of the contact
-
getProofType
Gets the proof material type of the contact.- Returns:
- proof material type of the contact
-
setProofType
Sets the proof material type of the contact.- Parameters:
aProofType- proof material type of the contact
-
hasDocuments
public boolean hasDocuments()Are there any verification documents?- Returns:
trueif there are documents;falseotherwise.
-
getDocuments
Gets the verification documents.- Returns:
- Verification documents
-
setDocuments
Sets the verification documents.- Parameters:
aDocuments- Verification documents
-
addDocument
Adds a document to the list of verification documents.- Parameters:
aDocument- Document to add to the list of verification documents.
-
encode
Encode a DOM Element tree from the attributes of theEPPRealNameVerificationinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRealNameVerificationinstance. - Throws:
EPPEncodeException- Unable to encodeEPPRealNameVerificationinstance.
-
decode
Decode theEPPRealNameVerificationattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRealNameVerificationfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
Compare an instance ofEPPRealNameVerificationwith this instance. -
clone
CloneEPPRealNameVerification.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- Deep copy clone of
EPPRealNameVerification - 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.
-