Class X509ThumbPrintIdentifier

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

public class X509ThumbPrintIdentifier extends KeyIdentifier
Author:
Abhijit Das
  • Constructor Details

    • X509ThumbPrintIdentifier

      public X509ThumbPrintIdentifier(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
    • X509ThumbPrintIdentifier

      public X509ThumbPrintIdentifier(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
    • getThumbPrintIdentifier

      public static byte[] getThumbPrintIdentifier(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()