Class LoginPolicy

java.lang.Object
com.polarion.platform.security.LoginPolicy
All Implemented Interfaces:
ILoginPolicy

public class LoginPolicy extends Object implements ILoginPolicy
ILoginPolicy implementation.

Clients are free to instance it themselves.

Version:
$Revision$ $Date$
Author:
Stepan Roh, Polarion Software
See Also:
  • Constructor Details

  • Method Details

    • canLogin

      public boolean canLogin()
      Description copied from interface: ILoginPolicy
      Can current user log in?

      Note that the user must already be logged in by ILogin.IFinal.perform(), this is just to test if that user is allowed to be logged in on a higher level.

      Permission is LoginPermission.

      Specified by:
      canLogin in interface ILoginPolicy
      Returns:
      true if current user is allowed to log into the system
    • canLogin

      public boolean canLogin(String userName)
      Specified by:
      canLogin in interface ILoginPolicy