Package org.jboss.security
Interface SecurityContext
-
- All Superinterfaces:
Cloneable,SecurityManagerLocator,Serializable
- All Known Implementing Classes:
JBossSecurityContext
public interface SecurityContext extends SecurityManagerLocator, Serializable, Cloneable
Encapsulation of Authentication, Authorization, Mapping and other security aspects at the level of a security domain- Since:
- Aug 24, 2006
- Version:
- $Revision$
- Author:
- Anil Saldhana
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Object>getData()Context MapRunAsgetIncomingRunAs()RunAs that is being propagated into this context by an external contextsetIncomingRunAs(RunAs)RunAsgetOutgoingRunAs()RunAs RepresentationsetOutgoingRunAs(RunAs)StringgetSecurityDomain()Return the Security DomainISecurityManagementgetSecurityManagement()Get the SecurityManagement object to get hold of the various managersSubjectInfogetSubjectInfo()Subject InfoSecurityContextUtilgetUtil()Return a utility that is a facade to the internal storage mechanism of the Security Context This utility can be used to store information like roles etc in an implementation specific wayvoidsetIncomingRunAs(RunAs runAs)Set the RunAs that is propagating into this context.voidsetOutgoingRunAs(RunAs runAs)Set the current RunAs for the security context that will be propagated out to other security context.voidsetSecurityDomain(String domain)Sets the security domain.voidsetSecurityManagement(ISecurityManagement ism)Set the SecurityManagement holdervoidsetSubjectInfo(SubjectInfo si)Subject Info-
Methods inherited from interface org.jboss.security.SecurityManagerLocator
getAuditManager, getAuthenticationManager, getAuthorizationManager, getIdentityTrustManager, getMappingManager
-
-
-
-
Method Detail
-
getSecurityManagement
ISecurityManagement getSecurityManagement()
Get the SecurityManagement object to get hold of the various managers- Returns:
-
setSecurityManagement
void setSecurityManagement(ISecurityManagement ism)
Set the SecurityManagement holder- Parameters:
ism-
-
getSecurityDomain
String getSecurityDomain()
Return the Security Domain
-
setSecurityDomain
void setSecurityDomain(String domain)
Sets the security domain.
- Parameters:
domain- aStringrepresenting the security domain.
-
getSubjectInfo
SubjectInfo getSubjectInfo()
Subject Info
-
setSubjectInfo
void setSubjectInfo(SubjectInfo si)
Subject Info
-
getIncomingRunAs
RunAs getIncomingRunAs()
RunAs that is being propagated into this context by an external contextsetIncomingRunAs(RunAs)
-
setIncomingRunAs
void setIncomingRunAs(RunAs runAs)
Set the RunAs that is propagating into this context.- Parameters:
runAs- The RunAs
-
getOutgoingRunAs
RunAs getOutgoingRunAs()
RunAs RepresentationsetOutgoingRunAs(RunAs)
-
setOutgoingRunAs
void setOutgoingRunAs(RunAs runAs)
Set the current RunAs for the security context that will be propagated out to other security context. RunAs coming into this security context needs to be done from SecurityContextUtil.getCallerRunAs/setCallerRunAs- Parameters:
runAs-
-
getUtil
SecurityContextUtil getUtil()
Return a utility that is a facade to the internal storage mechanism of the Security Context This utility can be used to store information like roles etc in an implementation specific way- Returns:
-
-