Plugins

# Class: IniSecurityContainer Source Location: /plugins/auth/client/ClientAuth.php
### Class Overview
    SecurityContainer
       |
       --IniSecurityContainer
Security container which reads the usernames, passwords and roles out of a plugin .ini file. | ### Variables $passwordsMap $roleMap | ### Methods __construct checkUser getRoles
### Inherited Methods #### Class: SecurityContainer SecurityContainer::checkUser() Check if a username, password pair is valid. It must return false if the user is unknown or its password is invalid. SecurityContainer::getRoles() Returns the list of rules belonging to a user.
### Class Details [line 35] Security container which reads the usernames, passwords and roles out of a plugin .ini file. [ Top ] ### Class Variables #### $passwordsMap = array() [line 41] The map of usernames => passwords #### Tags:
access: | protected
Type: | array
[ Top ] #### $roleMap = array() [line 47] The map of usernames => roles #### Tags:
access: | protected
Type: | array
[ Top ] ### Class Methods ### constructor __construct [line 55]
`IniSecurityContainer __construct( ClientPluginConfig $config)`
Constructor, taking a plugin configuration. #### Tags:
access: | public
#### Parameters:
ClientPluginConfig | $config | the plugin configuration to use for fetching users and roles.
[ Top ] ### method checkUser [line 72]
`void checkUser( mixed $username, mixed $password)`
#### Tags:
access: | public
see: | SecurityContainer::checkUser()
Overrides SecurityContainer::checkUser() (Check if a username, password pair is valid. It must return false if the user is unknown or its password is invalid.) [ Top ] ### method getRoles [line 82]
`void getRoles( mixed $username)`
#### Tags:
access: | public
see: | SecurityContainer::getRoles()
Overrides SecurityContainer::getRoles() (Returns the list of rules belonging to a user.) [ Top ] Documentation generated on Fri, 21 Sep 2007 13:30:34 +0200 by phpDocumentor 1.3.0RC3