org.jcp.xml.dsig.internal.dom

Class DOMKeyValue

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


    public abstract class DOMKeyValue
    extends DOMStructure
    implements javax.xml.crypto.dsig.keyinfo.KeyValue
    DOM-based implementation of KeyValue.
    • Field Summary

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

        DSA_TYPE, RSA_TYPE
    • Constructor Summary

      Constructors 
      Constructor and Description
      DOMKeyValue(org.w3c.dom.Element kvtElem)
      Creates a DOMKeyValue from an element.
      DOMKeyValue(java.security.PublicKey key) 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object obj) 
      java.security.PublicKey getPublicKey() 
      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

      • DOMKeyValue

        public DOMKeyValue(java.security.PublicKey key)
                    throws java.security.KeyException
        Throws:
        java.security.KeyException
      • DOMKeyValue

        public DOMKeyValue(org.w3c.dom.Element kvtElem)
                    throws javax.xml.crypto.MarshalException
        Creates a DOMKeyValue from an element.
        Parameters:
        kvtElem - a KeyValue child element
        Throws:
        javax.xml.crypto.MarshalException
    • Method Detail

      • getPublicKey

        public java.security.PublicKey getPublicKey()
                                             throws java.security.KeyException
        Specified by:
        getPublicKey in interface javax.xml.crypto.dsig.keyinfo.KeyValue
        Throws:
        java.security.KeyException
      • 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 obj)
        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.