Class Authentication


  • public final class Authentication
    extends java.lang.Object
    An uninstantiatable class that provides a servlet container-independent interface to the authentication system and a list of useful constants. A predefined list of roles will be used. Optionally, it is possible to define additional roles by creating a file called security-roles.proeprties. Here is an example for adding 2 additional roles: roles=operator,manager The 'default' roles are always going to be added, so the above list is equivalent to: roles=user,admin,operator,manager The role names will be translated to upper case, prefixing it with 'ROLE_'.
    Author:
    Lawrence Karnowski, Alejandro Galue