Class EPPVerificationCodeProfile
java.lang.Object
com.verisign.epp.codec.verificationcode.EPPVerificationCodeProfile
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Information associated with compliance with a verification code profile. A
Verification Profile defines the set of verification code types, the commands
that the verification code types are required, supported, or not supported,
and the grace period by which the verification code types MUST be set. A
server MAY support many verification profiles, each with a unique name and a
unique verification policy that is implemented by the server.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumVerification statuses that include:
NOT_APPLICABLE- The profile status is not applicable to the client based on the assigned verification profiles or the profile specified.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.EPPVerificationCodeProfile(String aProfileName, EPPVerificationCodeProfile.Status aStatus) Create a EPPVerificationCodeInfData instance with the required attributes status.EPPVerificationCodeProfile(String aProfileName, EPPVerificationCodeProfile.Status aStatus, List<EPPVerificationCode> aMissingCodes, List<EPPVerificationCode> aSetCodes) Create a EPPVerificationCodeInfData instance with the all required and optional attributes. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMissingCode(EPPVerificationCode aMissingCode) Add a missing code to the list of missing codes.voidaddSetCode(EPPVerificationCode aSetCode) Add a set code to the list of set codes.clone()CloneEPPVerificationCodeInfData.voidDecode the EPPVerificationCodeInfData componentSets all this instance's data in the given XML documentbooleanimplements a deepEPPVerificationCodeInfDatacompare.Returns the list of missing codes.Returns the XML namespace associated with theEPPCodecComponent.Gets the verification profile name.Returns the list of set codes.Gets the verification status.booleanAre there any missing codes?booleanAre there any set codes?voidsetMissingCodes(List<EPPVerificationCode> aMissingCodes) Sets the missing codes.voidsetProfileName(String aProfileName) Sets the verification profile name.voidsetSetCodes(List<EPPVerificationCode> aSetCodes) Sets the set codes.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 profile local name- See Also:
-
ELM_NAME
Constant for the profile tag- See Also:
-
-
Constructor Details
-
EPPVerificationCodeProfile
public EPPVerificationCodeProfile()Create anEPPVerificationCodeInfDatainstance. -
EPPVerificationCodeProfile
Create a EPPVerificationCodeInfData instance with the required attributes status.- Parameters:
aProfileName- Name of the profileaStatus- Status of the verification
-
EPPVerificationCodeProfile
public EPPVerificationCodeProfile(String aProfileName, EPPVerificationCodeProfile.Status aStatus, List<EPPVerificationCode> aMissingCodes, List<EPPVerificationCode> aSetCodes) Create a EPPVerificationCodeInfData instance with the all required and optional attributes.- Parameters:
aProfileName- Name of the profileaStatus- Status of the verificationaMissingCodes- OPTIONAL missing codes. Set tonullif there are no missing codes.aSetCodes- OPTIONAL set codes. Set tonullif there are no set codes.
-
-
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. -
getProfileName
Gets the verification profile name.- Returns:
- Verification profile if defined;
nullotherwise.
-
setProfileName
Sets the verification profile name.- Parameters:
aProfileName- Verification profile
-
getStatus
Gets the verification status.- Returns:
- Verification status
-
setStatus
Sets the verification status.- Parameters:
aStatus- Verification status
-
hasMissingCodes
public boolean hasMissingCodes()Are there any missing codes?- Returns:
trueif there are missing codes;falseotherwise.
-
getMissingCodes
Returns the list of missing codes. An empty list indicates that there are no missing codes.- Returns:
- List of missing codes.
-
setMissingCodes
Sets the missing codes.- Parameters:
aMissingCodes- The list of missing codes. Set tonullor an empty list to indicate that there are no missing codes.
-
addMissingCode
Add a missing code to the list of missing codes.- Parameters:
aMissingCode- Missing code to add to the list of missing codes.
-
hasSetCodes
public boolean hasSetCodes()Are there any set codes?- Returns:
trueif there are set codes;falseotherwise.
-
getSetCodes
Returns the list of set codes. An empty list indicates that there are no set codes.- Returns:
- List of set codes.
-
setSetCodes
Sets the set codes.- Parameters:
aSetCodes- The list of set codes. Set tonullor an empty list to indicate that there are no set codes.
-
addSetCode
Add a set code to the list of set codes.- Parameters:
aSetCode- Set code to add to the list of set codes.
-
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.
-