NAME

AccessCenter - access center component interface (super class)


DESCRIPTION

Every project with the access control mechanism should have a component inheriting from AccessCenter super class; this is usually the main project component.

The properties of AccessCenter are: access_groups component collection of AccessGroup, access_users component collection of AccessUser.


REQUIREMENTS

the Podius::Component::AccessControlable manpage, the Podius::Property::ComponentCollection manpage.


METHODS

authenticate

description
Returns a AccessUser component matching the given login and password, or throws the class exception if there is no such user or password mismatch.

parameters
  * login - login name of the user to authenticate
  * password - password of the user to authenticate
returns
The AccessUser component matching the given login and password if exist.