Class 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 the XMLSignature itself. This class extends EPPSignedMark.
    See Also:
    Serialized Form
    • 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 an EPPEncodedSignedMark instance.
      • EPPEncodedSignedMark

        public EPPEncodedSignedMark​(java.lang.String aId,
                                    EPPIssuer aIssuer,
                                    java.util.Date aNotBefore,
                                    java.util.Date aNotAfter,
                                    EPPMark aMark)
                             throws EPPEncodeException,
                                    EPPDecodeException
        Create an EPPEncodedSignedMark with the id, issuer, not before date, not after date, and the mark attributes of the signed mark.
        Parameters:
        aId - Identifier of signed mark
        aIssuer - Signed mark issuer information
        aNotBefore - 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 EPPDecodeException
        Creates an EPPEncodedSignedMark that is initialized by decoding the input byte[].
        Parameters:
        aEncodedSignedMarkArray - byte[] to decode the attribute values
        Throws:
        EPPDecodeException - Error decoding the input byte[].
      • EPPEncodedSignedMark

        public EPPEncodedSignedMark​(java.io.InputStream aSMD)
                             throws EPPDecodeException
        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-----".
        Parameters:
        aSMD - InputStream containing a Signed Mark Data (SMD)
        Throws:
        EPPDecodeException - Error decoding the Signed Mark Data (SMD)
    • Method Detail

      • encode

        public org.w3c.dom.Element encode​(org.w3c.dom.Document aDocument)
                                   throws EPPEncodeException
        Sets all this instance's data in the given XML document
        Specified by:
        encode in interface EPPCodecComponent
        Overrides:
        encode in class EPPSignedMark
        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.CloneNotSupportedException
        Clone EPPEncodedSignedMark.
        Specified by:
        clone in interface EPPCodecComponent
        Overrides:
        clone in class EPPSignedMark
        Returns:
        clone of EPPEncodedSignedMark
        Throws:
        java.lang.CloneNotSupportedException - standard Object.clone exception