org.jboss.security.plugins
public class JBossSecurityContext extends Object implements SecurityContext, SecurityManagerLocator
Modifier and Type | Field and Description |
---|---|
protected CallbackHandler |
callbackHandler |
protected Map<String,Object> |
contextData |
protected RunAs |
incomingRunAs |
protected ISecurityManagement |
iSecurityManagement |
protected static org.jboss.logging.Logger |
log |
protected RunAs |
outgoingRunAs |
protected String |
securityDomain |
protected SubjectInfo |
subjectInfo |
protected boolean |
trace |
protected SecurityContextUtil |
util |
Constructor and Description |
---|
JBossSecurityContext(String securityDomain) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
org.jboss.security.audit.AuditManager |
getAuditManager() |
AuthenticationManager |
getAuthenticationManager() |
AuthorizationManager |
getAuthorizationManager() |
Map<String,Object> |
getData() |
org.jboss.security.identitytrust.IdentityTrustManager |
getIdentityTrustManager() |
RunAs |
getIncomingRunAs() |
org.jboss.security.mapping.MappingManager |
getMappingManager() |
RunAs |
getOutgoingRunAs() |
String |
getSecurityDomain()
Get the security domain name
|
ISecurityManagement |
getSecurityManagement() |
SubjectInfo |
getSubjectInfo() |
SecurityContextUtil |
getUtil() |
void |
setCallbackHandler(CallbackHandler callbackHandler)
Set the CallbackHandler for the Managers in the SecurityContext
|
void |
setIncomingRunAs(RunAs runAs) |
void |
setOutgoingRunAs(RunAs runAs) |
void |
setRoles(Group roles,
boolean replace) |
void |
setSecurityDomain(String securityDomain) |
void |
setSecurityManagement(ISecurityManagement securityManagement) |
void |
setSubjectInfo(SubjectInfo si) |
String |
toString() |
protected static final org.jboss.logging.Logger log
protected boolean trace
protected String securityDomain
protected SubjectInfo subjectInfo
protected RunAs incomingRunAs
protected RunAs outgoingRunAs
protected ISecurityManagement iSecurityManagement
protected transient CallbackHandler callbackHandler
protected transient SecurityContextUtil util
public JBossSecurityContext(String securityDomain)
public ISecurityManagement getSecurityManagement()
getSecurityManagement
in interface SecurityContext
SecurityException
- Under a security manager, caller does not have
RuntimePermission("org.jboss.security.plugins.JBossSecurityContext.getSecurityManagement")SecurityContext.getSecurityManagement()
public void setSecurityManagement(ISecurityManagement securityManagement)
setSecurityManagement
in interface SecurityContext
SecurityException
- Under a security manager, caller does not have
RuntimePermission("org.jboss.security.plugins.JBossSecurityContext.setSecurityManagement")SecurityContext.setSecurityManagement(ISecurityManagement)
public Map<String,Object> getData()
getData
in interface SecurityContext
SecurityException
- Under a security manager, caller does not have
RuntimePermission("org.jboss.security.plugins.JBossSecurityContext.getData")SecurityContext.getData()
public String getSecurityDomain()
getSecurityDomain
in interface SecurityContext
public void setSecurityDomain(String securityDomain)
setSecurityDomain
in interface SecurityContext
public SubjectInfo getSubjectInfo()
getSubjectInfo
in interface SecurityContext
SecurityException
- Under a security manager, caller does not have
RuntimePermission("org.jboss.security.plugins.JBossSecurityContext.getSubjectInfo")SecurityContext.getSubjectInfo()
public RunAs getIncomingRunAs()
getIncomingRunAs
in interface SecurityContext
SecurityContext.getOutgoingRunAs()
public void setIncomingRunAs(RunAs runAs)
setIncomingRunAs
in interface SecurityContext
SecurityException
- Under a security manager, caller does not have
RuntimePermission("org.jboss.security.plugins.JBossSecurityContext.setRunAsPermission")SecurityContext.setOutgoingRunAs(RunAs)
public RunAs getOutgoingRunAs()
getOutgoingRunAs
in interface SecurityContext
SecurityContext.getOutgoingRunAs()
public void setOutgoingRunAs(RunAs runAs)
setOutgoingRunAs
in interface SecurityContext
SecurityException
- Under a security manager, caller does not have
RuntimePermission("org.jboss.security.plugins.JBossSecurityContext.setRunAsPermission")SecurityContext.setOutgoingRunAs(RunAs)
public SecurityContextUtil getUtil()
getUtil
in interface SecurityContext
SecurityContext.getUtil()
public org.jboss.security.audit.AuditManager getAuditManager()
getAuditManager
in interface SecurityManagerLocator
public AuthenticationManager getAuthenticationManager()
getAuthenticationManager
in interface SecurityManagerLocator
public AuthorizationManager getAuthorizationManager()
getAuthorizationManager
in interface SecurityManagerLocator
public org.jboss.security.identitytrust.IdentityTrustManager getIdentityTrustManager()
getIdentityTrustManager
in interface SecurityManagerLocator
public org.jboss.security.mapping.MappingManager getMappingManager()
getMappingManager
in interface SecurityManagerLocator
public void setSubjectInfo(SubjectInfo si)
setSubjectInfo
in interface SecurityContext
SecurityException
- Under a security manager, caller does not have
RuntimePermission("org.jboss.security.plugins.JBossSecurityContext.setSubjectInfo")public void setRoles(Group roles, boolean replace)
roles
- replace
- SecurityException
- Under a security manager, caller does not have
RuntimePermission("org.jboss.security.plugins.JBossSecurityContext.setRolesPermission")public void setCallbackHandler(CallbackHandler callbackHandler)
callbackHandler
- public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2015 JBoss Inc.. All Rights Reserved.