org.jboss.security
Interface SecurityContext

All Superinterfaces:
Cloneable, SecurityManagerLocator, Serializable

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
 Map<String,Object> getData()
          Context Map
 RunAs getIncomingRunAs()
          RunAs that is being propagated into this context by an external context #setIncomingRunAs()
 RunAs getOutgoingRunAs()
          RunAs Representation setOutgoingRunAs(RunAs)
 String getSecurityDomain()
          Return the Security Domain
 ISecurityManagement getSecurityManagement()
          Get the SecurityManagement object to get hold of the various managers
 SubjectInfo getSubjectInfo()
          Subject Info
 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
 void 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 setSecurityManagement(ISecurityManagement ism)
          Set the SecurityManagement holder
 void 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 -

getData

Map<String,Object> getData()
Context Map


getSecurityDomain

String getSecurityDomain()
Return the Security Domain


getSubjectInfo

SubjectInfo getSubjectInfo()
Subject Info

See Also:
SecurityContextUtil.getSubject(), SecurityContextUtil.createSubjectInfo(Principal, Object, Subject)

setSubjectInfo

void setSubjectInfo(SubjectInfo si)
Subject Info

See Also:
SecurityContextUtil.getSubject(), SecurityContextUtil.createSubjectInfo(Principal, Object, Subject)

getIncomingRunAs

RunAs getIncomingRunAs()
RunAs that is being propagated into this context by an external context #setIncomingRunAs()


setIncomingRunAs

void setIncomingRunAs(RunAs runAs)
Set the RunAs that is propagating into this context.

Parameters:
runAs - The RunAs

getOutgoingRunAs

RunAs getOutgoingRunAs()
RunAs Representation setOutgoingRunAs(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 -
See Also:
SecurityContextUtil#getCallerRunAs(), SecurityContextUtil#setCallerRunAs(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:


Copyright © 2011 JBoss Inc.. All Rights Reserved.