public interface ISecurityContext
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrentUser()
Returns the currently authentiated user.
|
Set<String> |
getPermittedOrganizations(io.apiman.manager.api.beans.idm.PermissionType permission)
Returns the set of organizations for which the current user is allowed
to perform a given action.
|
String |
getRequestHeader(String headerName)
Gets a request header from the current in-scope request.
|
boolean |
hasPermission(io.apiman.manager.api.beans.idm.PermissionType permission,
String organizationId)
Returns true if the current user has permission to perform a particular
action for the provided organization.
|
boolean |
isAdmin()
Returns true if the current user is an administrator.
|
String getCurrentUser()
boolean isAdmin()
boolean hasPermission(io.apiman.manager.api.beans.idm.PermissionType permission,
String organizationId)
permission - organizationId - Set<String> getPermittedOrganizations(io.apiman.manager.api.beans.idm.PermissionType permission)
permission - Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.