Package com.authlete.jaxrs
Class HeaderClientCertificateClientCertExtractor
- java.lang.Object
-
- com.authlete.jaxrs.HeaderClientCertificateExtractor
-
- com.authlete.jaxrs.HeaderClientCertificateClientCertExtractor
-
- All Implemented Interfaces:
ClientCertificateExtractor
public class HeaderClientCertificateClientCertExtractor extends HeaderClientCertificateExtractor
A client certificate extractor for theClient-Cert
andClient-Cert-Chain
headers.- Since:
- 2.34
-
-
Constructor Summary
Constructors Constructor Description HeaderClientCertificateClientCertExtractor()
-
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.List<String>
getClientCertificateChainHeaders()
Get the headers that will be checked for the client certificate chain.HeaderClientCertificateExtractor
setClientCertificateChainHeaders(List<String> clientCertificateChainHeaders)
Set the headers that will be checked for the client certificate chain.
-
-
-
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
- Overrides:
extractClientCertificateChain
in classHeaderClientCertificateExtractor
- 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.
-
getClientCertificateChainHeaders
public List<String> getClientCertificateChainHeaders()
Description copied from class:HeaderClientCertificateExtractor
Get the headers that will be checked for the client certificate chain. The first element in the list is header for the client's own certificate. Each additional header in the list will be checked and added to the resulting output.- Overrides:
getClientCertificateChainHeaders
in classHeaderClientCertificateExtractor
-
setClientCertificateChainHeaders
public HeaderClientCertificateExtractor setClientCertificateChainHeaders(List<String> clientCertificateChainHeaders)
Description copied from class:HeaderClientCertificateExtractor
Set the headers that will be checked for the client certificate chain. The first element in the list is header for the client's own certificate. Each additional header in the list will be checked and added to the resulting output.- Overrides:
setClientCertificateChainHeaders
in classHeaderClientCertificateExtractor
-
-