Class EPPVerificationCodeInfData
java.lang.Object
com.verisign.epp.codec.verificationcode.EPPVerificationCodeInfData
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Extension to the info response to return the verification information. The
EPPVerificationCodeInfo info command extension defines interest in
returning the verification information in the extension to the info response.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumVerification statuses that include:
NOT_APPLICABLE- The status is not applicable to the client since there is no assigned verification profile.NON_COMPLIANT- The object is non-compliant according to the verification profile.PENDING_COMPLIANCE- The object is not in compliance with the verification profile, but has a grace period to set the required set of verification codes, as reflected by the due date of the verification code type.COMPLIANTThe object is compliant with the verification profile. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate anEPPVerificationCodeInfDatainstance.Create a EPPVerificationCodeInfData instance with the required status.EPPVerificationCodeInfData(EPPVerificationCodeInfData.Status aStatus, EPPVerificationCodeProfile aProfile) Create a EPPVerificationCodeInfData instance with the required status and the a single profile.EPPVerificationCodeInfData(EPPVerificationCodeInfData.Status aStatus, List<EPPVerificationCodeProfile> aProfiles) Create a EPPVerificationCodeInfData instance with the required status and the optional profiles. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProfile(EPPVerificationCodeProfile aProfile) Add a profile to the list of profiles.clone()CloneEPPVerificationCodeInfData.voidDecode the EPPVerificationCodeInfData componentSets all this instance's data in the given XML documentbooleanimplements a deepEPPVerificationCodeInfDatacompare.Returns the XML namespace associated with theEPPCodecComponent.Gets the single profile.Returns the list of profiles.Gets the verification status.booleanIs there a single profile?booleanAre there any profiles?voidsetProfile(EPPVerificationCodeProfile aProfile) Sets the single profile.voidsetProfiles(List<EPPVerificationCodeProfile> aProfiles) Sets the profiles.voidSets the verification status.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
Constant for the info response extension local name- See Also:
-
ELM_NAME
Constant for the info response extension tag- See Also:
-
-
Constructor Details
-
EPPVerificationCodeInfData
public EPPVerificationCodeInfData()Create anEPPVerificationCodeInfDatainstance. -
EPPVerificationCodeInfData
Create a EPPVerificationCodeInfData instance with the required status.- Parameters:
aStatus- Status of the verification
-
EPPVerificationCodeInfData
public EPPVerificationCodeInfData(EPPVerificationCodeInfData.Status aStatus, EPPVerificationCodeProfile aProfile) Create a EPPVerificationCodeInfData instance with the required status and the a single profile.- Parameters:
aStatus- Status of the verificationaProfile- Single verification profile
-
EPPVerificationCodeInfData
public EPPVerificationCodeInfData(EPPVerificationCodeInfData.Status aStatus, List<EPPVerificationCodeProfile> aProfiles) Create a EPPVerificationCodeInfData instance with the required status and the optional profiles.- Parameters:
aStatus- Status of the verificationaProfiles- OPTIONAL verification profiles
-
-
Method Details
-
clone
CloneEPPVerificationCodeInfData.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPVerificationCodeInfData - Throws:
CloneNotSupportedException- standard Object.clone exception
-
encode
Sets all this instance's data in the given XML document- 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
Decode the EPPVerificationCodeInfData component- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Element to decode from- Throws:
EPPDecodeException- On decoding error
-
equals
implements a deepEPPVerificationCodeInfDatacompare. -
getStatus
Gets the verification status.- Returns:
- Verification status
-
setStatus
Sets the verification status.- Parameters:
aStatus- Verification status
-
hasProfiles
public boolean hasProfiles()Are there any profiles?- Returns:
trueif there are profiles;falseotherwise.
-
getProfiles
Returns the list of profiles. An empty list indicates that there are no profiles.- Returns:
- List of profiles.
-
setProfiles
Sets the profiles.- Parameters:
aProfiles- The list of profiles. Set tonullor an empty list to indicate that there are no profiles.
-
addProfile
Add a profile to the list of profiles.- Parameters:
aProfile- Profile to add to the list of profiles.
-
hasProfile
public boolean hasProfile()Is there a single profile?- Returns:
trueif there is one profiles;falseotherwise.
-
getProfile
Gets the single profile.- Returns:
- Single profile that is set if defined;
nullotherwise.
-
setProfile
Sets the single profile. If there is a list of profiles currently set, this method will clear the list and set the profiles to a single profile consisting ofaProfile.- Parameters:
aProfile- Single profile to set.
-
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.
-