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 Tokenjj_ntNext token.TokentokenCurrent token.SunConfigParserTokenManagertoken_sourceGenerated 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 voidappConfig()voidconfig()Start of the grammarAppConfigurationEntry.LoginModuleControlFlagcontrolFlag()voiddisable_tracing()Disable tracing.static voiddoParse(Reader configFile, XMLLoginConfigImpl loginConfig)static voiddoParse(Reader configFile, XMLLoginConfigImpl loginConfig, boolean trace)voidenable_tracing()Enable tracing.ParseExceptiongenerateParseException()Generate ParseException.TokengetNextToken()Get the next Token.TokengetToken(int index)Get the specific Token.AppConfigurationEntryloginModuleConfig()voidmoduleOptions(HashMap<String,String> optionsMap)voidparse(Reader configFile, XMLLoginConfigImpl loginConfig)voidparse(Reader configFile, XMLLoginConfigImpl loginConfig, boolean trace)voidReInit(InputStream stream)Reinitialise.voidReInit(InputStream stream, String encoding)Reinitialise.voidReInit(Reader stream)Reinitialise.voidReInit(SunConfigParserTokenManager tm)Reinitialise.protected voidtrace_call(String s)booleantrace_enabled()Trace enabled.protected voidtrace_return(String s)protected voidtrace_scan(Token t1, int t2)protected voidtrace_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 ParseExceptionStart 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)
-
-