[line 61]
Class which manages security in Cartoweb
It is used to authenticate a username/password pair, and handle the roles associated to a user. This class has only one instance available at any time, using getInstance static method.
Once the user is authenticated, it is made known the this manager through setUser or setUserAndRoles. From there on, security checks can be done using hasRole method.
Sets the current authenticated user. Its roles will be fetched from the
current SecurityContainer Warning: for client plugins managing authentication, the setUser() or setUserAndRoles() MUST be called before or in the initialize() Plugin method. Otherwise, security constraints could be bypassed.