|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
Session authenticate(String username, String principal) throws BrillienException
BrillienException
void logout(Session session) throws BrillienException
BrillienException
boolean isAuthenticated(Session session) throws BrillienException
BrillienException
boolean hasRole(Session session, String roleIdentifier) throws BrillienException
BrillienException
boolean hasARole(Session session, List<String> roleIdentifiers) throws BrillienException
BrillienException
boolean hasRoles(Session session, List<String> roleIdentifiers) throws BrillienException
BrillienException
boolean hasPermission(Session session, String permission) throws BrillienException
BrillienException
boolean hasAPermission(Session session, List<String> permissions) throws BrillienException
BrillienException
boolean hasPermissions(Session session, List<String> permissions) throws BrillienException
BrillienException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |