public class EPPEncodedSignedCodeValue extends EPPSignedCode
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
|
ELM_SIGNED_CODE, ELM_SIGNED_CODE_LOCALNAME
Constructor and Description |
---|
EPPEncodedSignedCodeValue()
Create an
EPPEncodedSignedCodeValue instance. |
EPPEncodedSignedCodeValue(byte[] aEncodedSignedCodeArray)
Creates an
EPPEncodedSignedCodeValue that is initialized by
decoding the input byte[] . |
EPPEncodedSignedCodeValue(EPPSignedCode aSignedCode)
Construct Encoded SignedCode object from SignedCode object.
|
EPPEncodedSignedCodeValue(EPPVerificationCode aCode)
Create an
EPPEncodedSignedCodeValue with the code of the
signed code. |
EPPEncodedSignedCodeValue(java.io.InputStream aScode)
Creates an
EPPEncodedSignedCodeValue by decoding the a
Signed Code Data (SMD) that is in a PEM-like input stream that includes
the encoded signed code with a leading line "-----BEGIN ENCODED
SCODE-----" and a trailing "-----END ENCODED SCODE-----". |
EPPEncodedSignedCodeValue(java.lang.String aCode,
java.lang.String aType)
Create an
EPPEncodedSignedCodeValue with the code and type
of the signed code. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPEncodedSignedCodeValue . |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPSignedCode component |
void |
decodeValue(byte[] aBase64SignedCode)
Decode the Base64 encoded signed code value with no wrapping XML.
|
void |
decodeValue(java.lang.String aBase64SignedCode)
Decode the Base64 encoded signed code value with no wrapping XML.
|
byte[] |
encode()
Encode the encoded signed code to a
byte[] . |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Sets all this instance's data in the given XML document
|
java.lang.String |
encodeValue()
Encodes the Base64 signed code value without the wrapping XML elements
|
java.lang.String |
encodeValue(boolean aIsChunked)
Encodes the Base64 signed code value without the wrapping XML elements,
and with the option for chunking the Base64 into 76 character blocks.
|
byte[] |
encodeValueByteArray()
Encodes the Base64 signed code value without the wrapping XML elements
|
byte[] |
encodeValueByteArray(boolean aIsChunked)
Encodes the Base64 signed code value without the wrapping XML elements,
and with the option for chunking the Base64 into 76 character blocks.
|
decode, equals, getAttrIdValue, getCode, getCodeType, getCodeValue, getLocalName, getNamespace, getTrustAnchor, hasTrustAnchor, sign, sign, toString, validate, validate, validate
public static final java.lang.String ELM_LOCALNAME
public static final java.lang.String ELM_NAME
public EPPEncodedSignedCodeValue()
EPPEncodedSignedCodeValue
instance.public EPPEncodedSignedCodeValue(EPPSignedCode aSignedCode) throws EPPEncodeException, EPPDecodeException
aSignedCode
- SignedCode objectEPPEncodeException
- Error encoding the SignedCode byte[]
.EPPDecodeException
- Error decoding the encoded SignedCode byte[]
.public EPPEncodedSignedCodeValue(EPPVerificationCode aCode) throws EPPEncodeException
EPPEncodedSignedCodeValue
with the code of the
signed code.aCode
- Verification codeEPPEncodeException
- Thrown if any errors prevent encoding.public EPPEncodedSignedCodeValue(java.lang.String aCode, java.lang.String aType) throws EPPEncodeException
EPPEncodedSignedCodeValue
with the code and type
of the signed code.aCode
- Verification codeaType
- Verification code type.EPPEncodeException
- Thrown if any errors prevent encoding.public EPPEncodedSignedCodeValue(byte[] aEncodedSignedCodeArray) throws EPPDecodeException
EPPEncodedSignedCodeValue
that is initialized by
decoding the input byte[]
.aEncodedSignedCodeArray
- byte[]
to decode the attribute valuesEPPDecodeException
- Error decoding the input byte[]
.public EPPEncodedSignedCodeValue(java.io.InputStream aScode) throws EPPDecodeException
EPPEncodedSignedCodeValue
by decoding the a
Signed Code Data (SMD) that is in a PEM-like input stream that includes
the encoded signed code with a leading line "-----BEGIN ENCODED
SCODE-----" and a trailing "-----END ENCODED SCODE-----".aScode
- InputStream
containing a Signed Code (SCODE)EPPDecodeException
- Error decoding the Signed Code (SCODE)public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPSignedCode
componentdecode
in interface EPPCodecComponent
decode
in class EPPSignedCode
aElement
- Root element of the EPPSignedCode
EPPDecodeException
- Error decoding the EPPSignedCode
public void decodeValue(byte[] aBase64SignedCode) throws EPPDecodeException
aBase64SignedCode
- Base64 encoded EPPSignedCode
, which does not
include the wrapper <verificationCode:code> XML element.EPPDecodeException
- Error decoding the Base64 encoded EPPSignedCode
public void decodeValue(java.lang.String aBase64SignedCode) throws EPPDecodeException
aBase64SignedCode
- Base64 encoded EPPSignedCode
, which does not
include the wrapper <verificationCode:code> XML element.EPPDecodeException
- Error decoding the Base64 encoded EPPSignedCode
public byte[] encode() throws EPPEncodeException
byte[]
. This returns the
XML with the wrapping <verificationCode:code> element with the
Base64 encoded signed code value.encode
in class EPPSignedCode
EPPEncodeException
- Error encoding the signed codepublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
encode
in interface EPPCodecComponent
encode
in class EPPSignedCode
aDocument
- a DOM Document to attach data to.EPPEncodeException
- Thrown if any errors prevent encoding.public byte[] encodeValueByteArray(boolean aIsChunked) throws EPPEncodeException
aIsChunked
- Chunk the Base64 output into 76 character blocks?String
EPPEncodeException
- Error encoding the Base64 signed code valuepublic byte[] encodeValueByteArray() throws EPPEncodeException
String
that is chunked into
76 character blocks.EPPEncodeException
- Error encoding the Base64 signed code valuepublic java.lang.String encodeValue(boolean aIsChunked) throws EPPEncodeException
aIsChunked
- Chunk the Base64 output into 76 character blocks?String
EPPEncodeException
- Error encoding the Base64 signed code valuepublic java.lang.String encodeValue() throws EPPEncodeException
String
that is chunked into
76 character blocks.EPPEncodeException
- Error encoding the Base64 signed code valuepublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPEncodedSignedCodeValue
.clone
in interface EPPCodecComponent
clone
in class EPPSignedCode
EPPEncodedSignedCodeValue
java.lang.CloneNotSupportedException
- standard Object.clone exception