Class JavaEEResource
- java.lang.Object
-
- org.jboss.security.authorization.resources.JavaEEResource
-
- All Implemented Interfaces:
Resource
- Direct Known Subclasses:
EJBResource,WebResource
public abstract class JavaEEResource extends Object implements Resource
Represents a Java EE Resource- Since:
- Nov 26, 2007
- Version:
- $Revision$
- Author:
- Anil.Saldhana@redhat.com
-
-
Field Summary
Fields Modifier and Type Field Description protected RunAscallerRunAsIdentityprotected SubjectcallerSubjectprotected CodeSourcecodeSourceprotected Map<String,Object>mapprotected StringpolicyContextIDprotected Principalprincipalprotected Set<SecurityRoleRef>securityRoleReferences
-
Constructor Summary
Constructors Constructor Description JavaEEResource()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidadd(String key, Object value)Add a key value to the context mapRunAsgetCallerRunAsIdentity()Get the Caller RunAsIdentitySubjectgetCallerSubject()Get the Caller SubjectCodeSourcegetCodeSource()Get the CodeSourceabstract ResourceTypegetLayer()Map<String,Object>getMap()StringgetPolicyContextID()Get the Policy Context ID (Mainly to retrieve policy from policy configuration (JACC) or PolicyRegistration (XACML))PrincipalgetPrincipal()Set<SecurityRoleRef>getSecurityRoleReferences()Get the set of Security Role Reference objects defined in the deployment descriptorvoidsetCallerRunAsIdentity(RunAs callerRunAsIdentity)Set the Caller RunAsIdentityvoidsetCallerSubject(Subject callerSubject)Set the Caller SubjectvoidsetCodeSource(CodeSource codeSource)Set the CodeSourcevoidsetPolicyContextID(String policyContextID)Set the Policy Context IDvoidsetPrincipal(Principal principal)voidsetSecurityRoleReferences(Set<SecurityRoleRef> securityRoleReferences)Set the security role references
-
-
-
Field Detail
-
policyContextID
protected String policyContextID
-
callerSubject
protected Subject callerSubject
-
callerRunAsIdentity
protected RunAs callerRunAsIdentity
-
codeSource
protected CodeSource codeSource
-
principal
protected Principal principal
-
securityRoleReferences
protected Set<SecurityRoleRef> securityRoleReferences
-
-
Method Detail
-
getLayer
public abstract ResourceType getLayer()
-
getMap
public Map<String,Object> getMap()
- Specified by:
getMapin interfaceResource- See Also:
Resource.getMap()
-
getCallerSubject
public Subject getCallerSubject()
Get the Caller Subject- Returns:
-
setCallerSubject
public void setCallerSubject(Subject callerSubject)
Set the Caller Subject- Parameters:
callerSubject-
-
getCallerRunAsIdentity
public RunAs getCallerRunAsIdentity()
Get the Caller RunAsIdentity- Returns:
-
setCallerRunAsIdentity
public void setCallerRunAsIdentity(RunAs callerRunAsIdentity)
Set the Caller RunAsIdentity- Parameters:
callerRunAsIdentity-
-
getCodeSource
public CodeSource getCodeSource()
Get the CodeSource- Returns:
-
setCodeSource
public void setCodeSource(CodeSource codeSource)
Set the CodeSource- Parameters:
codeSource-
-
getPolicyContextID
public String getPolicyContextID()
Get the Policy Context ID (Mainly to retrieve policy from policy configuration (JACC) or PolicyRegistration (XACML))- Returns:
-
setPolicyContextID
public void setPolicyContextID(String policyContextID)
Set the Policy Context ID- Parameters:
policyContextID-
-
getPrincipal
public Principal getPrincipal()
-
setPrincipal
public void setPrincipal(Principal principal)
-
getSecurityRoleReferences
public Set<SecurityRoleRef> getSecurityRoleReferences()
Get the set of Security Role Reference objects defined in the deployment descriptor- Returns:
-
setSecurityRoleReferences
public void setSecurityRoleReferences(Set<SecurityRoleRef> securityRoleReferences)
Set the security role references- Parameters:
securityRoleReferences-
-
-