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 MapRunAs
getIncomingRunAs()
RunAs that is being propagated into this context by an external contextsetIncomingRunAs(RunAs)
RunAs
getOutgoingRunAs()
RunAs RepresentationsetOutgoingRunAs(RunAs)
String
getSecurityDomain()
Return the Security DomainISecurityManagement
getSecurityManagement()
Get the SecurityManagement object to get hold of the various managersSubjectInfo
getSubjectInfo()
Subject InfoSecurityContextUtil
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 wayvoid
setIncomingRunAs(RunAs runAs)
Set the RunAs that is propagating into this context.void
setOutgoingRunAs(RunAs runAs)
Set the current RunAs for the security context that will be propagated out to other security context.void
setSecurityDomain(String domain)
Sets the security domain.void
setSecurityManagement(ISecurityManagement ism)
Set the SecurityManagement holdervoid
setSubjectInfo(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
- aString
representing 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:
-
-