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
ConstructorsConstructorDescriptionOidcHandler(org.codice.ddf.security.handler.api.OidcHandlerConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionorg.codice.ddf.security.handler.api.OidcHandlerConfigurationorg.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 OIDC authentication.org.codice.ddf.security.handler.api.HandlerResulthandleError(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, org.codice.ddf.platform.filter.SecurityFilterChain chain)
-
Constructor Details
-
OidcHandler
public OidcHandler(org.codice.ddf.security.handler.api.OidcHandlerConfiguration configuration)
-
-
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) throws org.codice.ddf.platform.filter.AuthenticationFailureException Handler implementing OIDC authentication.- 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
- 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:
handleErrorin interfaceorg.codice.ddf.security.handler.api.AuthenticationHandler
-
getConfiguration
public org.codice.ddf.security.handler.api.OidcHandlerConfiguration getConfiguration()
-