com.vii.brillien.kernel.axiom.sso
Interface SubjectService


public interface SubjectService

Common interface used by a incorporated SSO service to provide A&A functionality


Method Summary
 Session authenticate(String username, String principal)
          Authenticates the user with the given username and principal
 boolean hasAPermission(Session session, List<String> permissions)
          Tells whether the user associated with the given session has a permission from the given collection
 boolean hasARole(Session session, List<String> roleIdentifiers)
          Tells whether the user associated with the given session has a role from the given collection
 boolean hasPermission(Session session, String permission)
          Tells whether the user associated with the given session has the given permission
 boolean hasPermissions(Session session, List<String> permissions)
          Tells whether the user associated with the given session has all the given permissions
 boolean hasRole(Session session, String roleIdentifier)
          Tells whether the user associated with the given session has the given role
 boolean hasRoles(Session session, List<String> roleIdentifiers)
          Tells whether the user associated with the given session has all the given roles
 boolean isAuthenticated(Session session)
          Tells whether the user associated with the given session is authenticated
 void logout(Session session)
          Logs out the user associated with the given session
 

Method Detail

authenticate

Session authenticate(String username,
                     String principal)
                     throws BrillienException
Authenticates the user with the given username and principal

Throws:
BrillienException

logout

void logout(Session session)
            throws BrillienException
Logs out the user associated with the given session

Throws:
BrillienException

isAuthenticated

boolean isAuthenticated(Session session)
                        throws BrillienException
Tells whether the user associated with the given session is authenticated

Throws:
BrillienException

hasRole

boolean hasRole(Session session,
                String roleIdentifier)
                throws BrillienException
Tells whether the user associated with the given session has the given role

Throws:
BrillienException

hasARole

boolean hasARole(Session session,
                 List<String> roleIdentifiers)
                 throws BrillienException
Tells whether the user associated with the given session has a role from the given collection

Throws:
BrillienException

hasRoles

boolean hasRoles(Session session,
                 List<String> roleIdentifiers)
                 throws BrillienException
Tells whether the user associated with the given session has all the given roles

Throws:
BrillienException

hasPermission

boolean hasPermission(Session session,
                      String permission)
                      throws BrillienException
Tells whether the user associated with the given session has the given permission

Throws:
BrillienException

hasAPermission

boolean hasAPermission(Session session,
                       List<String> permissions)
                       throws BrillienException
Tells whether the user associated with the given session has a permission from the given collection

Throws:
BrillienException

hasPermissions

boolean hasPermissions(Session session,
                       List<String> permissions)
                       throws BrillienException
Tells whether the user associated with the given session has all the given permissions

Throws:
BrillienException


Copyright © 2012. All Rights Reserved.