public class SimpleSecurityManager extends Object implements org.jboss.as.core.security.ServerSecurityManager
Constructor and Description |
---|
SimpleSecurityManager() |
SimpleSecurityManager(SimpleSecurityManager delegate) |
Modifier and Type | Method and Description |
---|---|
void |
authenticate() |
void |
authenticate(String runAs,
String runAsPrincipal,
Set<String> extraRoles) |
boolean |
authorize(String ejbName,
CodeSource ejbCodeSource,
String ejbMethodIntf,
Method ejbMethod,
Set<Principal> methodRoles,
String contextID) |
Principal |
getCallerPrincipal() |
Subject |
getSubject() |
boolean |
isCallerInRole(String ejbName,
Object mappedRoles,
Map<String,Collection<String>> roleLinks,
String... roleNames)
Deprecated.
|
boolean |
isCallerInRole(String ejbName,
String policyContextID,
Object incommingMappedRoles,
Map<String,Collection<String>> roleLinks,
String... roleNames) |
void |
pop()
Must be called from within a privileged action.
|
void |
push(String securityDomain)
Must be called from within a privileged action.
|
void |
push(String securityDomain,
String userName,
char[] password,
Subject subject) |
void |
setSecurityManagement(org.jboss.security.ISecurityManagement iSecurityManagement) |
public SimpleSecurityManager()
public SimpleSecurityManager(SimpleSecurityManager delegate)
public void setSecurityManagement(org.jboss.security.ISecurityManagement iSecurityManagement)
public Principal getCallerPrincipal()
getCallerPrincipal
in interface org.jboss.as.core.security.ServerSecurityManager
public Subject getSubject()
getSubject
in interface org.jboss.as.core.security.ServerSecurityManager
@Deprecated public boolean isCallerInRole(String ejbName, Object mappedRoles, Map<String,Collection<String>> roleLinks, String... roleNames)
isCallerInRole
in interface org.jboss.as.core.security.ServerSecurityManager
public boolean isCallerInRole(String ejbName, String policyContextID, Object incommingMappedRoles, Map<String,Collection<String>> roleLinks, String... roleNames)
isCallerInRole
in interface org.jboss.as.core.security.ServerSecurityManager
ejbName
- The name of the EJB component where isCallerInRole was invoked.incommingMappedRoles
- The principal vs roles mapping (if any). Can be null.roleLinks
- The role link map where the key is an 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 boolean authorize(String ejbName, CodeSource ejbCodeSource, String ejbMethodIntf, Method ejbMethod, Set<Principal> methodRoles, String contextID)
authorize
in interface org.jboss.as.core.security.ServerSecurityManager
public void push(String securityDomain)
push
in interface org.jboss.as.core.security.ServerSecurityManager
securityDomain
- public void push(String securityDomain, String userName, char[] password, Subject subject)
push
in interface org.jboss.as.core.security.ServerSecurityManager
public void authenticate()
authenticate
in interface org.jboss.as.core.security.ServerSecurityManager
public void authenticate(String runAs, String runAsPrincipal, Set<String> extraRoles)
authenticate
in interface org.jboss.as.core.security.ServerSecurityManager
public void pop()
pop
in interface org.jboss.as.core.security.ServerSecurityManager
Copyright © 2017 JBoss by Red Hat. All rights reserved.