Interface Certificate


public interface Certificate
Represents mTLS certificate.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets certificate subject DN.
    Gets certificate subject DN map.
    Gets certificate 'x5t' thumbprint which is a base64url-encoded SHA-1 thumbprint (a.k.a. digest) of the DER encoding of an X.509 certificate.
  • Method Details

    • getThumbprint

      String getThumbprint() throws InvalidCertificateException
      Gets certificate 'x5t' thumbprint which is a base64url-encoded SHA-1 thumbprint (a.k.a. digest) of the DER encoding of an X.509 certificate.
      Returns:
      the thumbprint
      Throws:
      InvalidCertificateException - if error occurs while encoding X509 certificate or when a particular cryptographic algorithm is not supported
      See Also:
    • getSubjectDN

      String getSubjectDN()
      Gets certificate subject DN.
      Returns:
      the subject DN string without blanks
    • getSubjectDNMap

      Map<String,String> getSubjectDNMap()
      Gets certificate subject DN map.
      Returns:
      the subject DN map with entries such as ["CN"]["common name"], or ["OU"]["1234-5678"]