org.jcp.xml.dsig.internal.dom

Class DOMX509Data

  • All Implemented Interfaces:
    javax.xml.crypto.dsig.keyinfo.X509Data, javax.xml.crypto.XMLStructure


    public final class DOMX509Data
    extends DOMStructure
    implements javax.xml.crypto.dsig.keyinfo.X509Data
    DOM-based implementation of X509Data.
    • Field Summary

      • Fields inherited from interface javax.xml.crypto.dsig.keyinfo.X509Data

        RAW_X509_CERTIFICATE_TYPE, TYPE
    • Constructor Summary

      Constructors 
      Constructor and Description
      DOMX509Data(org.w3c.dom.Element xdElem)
      Creates a DOMX509Data from an element.
      DOMX509Data(java.util.List<?> content)
      Creates a DOMX509Data.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object o) 
      java.util.List getContent() 
      int hashCode() 
      void marshal(org.w3c.dom.Node parent, java.lang.String dsPrefix, javax.xml.crypto.dom.DOMCryptoContext context) 
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.xml.crypto.XMLStructure

        isFeatureSupported
    • Constructor Detail

      • DOMX509Data

        public DOMX509Data(java.util.List<?> content)
        Creates a DOMX509Data.
        Parameters:
        content - a list of one or more X.509 data types. Valid types are String (subject names), byte[] (subject key ids), X509Certificate, X509CRL, or javax.xml.dsig.XMLStructure (X509IssuerSerial objects or elements from an external namespace). The list is defensively copied to protect against subsequent modification.
        Throws:
        java.lang.NullPointerException - if content is null
        java.lang.IllegalArgumentException - if content is empty
        java.lang.ClassCastException - if content contains any entries that are not of one of the valid types mentioned above
      • DOMX509Data

        public DOMX509Data(org.w3c.dom.Element xdElem)
                    throws javax.xml.crypto.MarshalException
        Creates a DOMX509Data from an element.
        Parameters:
        xdElem - an X509Data element
        Throws:
        javax.xml.crypto.MarshalException - if there is an error while unmarshalling
    • Method Detail

      • getContent

        public java.util.List getContent()
        Specified by:
        getContent in interface javax.xml.crypto.dsig.keyinfo.X509Data
      • marshal

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

        public boolean equals(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object

© Portions Copyright 2003, 2014 IBM Corporation. All rights reserved.
© Portions Copyright 2003, 2014 Oracle and/or its affiliates. All rights reserved.