Class XMLX509SKI

    • Field Detail

      • LOG

        private static final org.slf4j.Logger LOG
      • SKI_OID

        public static final java.lang.String SKI_OID
        SubjectKeyIdentifier (id-ce-subjectKeyIdentifier) (2.5.29.14): This extension identifies the public key being certified. It enables distinct keys used by the same subject to be differentiated (e.g., as key updating occurs).

        A key identifier shall be unique with respect to all key identifiers for the subject with which it is used. This extension is always non-critical.
        See Also:
        Constant Field Values
    • Constructor Detail

      • XMLX509SKI

        public XMLX509SKI​(org.w3c.dom.Document doc,
                          byte[] skiBytes)
        Constructor X509SKI
        Parameters:
        doc -
        skiBytes -
      • XMLX509SKI

        public XMLX509SKI​(org.w3c.dom.Document doc,
                          java.security.cert.X509Certificate x509certificate)
                   throws XMLSecurityException
        Constructor XMLX509SKI
        Parameters:
        doc -
        x509certificate -
        Throws:
        XMLSecurityException
      • XMLX509SKI

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

      • getSKIBytesFromCert

        public static byte[] getSKIBytesFromCert​(java.security.cert.X509Certificate cert)
                                          throws XMLSecurityException
        Method getSKIBytesFromCert
        Parameters:
        cert -
        Returns:
        ski bytes from the given certificate
        Throws:
        XMLSecurityException
        See Also:
        X509Extension.getExtensionValue(java.lang.String)
      • 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
      • 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.