Class X509SubjectKeyIdentifier

    • Constructor Detail

      • X509SubjectKeyIdentifier

        public X509SubjectKeyIdentifier​(Document doc)
                                 throws com.sun.xml.wss.XWSSecurityException
        Creates an "empty" KeyIdentifier element with default encoding type and default value type.
        Throws:
        com.sun.xml.wss.XWSSecurityException
      • X509SubjectKeyIdentifier

        public X509SubjectKeyIdentifier​(SOAPElement element)
                                 throws com.sun.xml.wss.XWSSecurityException
        Throws:
        com.sun.xml.wss.XWSSecurityException
    • Method Detail

      • getDecodedBase64EncodedValue

        public byte[] getDecodedBase64EncodedValue()
                                            throws com.sun.xml.wss.XWSSecurityException
        Throws:
        com.sun.xml.wss.XWSSecurityException
      • getSubjectKeyIdentifier

        public static byte[] getSubjectKeyIdentifier​(X509Certificate cert)
                                              throws com.sun.xml.wss.XWSSecurityException
        Returns:
        the SubjectKeyIdentifier from cert or null if cert does not contain one
        Throws:
        com.sun.xml.wss.XWSSecurityException