Package org.keycloak.services.x509
Class AbstractClientCertificateFromHttpHeadersLookup
- java.lang.Object
- 
- org.keycloak.services.x509.AbstractClientCertificateFromHttpHeadersLookup
 
- 
- All Implemented Interfaces:
- Provider,- X509ClientCertificateLookup
 - Direct Known Subclasses:
- ApacheProxySslClientCertificateLookup,- HaProxySslClientCertificateLookup,- NginxProxySslClientCertificateLookup,- NginxProxyTrustedClientCertificateLookup
 
 public abstract class AbstractClientCertificateFromHttpHeadersLookup extends Object implements X509ClientCertificateLookup - Since:
- 3/29/2017
- Version:
- $Revision: 1 $
- Author:
- Peter Nalyvayko
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected intcertificateChainLengthprotected static org.jboss.logging.Loggerloggerprotected StringsslCertChainHttpHeaderPrefixprotected StringsslClientCertHttpHeader
 - 
Constructor SummaryConstructors Constructor Description AbstractClientCertificateFromHttpHeadersLookup(String sslCientCertHttpHeader, String sslCertChainHttpHeaderPrefix, int certificateChainLength)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()protected abstract X509CertificatedecodeCertificateFromPem(String pem)X509Certificate[]getCertificateChain(HttpRequest httpRequest)Returns a client certificate, and optionally any certificates in the certificate chain.protected X509CertificategetCertificateFromHttpHeader(HttpRequest request, String httpHeader)
 
- 
- 
- 
Method Detail- 
decodeCertificateFromPemprotected abstract X509Certificate decodeCertificateFromPem(String pem) throws PemException - Throws:
- PemException
 
 - 
getCertificateFromHttpHeaderprotected X509Certificate getCertificateFromHttpHeader(HttpRequest request, String httpHeader) throws GeneralSecurityException - Throws:
- GeneralSecurityException
 
 - 
getCertificateChainpublic X509Certificate[] getCertificateChain(HttpRequest httpRequest) throws GeneralSecurityException Description copied from interface:X509ClientCertificateLookupReturns a client certificate, and optionally any certificates in the certificate chain.- Specified by:
- getCertificateChainin interface- X509ClientCertificateLookup
- Returns:
- Throws:
- GeneralSecurityException
 
 
- 
 
-