org.ow2.kerneos.common.service
Interface KerneosSecurityService


public interface KerneosSecurityService

Interface of the Kerneos Security Service.


Nested Class Summary
static class KerneosSecurityService.SecurityError
          The different status associated to the session.
 
Method Summary
 KerneosSecurityService.SecurityError isAuthorized(KerneosApplication application, KerneosModule module, String service, String method)
          Check the authorisation associated to the request.
 boolean logIn(KerneosApplication application, String username, String password)
          Login to Kerneos.
 boolean logOut(KerneosApplication application)
          Logout of Kerneos.
 

Method Detail

logIn

boolean logIn(KerneosApplication application,
              String username,
              String password)
Login to Kerneos.

Parameters:
username - The username used for login.
password - The password used for login.
Returns:
True if the login is successful.

isAuthorized

KerneosSecurityService.SecurityError isAuthorized(KerneosApplication application,
                                                  KerneosModule module,
                                                  String service,
                                                  String method)
Check the authorisation associated to the request.

Returns:
The status associated to the authorisation.

logOut

boolean logOut(KerneosApplication application)
Logout of Kerneos.

Returns:
True if the logout is successful.


Copyright © 2013 OW2 Consortium. All Rights Reserved.