Class EPPEncodedSignedCode
java.lang.Object
com.verisign.epp.codec.verificationcode.EPPEncodedSignedCode
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Class for the encoded signed code, which contains the code and the
XMLSignature itself. This class extends
EPPSignedCode.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorEPPEncodedSignedCode(EPPEncodedSignedCodeValue aEncodedSignedCodeValue) Construct an encoded signed code with a single encoded signed code value.EPPEncodedSignedCode(EPPSignedCode aSignedCode) Construct an encoded signed code with a single signed code value.Create anEPPEncodedSignedCodewith the code of the signed code.EPPEncodedSignedCode(String aCode, String aType) Create anEPPEncodedSignedCodewith the code of the signed code and code type.Create anEPPEncodedSignedCodewith a list of encoded signed code values. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCode(EPPEncodedSignedCodeValue aCode) Adds a encoded signed code to the list of encoded signed codes.clone()CloneEPPEncodedSignedCode.voidDecode theEPPSignedCodecomponentSets all this instance's data in the given XML documentbooleanimplements a deepEPPEncodedSignedCodecompare.Returns the XML namespace associated with theEPPCodecComponent.Gets the list of encoded signed codes.booleanhasCodes()Are encoded signed codes defined?voidsetCode(EPPEncodedSignedCodeValue aCode) Sets the encoded signed codes to a single code.voidsetSignedCodes(List<EPPEncodedSignedCodeValue> aCodes) Sets the list of encoded signed codes.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
Constant for the code local name for encoded signedCode element- See Also:
-
ELM_NAME
Constant for the code tag for signedCode element- See Also:
-
-
Constructor Details
-
EPPEncodedSignedCode
public EPPEncodedSignedCode()Default constructor -
EPPEncodedSignedCode
public EPPEncodedSignedCode(EPPSignedCode aSignedCode) throws EPPEncodeException, EPPDecodeException Construct an encoded signed code with a single signed code value.- Parameters:
aSignedCode- Signed code value that will be encoded and added to the list.- Throws:
EPPEncodeException- Error encoding the SignedCodebyte[].EPPDecodeException- Error decoding the encoded SignedCodebyte[].
-
EPPEncodedSignedCode
Construct an encoded signed code with a single encoded signed code value.- Parameters:
aEncodedSignedCodeValue- Encoded signed code value to add to the list.
-
EPPEncodedSignedCode
Create anEPPEncodedSignedCodewith the code of the signed code.- Parameters:
aCode- Verification code- Throws:
EPPEncodeException- Thrown if any errors prevent encoding.
-
EPPEncodedSignedCode
Create anEPPEncodedSignedCodewith the code of the signed code and code type.- Parameters:
aCode- Verification codeaType- OPTIONAL verification code type. Set tonullif no type is defined.- Throws:
EPPEncodeException- Thrown if any errors prevent encoding.
-
EPPEncodedSignedCode
Create anEPPEncodedSignedCodewith a list of encoded signed code values.- Parameters:
aCodes- List of encoded signed code values
-
-
Method Details
-
hasCodes
public boolean hasCodes()Are encoded signed codes defined?- Returns:
trueif encoded signed codes are defined;falseotherwise.
-
getSignedCodes
Gets the list of encoded signed codes.- Returns:
- List of encoded signed codes if set;
nullotherwise.
-
setSignedCodes
Sets the list of encoded signed codes.- Parameters:
aCodes- List of encoded signed codes
-
setCode
Sets the encoded signed codes to a single code.- Parameters:
aCode- Encoded signed code to set
-
addCode
Adds a encoded signed code to the list of encoded signed codes.- Parameters:
aCode- Encoded signed code to add to the list of encoded signed codes.
-
decode
Decode theEPPSignedCodecomponent- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root element of theEPPSignedCode- Throws:
EPPDecodeException- Error decoding theEPPSignedCode
-
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.
-
equals
implements a deepEPPEncodedSignedCodecompare. -
clone
CloneEPPEncodedSignedCode.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPEncodedSignedCode - Throws:
CloneNotSupportedException- standard Object.clone exception
-
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.
-