Class EPPVerificationCodeInfo
- java.lang.Object
-
- com.verisign.epp.codec.verificationcode.EPPVerificationCodeInfo
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPVerificationCodeInfo extends java.lang.Object implements EPPCodecComponent
Extension to the info command to retrieve the verification information for the verification profile assigned to the client or using the verification profile explicitly specified.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEConstant for the verification code info extension local namestatic java.lang.StringELM_NAMEConstant for the verification code info extension tag
-
Constructor Summary
Constructors Constructor Description EPPVerificationCodeInfo()Create anEPPVerificationCodeInfoinstance.EPPVerificationCodeInfo(java.lang.String aProfile)Create aEPPVerificationCodeInfoinstance with the optional client specified profile.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPVerificationCodeInfo.voiddecode(org.w3c.dom.Element aElement)Decode the DOM element to theEPPVerificationCodeInfo.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode theEPPVerificationCodeInfoto a DOM Elementbooleanequals(java.lang.Object aObject)implements a deepEPPVerificationCodeInfocompare.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.StringgetProfile()Gets the client specified profile to base the verification information on.booleanhasProfile()Is the verification profile defined?voidsetProfile(java.lang.String aProfile)Sets the client specified profile to base the verification information on.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
Constant for the verification code info extension local name- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
Constant for the verification code info extension tag- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPVerificationCodeInfo
public EPPVerificationCodeInfo()
Create anEPPVerificationCodeInfoinstance.
-
EPPVerificationCodeInfo
public EPPVerificationCodeInfo(java.lang.String aProfile)
Create aEPPVerificationCodeInfoinstance with the optional client specified profile.- Parameters:
aProfile- Profile to base the verification information on.
-
-
Method Detail
-
hasProfile
public boolean hasProfile()
Is the verification profile defined?- Returns:
trueif the verification profile is defined;falseotherwise.
-
getProfile
public java.lang.String getProfile()
Gets the client specified profile to base the verification information on.- Returns:
- Verification profile if defined;
nullotherwise.
-
setProfile
public void setProfile(java.lang.String aProfile)
Sets the client specified profile to base the verification information on.- Parameters:
aProfile- Profile to base the verification information on.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPVerificationCodeInfo.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPVerificationCodeInfo - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode theEPPVerificationCodeInfoto a DOM Element- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- a DOM Document to attach data to.- Returns:
- The root element of this component.
- Throws:
EPPEncodeException- Thrown if any errors prevent encoding.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode the DOM element to theEPPVerificationCodeInfo.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- DOM Element to decode the attribute values- Throws:
EPPDecodeException- Error decoding the DOM Element
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPVerificationCodeInfocompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPVerificationCodeInfoinstance to compare with- Returns:
- true if equal false otherwise
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-