@ApplicationScoped public class DefaultSecurityContext extends AbstractSecurityContext
| Constructor and Description |
|---|
DefaultSecurityContext()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected static void |
clearPermissions()
Called to clear the current thread local permissions bean.
|
protected static void |
clearServletRequest()
Called to clear the context http servlet request.
|
String |
getCurrentUser()
Returns the currently authentiated user.
|
String |
getRequestHeader(String headerName)
Gets a request header from the current in-scope request.
|
boolean |
isAdmin()
Returns true if the current user is an administrator.
|
protected static void |
setServletRequest(javax.servlet.http.HttpServletRequest request)
Called to set the current context http servlet request.
|
getIdmStorage, getPermittedOrganizations, hasPermission, setIdmStoragepublic String getRequestHeader(String headerName)
ISecurityContextpublic String getCurrentUser()
ISecurityContextISecurityContext.getCurrentUser()public boolean isAdmin()
ISecurityContextISecurityContext.isAdmin()protected static void setServletRequest(javax.servlet.http.HttpServletRequest request)
request - protected static void clearPermissions()
protected static void clearServletRequest()
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.