Class IdpHandler

java.lang.Object
org.codice.ddf.security.idp.client.IdpHandler
All Implemented Interfaces:
org.codice.ddf.security.handler.api.AuthenticationHandler

public class IdpHandler extends Object implements org.codice.ddf.security.handler.api.AuthenticationHandler
Handler for SAML 2.0 IdP based authentication. Unauthenticated clients will be redirected to the configured IdP for authentication.
  • Field Details

  • Constructor Details

    • IdpHandler

      public IdpHandler(ddf.security.samlp.impl.SimpleSign simpleSign, IdpMetadata metadata, ddf.security.samlp.impl.RelayStates<String> relayStates) throws IOException
      Throws:
      IOException
  • 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 SAML 2.0 IdP authentication. Supports HTTP-Redirect and HTTP-POST bindings.
      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) throws org.codice.ddf.platform.filter.AuthenticationFailureException
      Specified by:
      handleError in interface org.codice.ddf.security.handler.api.AuthenticationHandler
      Throws:
      org.codice.ddf.platform.filter.AuthenticationFailureException
    • setUserAgentCheck

      public void setUserAgentCheck(boolean userAgentCheck)
    • getAuthContextClasses

      public List<String> getAuthContextClasses()
    • setAuthContextClasses

      public void setAuthContextClasses(List<String> authContextClasses)
    • setSamlSecurity

      public void setSamlSecurity(org.codice.ddf.security.jaxrs.SamlSecurity samlSecurity)
    • setSecurityLogger

      public void setSecurityLogger(ddf.security.audit.SecurityLogger securityLogger)