Class XMLX509Digest

    • Constructor Detail

      • XMLX509Digest

        public XMLX509Digest​(org.w3c.dom.Element element,
                             java.lang.String baseURI)
                      throws XMLSecurityException
        Constructor XMLX509Digest
        Parameters:
        element -
        baseURI -
        Throws:
        XMLSecurityException
      • XMLX509Digest

        public XMLX509Digest​(org.w3c.dom.Document doc,
                             byte[] digestBytes,
                             java.lang.String algorithmURI)
        Constructor XMLX509Digest
        Parameters:
        doc -
        digestBytes -
        algorithmURI -
      • XMLX509Digest

        public XMLX509Digest​(org.w3c.dom.Document doc,
                             java.security.cert.X509Certificate x509certificate,
                             java.lang.String algorithmURI)
                      throws XMLSecurityException
        Constructor XMLX509Digest
        Parameters:
        doc -
        x509certificate -
        algorithmURI -
        Throws:
        XMLSecurityException
    • Method Detail

      • getAlgorithmAttr

        public org.w3c.dom.Attr getAlgorithmAttr()
        Method getAlgorithmAttr
        Returns:
        the Algorithm attribute
      • getAlgorithm

        public java.lang.String getAlgorithm()
        Method getAlgorithm
        Returns:
        Algorithm string
      • getDigestBytesFromCert

        public static byte[] getDigestBytesFromCert​(java.security.cert.X509Certificate cert,
                                                    java.lang.String algorithmURI)
                                             throws XMLSecurityException
        Method getDigestBytesFromCert
        Parameters:
        cert -
        algorithmURI -
        Returns:
        digest bytes from the given certificate
        Throws:
        XMLSecurityException
      • getBaseLocalName

        public java.lang.String getBaseLocalName()
        Returns the localname of the Elements of the sub-class.
        Specified by:
        getBaseLocalName in class ElementProxy
        Returns:
        the localname of the Elements of the sub-class.