Package com.polarion.platform.security
Class LoginPolicy
java.lang.Object
com.polarion.platform.security.LoginPolicy
- All Implemented Interfaces:
ILoginPolicy
ILoginPolicy implementation.
Clients are free to instance it themselves.
- Version:
- $Revision$ $Date$
- Author:
- Stepan Roh, Polarion Software
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LoginPolicy
Constructor.- Parameters:
securityService- security service- Throws:
IllegalArgumentException- ifsecurityServiceisnull
-
-
Method Details
-
canLogin
public boolean canLogin()Description copied from interface:ILoginPolicyCan 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:
canLoginin interfaceILoginPolicy- Returns:
trueif current user is allowed to log into the system
-
canLogin
- Specified by:
canLoginin interfaceILoginPolicy
-