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 RunAs
callerRunAsIdentity
protected Subject
callerSubject
protected CodeSource
codeSource
protected Map<String,Object>
map
protected String
policyContextID
protected Principal
principal
protected Set<SecurityRoleRef>
securityRoleReferences
-
Constructor Summary
Constructors Constructor Description JavaEEResource()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
add(String key, Object value)
Add a key value to the context mapRunAs
getCallerRunAsIdentity()
Get the Caller RunAsIdentitySubject
getCallerSubject()
Get the Caller SubjectCodeSource
getCodeSource()
Get the CodeSourceabstract ResourceType
getLayer()
Map<String,Object>
getMap()
String
getPolicyContextID()
Get the Policy Context ID (Mainly to retrieve policy from policy configuration (JACC) or PolicyRegistration (XACML))Principal
getPrincipal()
Set<SecurityRoleRef>
getSecurityRoleReferences()
Get the set of Security Role Reference objects defined in the deployment descriptorvoid
setCallerRunAsIdentity(RunAs callerRunAsIdentity)
Set the Caller RunAsIdentityvoid
setCallerSubject(Subject callerSubject)
Set the Caller Subjectvoid
setCodeSource(CodeSource codeSource)
Set the CodeSourcevoid
setPolicyContextID(String policyContextID)
Set the Policy Context IDvoid
setPrincipal(Principal principal)
void
setSecurityRoleReferences(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:
getMap
in 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
-
-
-