Class EPPVerificationCodeProfile
- java.lang.Object
-
- com.verisign.epp.codec.verificationcode.EPPVerificationCodeProfile
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPVerificationCodeProfile extends java.lang.Object implements EPPCodecComponent
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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEPPVerificationCodeProfile.StatusVerification 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 Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEConstant for the profile local namestatic java.lang.StringELM_NAMEConstant for the profile tag
-
Constructor Summary
Constructors Constructor Description EPPVerificationCodeProfile()Create anEPPVerificationCodeInfDatainstance.EPPVerificationCodeProfile(java.lang.String aProfileName, EPPVerificationCodeProfile.Status aStatus)Create a EPPVerificationCodeInfData instance with the required attributes status.EPPVerificationCodeProfile(java.lang.String aProfileName, EPPVerificationCodeProfile.Status aStatus, java.util.List<EPPVerificationCode> aMissingCodes, java.util.List<EPPVerificationCode> aSetCodes)Create a EPPVerificationCodeInfData instance with the all required and optional attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMissingCode(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.java.lang.Objectclone()CloneEPPVerificationCodeInfData.voiddecode(org.w3c.dom.Element aElement)Decode the EPPVerificationCodeInfData componentorg.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Sets all this instance's data in the given XML documentbooleanequals(java.lang.Object aObject)implements a deepEPPVerificationCodeInfDatacompare.java.util.List<EPPVerificationCode>getMissingCodes()Returns the list of missing codes.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.StringgetProfileName()Gets the verification profile name.java.util.List<EPPVerificationCode>getSetCodes()Returns the list of set codes.EPPVerificationCodeProfile.StatusgetStatus()Gets the verification status.booleanhasMissingCodes()Are there any missing codes?booleanhasSetCodes()Are there any set codes?voidsetMissingCodes(java.util.List<EPPVerificationCode> aMissingCodes)Sets the missing codes.voidsetProfileName(java.lang.String aProfileName)Sets the verification profile name.voidsetSetCodes(java.util.List<EPPVerificationCode> aSetCodes)Sets the set codes.voidsetStatus(EPPVerificationCodeProfile.Status aStatus)Sets the verification status.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
Constant for the profile local name- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
Constant for the profile tag- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPVerificationCodeProfile
public EPPVerificationCodeProfile()
Create anEPPVerificationCodeInfDatainstance.
-
EPPVerificationCodeProfile
public EPPVerificationCodeProfile(java.lang.String aProfileName, EPPVerificationCodeProfile.Status aStatus)Create a EPPVerificationCodeInfData instance with the required attributes status.- Parameters:
aProfileName- Name of the profileaStatus- Status of the verification
-
EPPVerificationCodeProfile
public EPPVerificationCodeProfile(java.lang.String aProfileName, EPPVerificationCodeProfile.Status aStatus, java.util.List<EPPVerificationCode> aMissingCodes, java.util.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 Detail
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPVerificationCodeInfData.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPVerificationCodeInfData - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionSets 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode the EPPVerificationCodeInfData component- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Element to decode from- Throws:
EPPDecodeException- On decoding error
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPVerificationCodeInfDatacompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPVerificationCodeInfDatainstance to compare with- Returns:
- true if equal false otherwise
-
getProfileName
public java.lang.String getProfileName()
Gets the verification profile name.- Returns:
- Verification profile if defined;
nullotherwise.
-
setProfileName
public void setProfileName(java.lang.String aProfileName)
Sets the verification profile name.- Parameters:
aProfileName- Verification profile
-
getStatus
public EPPVerificationCodeProfile.Status getStatus()
Gets the verification status.- Returns:
- Verification status
-
setStatus
public void setStatus(EPPVerificationCodeProfile.Status aStatus)
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
public java.util.List<EPPVerificationCode> getMissingCodes()
Returns the list of missing codes. An empty list indicates that there are no missing codes.- Returns:
- List of missing codes.
-
setMissingCodes
public void setMissingCodes(java.util.List<EPPVerificationCode> aMissingCodes)
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
public void addMissingCode(EPPVerificationCode aMissingCode)
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
public java.util.List<EPPVerificationCode> getSetCodes()
Returns the list of set codes. An empty list indicates that there are no set codes.- Returns:
- List of set codes.
-
setSetCodes
public void setSetCodes(java.util.List<EPPVerificationCode> aSetCodes)
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
public void addSetCode(EPPVerificationCode aSetCode)
Add a set code to the list of set codes.- Parameters:
aSetCode- Set code to add to the list of set codes.
-
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.
-
-