Class DOMCryptoBinary

  • All Implemented Interfaces:
    javax.xml.crypto.XMLStructure

    public final class DOMCryptoBinary
    extends DOMStructure
    A DOM-based representation of the XML CryptoBinary simple type as defined in the W3C specification for XML-Signature Syntax and Processing. The XML Schema Definition is defined as: <simpleType name="CryptoBinary"> <restriction base="base64Binary"> </restriction> </simpleType>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.math.BigInteger bigNum  
      private java.lang.String value  
    • Constructor Summary

      Constructors 
      Constructor Description
      DOMCryptoBinary​(java.math.BigInteger bigNum)
      Create a DOMCryptoBinary instance from the specified BigInteger
      DOMCryptoBinary​(org.w3c.dom.Node cbNode)
      Creates a DOMCryptoBinary from a node.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.math.BigInteger getBigNum()
      Returns the BigInteger that this object contains.
      void marshal​(org.w3c.dom.Node parent, java.lang.String prefix, javax.xml.crypto.dom.DOMCryptoContext context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • bigNum

        private final java.math.BigInteger bigNum
      • value

        private final java.lang.String value
    • Constructor Detail

      • DOMCryptoBinary

        public DOMCryptoBinary​(java.math.BigInteger bigNum)
        Create a DOMCryptoBinary instance from the specified BigInteger
        Parameters:
        bigNum - the arbitrary-length integer
        Throws:
        java.lang.NullPointerException - if bigNum is null
      • DOMCryptoBinary

        public DOMCryptoBinary​(org.w3c.dom.Node cbNode)
                        throws javax.xml.crypto.MarshalException
        Creates a DOMCryptoBinary from a node.
        Parameters:
        cbNode - a CryptoBinary text node
        Throws:
        javax.xml.crypto.MarshalException - if value cannot be decoded (invalid format)
    • Method Detail

      • getBigNum

        public java.math.BigInteger getBigNum()
        Returns the BigInteger that this object contains.
        Returns:
        the BigInteger that this object contains
      • marshal

        public void marshal​(org.w3c.dom.Node parent,
                            java.lang.String prefix,
                            javax.xml.crypto.dom.DOMCryptoContext context)
                     throws javax.xml.crypto.MarshalException
        Specified by:
        marshal in class DOMStructure
        Throws:
        javax.xml.crypto.MarshalException