Package net.sourceforge.spnego
Class SpnegoFilterConfig
- java.lang.Object
-
- net.sourceforge.spnego.SpnegoFilterConfig
-
public final class SpnegoFilterConfig extends Object
Class that applies/enforces web.xml init params.These properties are set in the servlet's init params in the web.xml file.
This class also validates if a keyTab should be used and if all of the LoginModule options have been set.
To see a working example and instructions on how to use a keytab, take a look at the creating a server keytab example.
The class should be used as a Singleton:
SpnegoFilterConfig config = SpnegoFilterConfig.getInstance(filter);See an example web.xml configuration in the installing on tomcat documentation.
- Author:
- Darwin V. Felix
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SpnegoFilterConfiggetInstance(jakarta.servlet.FilterConfig config)Returns the instance of the servlet's config parameters.StringtoString()
-
-
-
Method Detail
-
getInstance
public static SpnegoFilterConfig getInstance(jakarta.servlet.FilterConfig config) throws FileNotFoundException, URISyntaxException
Returns the instance of the servlet's config parameters.- Parameters:
config- FilterConfi from servlet's init method- Returns:
- the instance of that represent the init params
- Throws:
FileNotFoundException- if login conf file not foundURISyntaxException- if path to login conf is bad
-
-