Package com.verisign.epp.codec.nv
Class EPPRealNameVerification
- java.lang.Object
-
- com.verisign.epp.codec.nv.EPPRealNameVerification
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRealNameVerification extends java.lang.Object implements EPPCodecComponent
Represents a Real Name Verification (RNV) used inEPPNameVerificationCreateCmdand theEPPNameVerificationInfoResp.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEPPRealNameVerification.ProofTypeReal 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 classEPPRealNameVerification.RoleReal Name Verification (RNV) role that include:
PERSON- The RNV is for a person.ORG- The RNV is for an organization.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPRealNameVerification.static java.lang.StringELM_NAMEXML root tag forEPPRealNameVerification.static java.lang.StringROLE_PERSONContact for the default contact type.
-
Constructor Summary
Constructors Constructor Description EPPRealNameVerification()EPPRealNameVerificationdefault constructor.EPPRealNameVerification(EPPRealNameVerification.Role aRole, java.lang.String aName, java.lang.String aNum, EPPRealNameVerification.ProofType aProofType)EPPRealNameVerificationconstructor the required attributes.EPPRealNameVerification(EPPRealNameVerification.Role aRole, java.lang.String aName, java.lang.String aNum, EPPRealNameVerification.ProofType aProofType, EPPNameVerificationDocument aDocument)EPPRealNameVerificationconstructor that takes all attributes with a single document.EPPRealNameVerification(EPPRealNameVerification.Role aRole, java.lang.String aName, java.lang.String aNum, EPPRealNameVerification.ProofType aProofType, java.util.List<EPPNameVerificationDocument> aDocuments)EPPRealNameVerificationconstructor that takes all attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDocument(EPPNameVerificationDocument aDocument)Adds a document to the list of verification documents.java.lang.Objectclone()CloneEPPRealNameVerification.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRealNameVerificationattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRealNameVerificationinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPRealNameVerificationwith this instance.java.util.List<EPPNameVerificationDocument>getDocuments()Gets the verification documents.java.lang.StringgetName()Gets the full name of the contactjava.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.StringgetNum()Gets the citizen or the organization ID of the contact.EPPRealNameVerification.ProofTypegetProofType()Gets the proof material type of the contact.EPPRealNameVerification.RolegetRole()Gets the contact role.booleanhasDocuments()Are there any verification documents?voidsetDocuments(java.util.List<EPPNameVerificationDocument> aDocuments)Sets the verification documents.voidsetName(java.lang.String aName)Sets the full name of the contact.voidsetNum(java.lang.String aNum)Sets the citizen or the organization ID of the contact.voidsetProofType(EPPRealNameVerification.ProofType aProofType)Sets the proof material type of the contact.voidsetRole(EPPRealNameVerification.Role aRole)Sets the contact role.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPRealNameVerification.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPRealNameVerification.- See Also:
- Constant Field Values
-
ROLE_PERSON
public static final java.lang.String ROLE_PERSON
Contact for the default contact type.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRealNameVerification
public EPPRealNameVerification()
EPPRealNameVerificationdefault constructor.
-
EPPRealNameVerification
public EPPRealNameVerification(EPPRealNameVerification.Role aRole, java.lang.String aName, java.lang.String aNum, EPPRealNameVerification.ProofType aProofType)
EPPRealNameVerificationconstructor the required attributes.- Parameters:
aRole- Contact role.aNum- Citizen or organization ID of the contact.aName- Real name to verifyaProofType- Proof type
-
EPPRealNameVerification
public EPPRealNameVerification(EPPRealNameVerification.Role aRole, java.lang.String aName, java.lang.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, java.lang.String aName, java.lang.String aNum, EPPRealNameVerification.ProofType aProofType, java.util.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 Detail
-
getRole
public EPPRealNameVerification.Role getRole()
Gets the contact role.- Returns:
- Contact role
-
setRole
public void setRole(EPPRealNameVerification.Role aRole)
Sets the contact role.- Parameters:
aRole- Contact role
-
getNum
public java.lang.String getNum()
Gets the citizen or the organization ID of the contact.- Returns:
- The citizen or the organization ID of the contact.
-
setNum
public void setNum(java.lang.String aNum)
Sets the citizen or the organization ID of the contact.- Parameters:
aNum- Citizen or the organization ID of the contact.
-
getName
public java.lang.String getName()
Gets the full name of the contact- Returns:
- Full name of the contact
-
setName
public void setName(java.lang.String aName)
Sets the full name of the contact.- Parameters:
aName- Full name of the contact
-
getProofType
public EPPRealNameVerification.ProofType getProofType()
Gets the proof material type of the contact.- Returns:
- proof material type of the contact
-
setProofType
public void setProofType(EPPRealNameVerification.ProofType aProofType)
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
public java.util.List<EPPNameVerificationDocument> getDocuments()
Gets the verification documents.- Returns:
- Verification documents
-
setDocuments
public void setDocuments(java.util.List<EPPNameVerificationDocument> aDocuments)
Sets the verification documents.- Parameters:
aDocuments- Verification documents
-
addDocument
public void addDocument(EPPNameVerificationDocument aDocument)
Adds a document to the list of verification documents.- Parameters:
aDocument- Document to add to the list of verification documents.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPRealNameVerificationwith this instance.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject- Object to compare with.- Returns:
trueif this object is the same as the aObject argument;falseotherwise.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRealNameVerification.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- Deep copy clone of
EPPRealNameVerification - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-