Package com.authlete.jaxrs
Class HttpsRequestClientCertificateExtractor
- java.lang.Object
-
- com.authlete.jaxrs.HttpsRequestClientCertificateExtractor
-
- All Implemented Interfaces:
ClientCertificateExtractor
public class HttpsRequestClientCertificateExtractor extends Object implements ClientCertificateExtractor
Extracts the client certificate from the incoming HTTPS request using thejavax.servlet.request.X509Certificate
attribute.- Since:
- 2.8
- Author:
- jricher
-
-
Constructor Summary
Constructors Constructor Description HttpsRequestClientCertificateExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
extractClientCertificateChain(javax.servlet.http.HttpServletRequest request)
Search the given request for a client's certificate and return it as a string of certificates in PEM format.
-
-
-
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 interfaceClientCertificateExtractor
- 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.
-
-