Class X509SubjectKeyIdentifier

All Implemented Interfaces:
javax.xml.soap.Node, javax.xml.soap.SOAPElement, Element, Node

public class X509SubjectKeyIdentifier extends KeyIdentifier
Author:
Vishal Mahajan, Manveen Kaur
  • Constructor Details

    • 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(javax.xml.soap.SOAPElement element) throws com.sun.xml.wss.XWSSecurityException
      Throws:
      com.sun.xml.wss.XWSSecurityException
  • Method Details

    • 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
    • setCertificate

      public void setCertificate(X509Certificate cert)
    • getCertificate

      public X509Certificate getCertificate()