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

    Fields
    Modifier and Type
    Field
    Description
    protected CrlChecker
     
    protected static final org.slf4j.Logger
     
    protected org.codice.ddf.security.OcspService
     
    protected org.codice.ddf.security.handler.AuthenticationTokenFactory
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    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.
    org.codice.ddf.security.handler.api.HandlerResult
    handleError(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, org.codice.ddf.platform.filter.SecurityFilterChain chain)
     
    void
    setOcspService(org.codice.ddf.security.OcspService ocspService)
     
    void
    setSecurityLogger(ddf.security.audit.SecurityLogger securityLogger)
     
    void
    setTokenFactory(org.codice.ddf.security.handler.AuthenticationTokenFactory factory)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOGGER

      protected static final org.slf4j.Logger LOGGER
    • tokenFactory

      protected org.codice.ddf.security.handler.AuthenticationTokenFactory tokenFactory
    • crlChecker

      protected CrlChecker crlChecker
    • ocspService

      protected org.codice.ddf.security.OcspService ocspService
  • Constructor Details

    • PKIHandler

      public PKIHandler()
  • Method Details

    • getAuthenticationType

      public String getAuthenticationType()
      Specified by:
      getAuthenticationType in interface org.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 the HandlerResult containing a BinarySecurityToken if the operation was successful.
      Specified by:
      getNormalizedToken in interface org.codice.ddf.security.handler.api.AuthenticationHandler
      Parameters:
      request - http request to obtain attributes from and to pass into any local filter chains required
      response - http response to return http responses or redirects
      chain - 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:
      handleError in interface org.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)