Class SpnegoAuthenticator.SpnegoConfig

java.lang.Object
org.codelibs.fess.sso.spnego.SpnegoAuthenticator.SpnegoConfig
All Implemented Interfaces:
jakarta.servlet.FilterConfig
Enclosing class:
SpnegoAuthenticator

protected static class SpnegoAuthenticator.SpnegoConfig extends Object implements jakarta.servlet.FilterConfig
SPNEGO filter configuration implementation. This inner class provides configuration parameters for the SPNEGO filter, mapping system properties to SPNEGO configuration values. It handles various authentication settings including Kerberos configuration, authentication modules, and security options.
  • Constructor Details

    • SpnegoConfig

      public SpnegoConfig()
      Constructs a new SPNEGO filter configuration.
  • Method Details

    • getFilterName

      public String getFilterName()
      Gets the filter name for this SPNEGO configuration.
      Specified by:
      getFilterName in interface jakarta.servlet.FilterConfig
      Returns:
      The fully qualified class name of SpnegoAuthenticator
    • getServletContext

      public jakarta.servlet.ServletContext getServletContext()
      Gets the servlet context. This operation is not supported.
      Specified by:
      getServletContext in interface jakarta.servlet.FilterConfig
      Returns:
      Never returns, always throws UnsupportedOperationException
      Throws:
      UnsupportedOperationException - Always thrown as this operation is not supported
    • getInitParameter

      public String getInitParameter(String name)
      Gets the initialization parameter value for the given parameter name. This method maps SPNEGO configuration parameter names to their corresponding values from system properties or default values. It handles various authentication and security settings for SPNEGO.
      Specified by:
      getInitParameter in interface jakarta.servlet.FilterConfig
      Parameters:
      name - The name of the initialization parameter
      Returns:
      The parameter value, or null if not found
    • getProperty

      protected String getProperty(String key, String defaultValue)
      Gets a system property value with a default fallback.
      Parameters:
      key - The property key to look up
      defaultValue - The default value to return if the property is not set
      Returns:
      The property value or the default value
    • getResourcePath

      protected String getResourcePath(String path)
      Resolves a resource path to an absolute file path.
      Parameters:
      path - The resource path to resolve
      Returns:
      The resolved absolute file path of the resource
      Throws:
      SsoLoginException - if the file cannot be found
    • getInitParameterNames

      public Enumeration<String> getInitParameterNames()
      Gets the names of all initialization parameters. This operation is not supported.
      Specified by:
      getInitParameterNames in interface jakarta.servlet.FilterConfig
      Returns:
      Never returns, always throws UnsupportedOperationException
      Throws:
      UnsupportedOperationException - Always thrown as this operation is not supported