Package org.codelibs.fess.sso.spnego
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the filter name for this SPNEGO configuration.getInitParameter(String name) Gets the initialization parameter value for the given parameter name.Gets the names of all initialization parameters.protected StringgetProperty(String key, String defaultValue) Gets a system property value with a default fallback.protected StringgetResourcePath(String path) Resolves a resource path to an absolute file path.jakarta.servlet.ServletContextGets the servlet context.
-
Constructor Details
-
SpnegoConfig
public SpnegoConfig()Constructs a new SPNEGO filter configuration.
-
-
Method Details
-
getFilterName
Gets the filter name for this SPNEGO configuration.- Specified by:
getFilterNamein interfacejakarta.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:
getServletContextin interfacejakarta.servlet.FilterConfig- Returns:
- Never returns, always throws UnsupportedOperationException
- Throws:
UnsupportedOperationException- Always thrown as this operation is not supported
-
getInitParameter
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:
getInitParameterin interfacejakarta.servlet.FilterConfig- Parameters:
name- The name of the initialization parameter- Returns:
- The parameter value, or null if not found
-
getProperty
Gets a system property value with a default fallback.- Parameters:
key- The property key to look updefaultValue- The default value to return if the property is not set- Returns:
- The property value or the default value
-
getResourcePath
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
Gets the names of all initialization parameters. This operation is not supported.- Specified by:
getInitParameterNamesin interfacejakarta.servlet.FilterConfig- Returns:
- Never returns, always throws UnsupportedOperationException
- Throws:
UnsupportedOperationException- Always thrown as this operation is not supported
-