Class PKIHandler
java.lang.Object
org.codice.ddf.security.handler.pki.PKIHandler
- All Implemented Interfaces:
org.codice.ddf.security.handler.api.AuthenticationHandler
public class PKIHandler
extends Object
implements org.codice.ddf.security.handler.api.AuthenticationHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CrlCheckerprotected static final org.slf4j.Loggerprotected org.codice.ddf.security.OcspServiceprotected org.codice.ddf.security.handler.AuthenticationTokenFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.codice.ddf.security.handler.api.HandlerResultgetNormalizedToken(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, org.codice.ddf.platform.filter.SecurityFilterChain chain, boolean resolve) Handler implementing PKI authentication.org.codice.ddf.security.handler.api.HandlerResulthandleError(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, org.codice.ddf.platform.filter.SecurityFilterChain chain) voidsetOcspService(org.codice.ddf.security.OcspService ocspService) voidsetSecurityLogger(ddf.security.audit.SecurityLogger securityLogger) voidsetTokenFactory(org.codice.ddf.security.handler.AuthenticationTokenFactory factory)
-
Field Details
-
LOGGER
protected static final org.slf4j.Logger LOGGER -
tokenFactory
protected org.codice.ddf.security.handler.AuthenticationTokenFactory tokenFactory -
crlChecker
-
ocspService
protected org.codice.ddf.security.OcspService ocspService
-
-
Constructor Details
-
PKIHandler
public PKIHandler()
-
-
Method Details
-
getAuthenticationType
- Specified by:
getAuthenticationTypein interfaceorg.codice.ddf.security.handler.api.AuthenticationHandler
-
getNormalizedToken
public org.codice.ddf.security.handler.api.HandlerResult getNormalizedToken(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, org.codice.ddf.platform.filter.SecurityFilterChain chain, boolean resolve) Handler implementing PKI authentication. Returns theHandlerResultcontaining a BinarySecurityToken if the operation was successful.- Specified by:
getNormalizedTokenin interfaceorg.codice.ddf.security.handler.api.AuthenticationHandler- Parameters:
request- http request to obtain attributes from and to pass into any local filter chains requiredresponse- http response to return http responses or redirectschain- original filter chain (should not be called from your handler)resolve- flag with true implying that credentials should be obtained, false implying return if no credentials are found.- Returns:
- result of handling this request - status and optional tokens
-
handleError
public org.codice.ddf.security.handler.api.HandlerResult handleError(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, org.codice.ddf.platform.filter.SecurityFilterChain chain) - Specified by:
handleErrorin interfaceorg.codice.ddf.security.handler.api.AuthenticationHandler
-
setTokenFactory
public void setTokenFactory(org.codice.ddf.security.handler.AuthenticationTokenFactory factory) -
setOcspService
public void setOcspService(org.codice.ddf.security.OcspService ocspService) -
setSecurityLogger
public void setSecurityLogger(ddf.security.audit.SecurityLogger securityLogger)
-