|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.loom.security.JeeSecurityAdapter
@Singleton public class JeeSecurityAdapter
Adapts standard JAAS
Constructor Summary | |
---|---|
JeeSecurityAdapter()
|
Method Summary | |
---|---|
boolean |
hasRole(java.lang.String[] allowedRoles)
Calls the HttpServletRequest.isUserInRole() method for each allowedRole |
void |
throwInsufficientPermissionsException(java.lang.String message)
This implementation will throw an instance of HttpException |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JeeSecurityAdapter()
Method Detail |
---|
public boolean hasRole(java.lang.String[] allowedRoles)
hasRole
in interface SecurityAdapter
allowedRoles
- the list of roles to check.
public void throwInsufficientPermissionsException(java.lang.String message)
HttpException
throwInsufficientPermissionsException
in interface SecurityAdapter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |