Class DOMKeyValue<K extends java.security.PublicKey>

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

    public abstract class DOMKeyValue<K extends java.security.PublicKey>
    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 Description
      DOMKeyValue​(K key)  
      DOMKeyValue​(org.w3c.dom.Element kvtElem)
      Creates a DOMKeyValue from an element.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.math.BigInteger decode​(org.w3c.dom.Element elem)  
      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​(K 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
      • decode

        public static java.math.BigInteger decode​(org.w3c.dom.Element elem)
                                           throws javax.xml.crypto.MarshalException
        Throws:
        javax.xml.crypto.MarshalException
      • hashCode

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