public class EPPEncodedSignedCode extends java.lang.Object implements EPPCodecComponent
XMLSignature itself. This class extends
EPPSignedCode.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELM_LOCALNAME
Constant for the code local name for encoded signedCode element
|
static java.lang.String |
ELM_NAME
Constant for the code tag for signedCode element
|
| Constructor and Description |
|---|
EPPEncodedSignedCode()
Default constructor
|
EPPEncodedSignedCode(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.
|
EPPEncodedSignedCode(EPPVerificationCode aCode)
Create an
EPPEncodedSignedCode with the code of the signed
code. |
EPPEncodedSignedCode(java.util.List<EPPEncodedSignedCodeValue> aCodes)
Create an
EPPEncodedSignedCode with a list of encoded signed
code values. |
EPPEncodedSignedCode(java.lang.String aCode,
java.lang.String aType)
Create an
EPPEncodedSignedCode with the code of the signed
code and code type. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCode(EPPEncodedSignedCodeValue aCode)
Adds a encoded signed code to the list of encoded signed codes.
|
java.lang.Object |
clone()
Clone
EPPEncodedSignedCode. |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPSignedCode component |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Sets all this instance's data in the given XML document
|
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPEncodedSignedCode compare. |
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
java.util.List<EPPEncodedSignedCodeValue> |
getSignedCodes()
Gets the list of encoded signed codes.
|
boolean |
hasCodes()
Are encoded signed codes defined?
|
void |
setCode(EPPEncodedSignedCodeValue aCode)
Sets the encoded signed codes to a single code.
|
void |
setSignedCodes(java.util.List<EPPEncodedSignedCodeValue> aCodes)
Sets the list of encoded signed codes.
|
java.lang.String |
toString()
Implementation of
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
public static final java.lang.String ELM_LOCALNAME
public static final java.lang.String ELM_NAME
public EPPEncodedSignedCode()
public EPPEncodedSignedCode(EPPSignedCode aSignedCode) throws EPPEncodeException, EPPDecodeException
aSignedCode - Signed code value that will be encoded and added to the list.EPPEncodeException - Error encoding the SignedCode byte[].EPPDecodeException - Error decoding the encoded SignedCode byte[].public EPPEncodedSignedCode(EPPEncodedSignedCodeValue aEncodedSignedCodeValue)
aEncodedSignedCodeValue - Encoded signed code value to add to the list.public EPPEncodedSignedCode(EPPVerificationCode aCode) throws EPPEncodeException
EPPEncodedSignedCode with the code of the signed
code.aCode - Verification codeEPPEncodeException - Thrown if any errors prevent encoding.public EPPEncodedSignedCode(java.lang.String aCode,
java.lang.String aType)
throws EPPEncodeException
EPPEncodedSignedCode with the code of the signed
code and code type.aCode - Verification codeaType - OPTIONAL verification code type. Set to null if
no type is defined.EPPEncodeException - Thrown if any errors prevent encoding.public EPPEncodedSignedCode(java.util.List<EPPEncodedSignedCodeValue> aCodes)
EPPEncodedSignedCode with a list of encoded signed
code values.aCodes - List of encoded signed code valuespublic boolean hasCodes()
true if encoded signed codes are defined;
false otherwise.public java.util.List<EPPEncodedSignedCodeValue> getSignedCodes()
null otherwise.public void setSignedCodes(java.util.List<EPPEncodedSignedCodeValue> aCodes)
aCodes - List of encoded signed codespublic void setCode(EPPEncodedSignedCodeValue aCode)
aCode - Encoded signed code to setpublic void addCode(EPPEncodedSignedCodeValue aCode)
aCode - Encoded signed code to add to the list of encoded signed
codes.public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPSignedCode componentdecode in interface EPPCodecComponentaElement - Root element of the EPPSignedCodeEPPDecodeException - Error decoding the EPPSignedCodepublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
encode in interface EPPCodecComponentaDocument - a DOM Document to attach data to.EPPEncodeException - Thrown if any errors prevent encoding.public boolean equals(java.lang.Object aObject)
EPPEncodedSignedCode compare.equals in class java.lang.ObjectaObject - EPPEncodedSignedCode instance to compare withpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPEncodedSignedCode.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPEncodedSignedCodejava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic java.lang.String toString()
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent.toString in class java.lang.ObjectString if successful;
ERROR otherwise.public java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.Copyright © VeriSign Inc. All Rights Reserved.