Package com.authlete.jaxrs.util
Class CertificateUtils
- java.lang.Object
-
- com.authlete.jaxrs.util.CertificateUtils
-
public class CertificateUtils extends Object
Utilities for certificates.- Since:
- 2.32
-
-
Constructor Summary
Constructors Constructor Description CertificateUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
extract(List<ClientCertificateExtractor> extractors, javax.servlet.http.HttpServletRequest request)
Extract a client certificate from an HTTP request using the given list ofClientCertificateExtractor
implementations.static String
extract(javax.servlet.http.HttpServletRequest request)
Extract a client certificate from an HTTP request using known implementations ofClientCertificateExtractor
.static String[]
extractChain(List<ClientCertificateExtractor> extractors, javax.servlet.http.HttpServletRequest request)
Extract a client certificate chain from an HTTP request using the given list ofClientCertificateExtractor
implementations.static String[]
extractChain(javax.servlet.http.HttpServletRequest request)
Extract a client certificate chain from an HTTP request using known implementations ofClientCertificateExtractor
.
-
-
-
Method Detail
-
extractChain
public static String[] extractChain(javax.servlet.http.HttpServletRequest request)
Extract a client certificate chain from an HTTP request using known implementations ofClientCertificateExtractor
.- Parameters:
request
- An HTTP request.- Returns:
- A client certificate chain. If a non-null value is returned, the first element is a client certificate.
-
extractChain
public static String[] extractChain(List<ClientCertificateExtractor> extractors, javax.servlet.http.HttpServletRequest request)
Extract a client certificate chain from an HTTP request using the given list ofClientCertificateExtractor
implementations.- Parameters:
extractors
- A list ofClientCertificateExtractor
implementations.request
- An HTTP request.- Returns:
- A client certificate chain. If a non-null value is returned, the first element is a client certificate.
-
extract
public static String extract(javax.servlet.http.HttpServletRequest request)
Extract a client certificate from an HTTP request using known implementations ofClientCertificateExtractor
.- Parameters:
request
- An HTTP request.- Returns:
- A client certificate.
-
extract
public static String extract(List<ClientCertificateExtractor> extractors, javax.servlet.http.HttpServletRequest request)
Extract a client certificate from an HTTP request using the given list ofClientCertificateExtractor
implementations.- Parameters:
extractors
- A list ofClientCertificateExtractor
implementations.request
- An HTTP request.- Returns:
- A client certificate.
-
-