Class EPPEncodedSignedMark
- java.lang.Object
-
- com.verisign.epp.codec.signedMark.EPPSignedMark
-
- com.verisign.epp.codec.signedMark.EPPEncodedSignedMark
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPEncodedSignedMark extends EPPSignedMark
Class for the encoded signed mark, which contains the mark (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 theXMLSignatureitself. This class extendsEPPSignedMark.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_ENCODED_SIGNED_MARK_LOCALNAMEConstant for the mark local name for encoded signedMark elementstatic java.lang.StringELM_ENCODED_SIGNED_MARK_NAMEConstant for the mark tag for signedMark element-
Fields inherited from class com.verisign.epp.codec.signedMark.EPPSignedMark
ELM_SIGNED_MARK_LOCALNAME, ELM_SIGNED_MARK_NAME, NS, NS_PREFIX, NS_SCHEMA
-
-
Constructor Summary
Constructors Constructor Description EPPEncodedSignedMark()Create anEPPEncodedSignedMarkinstance.EPPEncodedSignedMark(byte[] aEncodedSignedMarkArray)Creates anEPPEncodedSignedMarkthat is initialized by decoding the inputbyte[].EPPEncodedSignedMark(EPPSignedMark aSignedMark)Construct Encoded SignMark object from SignMark object.EPPEncodedSignedMark(java.io.InputStream aSMD)Creates anEPPEncodedSignedMarkby 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 anEPPEncodedSignedMarkwith the id, issuer, not before date, not after date, and the mark attributes of the signed mark.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPEncodedSignedMark.voiddecode(org.w3c.dom.Element aElement)Decode theEPPSignedMarkcomponentbyte[]encode()Encode the signed mark to abyte[].org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Sets all this instance's data in the given XML document-
Methods inherited from class com.verisign.epp.codec.signedMark.EPPSignedMark
decode, equals, getAttrIdValue, getId, getIssuer, getLocalName, getMark, getNamespace, getNotAfter, getNotBefore, sign, sign, toString, validate, validate, validate
-
-
-
-
Field Detail
-
ELM_ENCODED_SIGNED_MARK_LOCALNAME
public static final java.lang.String ELM_ENCODED_SIGNED_MARK_LOCALNAME
Constant for the mark local name for encoded signedMark element- See Also:
- Constant Field Values
-
ELM_ENCODED_SIGNED_MARK_NAME
public static final java.lang.String ELM_ENCODED_SIGNED_MARK_NAME
Constant for the mark tag for signedMark element- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPEncodedSignedMark
public EPPEncodedSignedMark()
Create anEPPEncodedSignedMarkinstance.
-
EPPEncodedSignedMark
public EPPEncodedSignedMark(EPPSignedMark aSignedMark) throws EPPEncodeException, EPPDecodeException
Construct Encoded SignMark object from SignMark object.- Parameters:
aSignedMark- SignMark object- Throws:
EPPEncodeException- Error encoding the SignMarkbyte[].EPPDecodeException- Error decoding the encoded SignMarkbyte[].
-
EPPEncodedSignedMark
public EPPEncodedSignedMark(java.lang.String aId, EPPIssuer aIssuer, java.util.Date aNotBefore, java.util.Date aNotAfter, EPPMark aMark) throws EPPEncodeException, EPPDecodeExceptionCreate anEPPEncodedSignedMarkwith the id, issuer, not before date, not after date, and the mark attributes of the signed mark.- Parameters:
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 information- Throws:
EPPEncodeException- Thrown if any errors prevent encoding.EPPDecodeException- Error decoding the Issuer or Mark object.
-
EPPEncodedSignedMark
public EPPEncodedSignedMark(byte[] aEncodedSignedMarkArray) throws EPPDecodeExceptionCreates anEPPEncodedSignedMarkthat is initialized by decoding the inputbyte[].- Parameters:
aEncodedSignedMarkArray-byte[]to decode the attribute values- Throws:
EPPDecodeException- Error decoding the inputbyte[].
-
EPPEncodedSignedMark
public EPPEncodedSignedMark(java.io.InputStream aSMD) throws EPPDecodeExceptionCreates anEPPEncodedSignedMarkby 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-----".- Parameters:
aSMD-InputStreamcontaining a Signed Mark Data (SMD)- Throws:
EPPDecodeException- Error decoding the Signed Mark Data (SMD)
-
-
Method Detail
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPSignedMarkcomponent- Specified by:
decodein interfaceEPPCodecComponent- Overrides:
decodein classEPPSignedMark- Parameters:
aElement- Root element of theEPPSignedMark- Throws:
EPPDecodeException- Error decoding theEPPSignedMark
-
encode
public byte[] encode() throws EPPEncodeExceptionEncode the signed mark to abyte[].- Overrides:
encodein classEPPSignedMark- Returns:
- Encoded signed mark
- Throws:
EPPEncodeException- Error encoding the signed mark
-
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- Overrides:
encodein classEPPSignedMark- Parameters:
aDocument- a DOM Document to attach data to.- Returns:
- The root element of this component.
- Throws:
EPPEncodeException- Thrown if any errors prevent encoding.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPEncodedSignedMark.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPSignedMark- Returns:
- clone of
EPPEncodedSignedMark - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
-