public class EPPEncodedSignedMark extends EPPSignedMark
EPPMark
),
and additional elements associated with the signing of the mark like the
serial number of the signed mark, the expiration of the signed mark, and the
XMLSignature
itself. This class extends
EPPSignedMark
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_ENCODED_SIGNED_MARK_LOCALNAME
Constant for the mark local name for encoded signedMark element
|
static java.lang.String |
ELM_ENCODED_SIGNED_MARK_NAME
Constant for the mark tag for signedMark element
|
ELM_SIGNED_MARK_LOCALNAME, ELM_SIGNED_MARK_NAME, NS, NS_PREFIX, NS_SCHEMA
Constructor and Description |
---|
EPPEncodedSignedMark()
Create an
EPPEncodedSignedMark instance. |
EPPEncodedSignedMark(byte[] aEncodedSignedMarkArray)
Creates an
EPPEncodedSignedMark that is initialized by
decoding the input byte[] . |
EPPEncodedSignedMark(EPPSignedMark aSignedMark)
Construct Encoded SignMark object from SignMark object.
|
EPPEncodedSignedMark(java.io.InputStream aSMD)
Creates an
EPPEncodedSignedMark by decoding the a Signed Mark
Data (SMD) that is in a PEM-like input stream that includes the encoded
signed mark with a leading line "-----BEGIN ENCODED SMD-----" and
a trailing "-----END ENCODED SMD-----". |
EPPEncodedSignedMark(java.lang.String aId,
EPPIssuer aIssuer,
java.util.Date aNotBefore,
java.util.Date aNotAfter,
EPPMark aMark)
Create an
EPPEncodedSignedMark with the id, issuer, not before
date, not after date, and the mark attributes of the signed mark. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPEncodedSignedMark . |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPSignedMark component |
byte[] |
encode()
Encode the signed mark to a
byte[] . |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Sets all this instance's data in the given XML document
|
decode, equals, getAttrIdValue, getId, getIssuer, getLocalName, getMark, getNamespace, getNotAfter, getNotBefore, sign, sign, toString, validate, validate, validate
public static final java.lang.String ELM_ENCODED_SIGNED_MARK_LOCALNAME
public static final java.lang.String ELM_ENCODED_SIGNED_MARK_NAME
public EPPEncodedSignedMark()
EPPEncodedSignedMark
instance.public EPPEncodedSignedMark(EPPSignedMark aSignedMark) throws EPPEncodeException, EPPDecodeException
aSignedMark
- SignMark objectEPPEncodeException
- Error encoding the SignMark byte[]
.EPPDecodeException
- Error decoding the encoded SignMark byte[]
.public EPPEncodedSignedMark(java.lang.String aId, EPPIssuer aIssuer, java.util.Date aNotBefore, java.util.Date aNotAfter, EPPMark aMark) throws EPPEncodeException, EPPDecodeException
EPPEncodedSignedMark
with the id, issuer, not before
date, not after date, and the mark attributes of the signed mark.aId
- Identifier of signed markaIssuer
- Signed mark issuer informationaNotBefore
- Date and time that the signed mark was created.aNotAfter
- Date and time that the signed mark expires.aMark
- Mark informationEPPEncodeException
- Thrown if any errors prevent encoding.EPPDecodeException
- Error decoding the Issuer or Mark object.public EPPEncodedSignedMark(byte[] aEncodedSignedMarkArray) throws EPPDecodeException
EPPEncodedSignedMark
that is initialized by
decoding the input byte[]
.aEncodedSignedMarkArray
- byte[]
to decode the attribute valuesEPPDecodeException
- Error decoding the input byte[]
.public EPPEncodedSignedMark(java.io.InputStream aSMD) throws EPPDecodeException
EPPEncodedSignedMark
by decoding the a Signed Mark
Data (SMD) that is in a PEM-like input stream that includes the encoded
signed mark with a leading line "-----BEGIN ENCODED SMD-----" and
a trailing "-----END ENCODED SMD-----".aSMD
- InputStream
containing a Signed Mark Data (SMD)EPPDecodeException
- Error decoding the Signed Mark Data (SMD)public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPSignedMark
componentdecode
in interface EPPCodecComponent
decode
in class EPPSignedMark
aElement
- Root element of the EPPSignedMark
EPPDecodeException
- Error decoding the EPPSignedMark
public byte[] encode() throws EPPEncodeException
byte[]
.encode
in class EPPSignedMark
EPPEncodeException
- Error encoding the signed markpublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
encode
in interface EPPCodecComponent
encode
in class EPPSignedMark
aDocument
- a DOM Document to attach data to.EPPEncodeException
- Thrown if any errors prevent encoding.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPEncodedSignedMark
.clone
in interface EPPCodecComponent
clone
in class EPPSignedMark
EPPEncodedSignedMark
java.lang.CloneNotSupportedException
- standard Object.clone exceptionCopyright © VeriSign Inc. All Rights Reserved.