org.apache.qpid.server.security.access.config
Class PlainConfiguration

java.lang.Object
  extended by org.apache.qpid.server.security.access.config.AbstractConfiguration
      extended by org.apache.qpid.server.security.access.config.PlainConfiguration
All Implemented Interfaces:
ConfigurationFile

public class PlainConfiguration
extends AbstractConfiguration


Field Summary
static String ACL
           
static String BAD_ACL_RULE_NUMBER_MSG
           
static String CANNOT_LOAD_MSG
           
static Character COMMENT
           
static String CONFIG
           
static String CONFIG_NOT_FOUND_MSG
           
static Character CONTINUATION
           
static String GROUP
           
static String NOT_ENOUGH_ACL_MSG
           
static String NOT_ENOUGH_CONFIG_MSG
           
static String NOT_ENOUGH_GROUP_MSG
           
static String NOT_ENOUGH_TOKENS_MSG
           
static String NUMBER_NOT_ALLOWED_MSG
           
static String PARSE_TOKEN_FAILED_MSG
           
static String PREMATURE_CONTINUATION_MSG
           
static String PREMATURE_EOF_MSG
           
static String PROPERTY_KEY_ONLY_MSG
           
static String PROPERTY_NO_EQUALS_MSG
           
static String PROPERTY_NO_VALUE_MSG
           
static String UNRECOGNISED_INITIAL_MSG
           
 
Fields inherited from class org.apache.qpid.server.security.access.config.AbstractConfiguration
_config, _file, _logger
 
Constructor Summary
PlainConfiguration(File file)
           
 
Method Summary
protected  int getLine()
           
 RuleSet load()
          Load this configuration file's contents into a RuleSet.
protected  org.apache.qpid.server.security.access.ObjectProperties toObjectProperties(List<String> args)
          Converts a List of "name", "=", "value" tokens into a Map.
protected  Map<String,Boolean> toPluginProperties(List<String> args)
          Converts a List of "name", "=", "value" tokens into a Map.
 
Methods inherited from class org.apache.qpid.server.security.access.config.AbstractConfiguration
getConfiguration, getFile, reload, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMENT

public static final Character COMMENT

CONTINUATION

public static final Character CONTINUATION

GROUP

public static final String GROUP
See Also:
Constant Field Values

ACL

public static final String ACL
See Also:
Constant Field Values

CONFIG

public static final String CONFIG
See Also:
Constant Field Values

UNRECOGNISED_INITIAL_MSG

public static final String UNRECOGNISED_INITIAL_MSG
See Also:
Constant Field Values

NOT_ENOUGH_TOKENS_MSG

public static final String NOT_ENOUGH_TOKENS_MSG
See Also:
Constant Field Values

NUMBER_NOT_ALLOWED_MSG

public static final String NUMBER_NOT_ALLOWED_MSG
See Also:
Constant Field Values

CANNOT_LOAD_MSG

public static final String CANNOT_LOAD_MSG
See Also:
Constant Field Values

PREMATURE_CONTINUATION_MSG

public static final String PREMATURE_CONTINUATION_MSG
See Also:
Constant Field Values

PREMATURE_EOF_MSG

public static final String PREMATURE_EOF_MSG
See Also:
Constant Field Values

PARSE_TOKEN_FAILED_MSG

public static final String PARSE_TOKEN_FAILED_MSG
See Also:
Constant Field Values

CONFIG_NOT_FOUND_MSG

public static final String CONFIG_NOT_FOUND_MSG
See Also:
Constant Field Values

NOT_ENOUGH_GROUP_MSG

public static final String NOT_ENOUGH_GROUP_MSG
See Also:
Constant Field Values

NOT_ENOUGH_ACL_MSG

public static final String NOT_ENOUGH_ACL_MSG
See Also:
Constant Field Values

NOT_ENOUGH_CONFIG_MSG

public static final String NOT_ENOUGH_CONFIG_MSG
See Also:
Constant Field Values

BAD_ACL_RULE_NUMBER_MSG

public static final String BAD_ACL_RULE_NUMBER_MSG
See Also:
Constant Field Values

PROPERTY_KEY_ONLY_MSG

public static final String PROPERTY_KEY_ONLY_MSG
See Also:
Constant Field Values

PROPERTY_NO_EQUALS_MSG

public static final String PROPERTY_NO_EQUALS_MSG
See Also:
Constant Field Values

PROPERTY_NO_VALUE_MSG

public static final String PROPERTY_NO_VALUE_MSG
See Also:
Constant Field Values
Constructor Detail

PlainConfiguration

public PlainConfiguration(File file)
Method Detail

load

public RuleSet load()
             throws ConfigurationException
Description copied from interface: ConfigurationFile
Load this configuration file's contents into a RuleSet.

Specified by:
load in interface ConfigurationFile
Overrides:
load in class AbstractConfiguration
Throws:
ConfigurationException - if the configuration file has errors.

toObjectProperties

protected org.apache.qpid.server.security.access.ObjectProperties toObjectProperties(List<String> args)
                                                                              throws ConfigurationException
Converts a List of "name", "=", "value" tokens into a Map.

Throws:
ConfigurationException

toPluginProperties

protected Map<String,Boolean> toPluginProperties(List<String> args)
                                          throws ConfigurationException
Converts a List of "name", "=", "value" tokens into a Map.

Throws:
ConfigurationException

getLine

protected int getLine()


Licensed to the Apache Software Foundation