Class OidcHandler

java.lang.Object
org.codice.ddf.security.handler.oidc.OidcHandler
All Implemented Interfaces:
org.codice.ddf.security.handler.api.AuthenticationHandler

public class OidcHandler extends Object implements org.codice.ddf.security.handler.api.AuthenticationHandler
  • Constructor Summary

    Constructors
    Constructor
    Description
    OidcHandler(org.codice.ddf.security.handler.api.OidcHandlerConfiguration configuration)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    org.codice.ddf.security.handler.api.OidcHandlerConfiguration
     
    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 OIDC authentication.
    org.codice.ddf.security.handler.api.HandlerResult
    handleError(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, org.codice.ddf.platform.filter.SecurityFilterChain chain)
     

    Methods inherited from class java.lang.Object

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

    • OidcHandler

      public OidcHandler(org.codice.ddf.security.handler.api.OidcHandlerConfiguration configuration)
  • 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) throws org.codice.ddf.platform.filter.AuthenticationFailureException
      Handler implementing OIDC authentication.
      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
      Throws:
      org.codice.ddf.platform.filter.AuthenticationFailureException
    • 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
    • getConfiguration

      public org.codice.ddf.security.handler.api.OidcHandlerConfiguration getConfiguration()