Package org.jboss.security.auth.login
Class SunConfigParser
- java.lang.Object
-
- org.jboss.security.auth.login.SunConfigParser
-
- All Implemented Interfaces:
SunConfigParserConstants
public class SunConfigParser extends Object implements SunConfigParserConstants
A JavaCC 2.1 grammar for the default JAAS configuration file provided by Sun. The format of an entry is: Application { ModuleClass Flag ModuleOptions; ModuleClass Flag ModuleOptions; ModuleClass Flag ModuleOptions; };- Version:
- $Revision: 16662 $
- Author:
- Scott.Stark@jboss.org
-
-
Field Summary
Fields Modifier and Type Field Description Token
jj_nt
Next token.Token
token
Current token.SunConfigParserTokenManager
token_source
Generated Token Manager.-
Fields inherited from interface org.jboss.security.auth.login.SunConfigParserConstants
ANY, CLASSNAME, CLOSE_BKT, CONTROL_FLAG, DEFAULT, DIGIT, DOUBLE, EOF, EQUALS, FLOAT, IDENTIFIER, LETTER, LONG, MULTI_LINE_COMMENT, NOTSPACE_EQUALS, OPEN_BKT, SEMI_COLON, SINGLE_LINE_COMMENT, STRING, tokenImage
-
-
Constructor Summary
Constructors Constructor Description SunConfigParser()
SunConfigParser(InputStream stream)
Constructor with InputStream.SunConfigParser(InputStream stream, String encoding)
Constructor with InputStream and supplied encodingSunConfigParser(Reader stream)
Constructor.SunConfigParser(SunConfigParserTokenManager tm)
Constructor with generated Token Manager.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appConfig()
void
config()
Start of the grammarAppConfigurationEntry.LoginModuleControlFlag
controlFlag()
void
disable_tracing()
Disable tracing.static void
doParse(Reader configFile, XMLLoginConfigImpl loginConfig)
static void
doParse(Reader configFile, XMLLoginConfigImpl loginConfig, boolean trace)
void
enable_tracing()
Enable tracing.ParseException
generateParseException()
Generate ParseException.Token
getNextToken()
Get the next Token.Token
getToken(int index)
Get the specific Token.AppConfigurationEntry
loginModuleConfig()
void
moduleOptions(HashMap<String,String> optionsMap)
void
parse(Reader configFile, XMLLoginConfigImpl loginConfig)
void
parse(Reader configFile, XMLLoginConfigImpl loginConfig, boolean trace)
void
ReInit(InputStream stream)
Reinitialise.void
ReInit(InputStream stream, String encoding)
Reinitialise.void
ReInit(Reader stream)
Reinitialise.void
ReInit(SunConfigParserTokenManager tm)
Reinitialise.protected void
trace_call(String s)
boolean
trace_enabled()
Trace enabled.protected void
trace_return(String s)
protected void
trace_scan(Token t1, int t2)
protected void
trace_token(Token t, String where)
-
-
-
Field Detail
-
token_source
public SunConfigParserTokenManager token_source
Generated Token Manager.
-
token
public Token token
Current token.
-
jj_nt
public Token jj_nt
Next token.
-
-
Constructor Detail
-
SunConfigParser
public SunConfigParser()
-
SunConfigParser
public SunConfigParser(InputStream stream)
Constructor with InputStream.
-
SunConfigParser
public SunConfigParser(InputStream stream, String encoding)
Constructor with InputStream and supplied encoding
-
SunConfigParser
public SunConfigParser(Reader stream)
Constructor.
-
SunConfigParser
public SunConfigParser(SunConfigParserTokenManager tm)
Constructor with generated Token Manager.
-
-
Method Detail
-
parse
public void parse(Reader configFile, XMLLoginConfigImpl loginConfig) throws ParseException
- Throws:
ParseException
-
parse
public void parse(Reader configFile, XMLLoginConfigImpl loginConfig, boolean trace) throws ParseException
- Throws:
ParseException
-
doParse
public static void doParse(Reader configFile, XMLLoginConfigImpl loginConfig) throws ParseException
- Throws:
ParseException
-
doParse
public static void doParse(Reader configFile, XMLLoginConfigImpl loginConfig, boolean trace) throws ParseException
- Throws:
ParseException
-
config
public final void config() throws ParseException
Start of the grammar- Throws:
ParseException
-
appConfig
public final void appConfig() throws ParseException
- Throws:
ParseException
-
loginModuleConfig
public final AppConfigurationEntry loginModuleConfig() throws ParseException
- Throws:
ParseException
-
controlFlag
public final AppConfigurationEntry.LoginModuleControlFlag controlFlag() throws ParseException
- Throws:
ParseException
-
moduleOptions
public final void moduleOptions(HashMap<String,String> optionsMap) throws ParseException
- Throws:
ParseException
-
ReInit
public void ReInit(InputStream stream)
Reinitialise.
-
ReInit
public void ReInit(InputStream stream, String encoding)
Reinitialise.
-
ReInit
public void ReInit(Reader stream)
Reinitialise.
-
ReInit
public void ReInit(SunConfigParserTokenManager tm)
Reinitialise.
-
getNextToken
public final Token getNextToken()
Get the next Token.
-
getToken
public final Token getToken(int index)
Get the specific Token.
-
generateParseException
public ParseException generateParseException()
Generate ParseException.
-
trace_enabled
public final boolean trace_enabled()
Trace enabled.
-
enable_tracing
public final void enable_tracing()
Enable tracing.
-
disable_tracing
public final void disable_tracing()
Disable tracing.
-
trace_call
protected void trace_call(String s)
-
trace_return
protected void trace_return(String s)
-
trace_scan
protected void trace_scan(Token t1, int t2)
-
-