public class SimpleSecurityManager extends Object
Constructor and Description |
---|
SimpleSecurityManager() |
Modifier and Type | Method and Description |
---|---|
Principal |
getCallerPrincipal() |
boolean |
isCallerInRole(org.jboss.metadata.javaee.spec.SecurityRolesMetaData mappedRoles,
Map<String,Collection<String>> roleLinks,
String... roleNames) |
void |
pop()
Must be called from within a privileged action.
|
void |
push(String securityDomain,
String runAs,
String runAsPrincipal,
Set<String> extraRoles)
Must be called from within a privileged action.
|
void |
setSecurityManagement(org.jboss.security.ISecurityManagement iSecurityManagement) |
public void setSecurityManagement(org.jboss.security.ISecurityManagement iSecurityManagement)
public Principal getCallerPrincipal()
public boolean isCallerInRole(org.jboss.metadata.javaee.spec.SecurityRolesMetaData mappedRoles, Map<String,Collection<String>> roleLinks, String... roleNames)
mappedRoles
- The principal vs roles mapping (if any). Can be null.roleLinks
- The role link map where the key is a alias role name and the value is the collection of
role names, that alias represents. Can be null.roleNames
- The role names for which the caller is being checked forroleNames
. Else returns falsepublic void push(String securityDomain, String runAs, String runAsPrincipal, Set<String> extraRoles)
securityDomain
- runAs
- runAsPrincipal
- extraRoles
- public void pop()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.