Class XMLX509Digest

All Implemented Interfaces:
XMLX509DataContent

public class XMLX509Digest extends Signature11ElementProxy implements XMLX509DataContent
Provides content model support for the dsig11:X509Digest element.
  • Constructor Details

  • Method Details

    • getAlgorithmAttr

      public Attr getAlgorithmAttr()
      Method getAlgorithmAttr
      Returns:
      the Algorithm attribute
    • getAlgorithm

      public String getAlgorithm()
      Method getAlgorithm
      Returns:
      Algorithm string
    • getDigestBytes

      public byte[] getDigestBytes() throws XMLSecurityException
      Method getDigestBytes
      Returns:
      the digestbytes
      Throws:
      XMLSecurityException
    • getDigestBytesFromCert

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

      public 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.