Class HttpsRequestClientCertificateExtractor

  • All Implemented Interfaces:
    ClientCertificateExtractor

    public class HttpsRequestClientCertificateExtractor
    extends Object
    implements ClientCertificateExtractor
    Extracts the client certificate from the incoming HTTPS request using the javax.servlet.request.X509Certificate attribute.
    Since:
    2.8
    Author:
    jricher
    • Constructor Detail

      • HttpsRequestClientCertificateExtractor

        public HttpsRequestClientCertificateExtractor()
    • Method Detail

      • extractClientCertificateChain

        public String[] extractClientCertificateChain​(javax.servlet.http.HttpServletRequest request)
        Description copied from interface: ClientCertificateExtractor
        Search the given request for a client's certificate and return it as a string of certificates in PEM format.
        Specified by:
        extractClientCertificateChain in interface ClientCertificateExtractor
        Parameters:
        request - The incoming HTTP request to search.
        Returns:
        The client's MTLS certificate chain. All certificates are in PEM format, the first certificate is the client's own certificate.