org.jboss.security.auth.login
Class SunConfigParser

java.lang.Object
  extended by 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
See Also:
http://www.webgain.com/products/metamata/java_doc.html

Field Summary
 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
SunConfigParser()
           
SunConfigParser(InputStream stream)
          Constructor with InputStream.
SunConfigParser(InputStream stream, String encoding)
          Constructor with InputStream and supplied encoding
SunConfigParser(Reader stream)
          Constructor.
SunConfigParser(SunConfigParserTokenManager tm)
          Constructor with generated Token Manager.
 
Method Summary
 void appConfig()
           
 void config()
          Start of the grammar
 AppConfigurationEntry.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 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 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.


enable_tracing

public final void enable_tracing()
Enable tracing.


disable_tracing

public final void disable_tracing()
Disable tracing.



Copyright © 2009 JBoss Inc.. All Rights Reserved.