public abstract class JavaEEResource extends Object implements Resource
Modifier and Type | Field and 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 and Description |
---|
JavaEEResource() |
Modifier and Type | Method and Description |
---|---|
void |
add(String key,
Object value)
Add a key value to the context map
|
RunAs |
getCallerRunAsIdentity()
Get the Caller RunAsIdentity
|
Subject |
getCallerSubject()
Get the Caller Subject
|
CodeSource |
getCodeSource()
Get the CodeSource
|
abstract 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 descriptor
|
void |
setCallerRunAsIdentity(RunAs callerRunAsIdentity)
Set the Caller RunAsIdentity
|
void |
setCallerSubject(Subject callerSubject)
Set the Caller Subject
|
void |
setCodeSource(CodeSource codeSource)
Set the CodeSource
|
void |
setPolicyContextID(String policyContextID)
Set the Policy Context ID
|
void |
setPrincipal(Principal principal) |
void |
setSecurityRoleReferences(Set<SecurityRoleRef> securityRoleReferences)
Set the security role references
|
protected String policyContextID
protected Subject callerSubject
protected RunAs callerRunAsIdentity
protected CodeSource codeSource
protected Principal principal
protected Set<SecurityRoleRef> securityRoleReferences
public abstract ResourceType getLayer()
public Map<String,Object> getMap()
getMap
in interface Resource
Resource.getMap()
public Subject getCallerSubject()
public void setCallerSubject(Subject callerSubject)
callerSubject
- public RunAs getCallerRunAsIdentity()
public void setCallerRunAsIdentity(RunAs callerRunAsIdentity)
callerRunAsIdentity
- public CodeSource getCodeSource()
public void setCodeSource(CodeSource codeSource)
codeSource
- public String getPolicyContextID()
public void setPolicyContextID(String policyContextID)
policyContextID
- public Principal getPrincipal()
public void setPrincipal(Principal principal)
public Set<SecurityRoleRef> getSecurityRoleReferences()
public void setSecurityRoleReferences(Set<SecurityRoleRef> securityRoleReferences)
securityRoleReferences
- Copyright © 2017 JBoss by Red Hat. All rights reserved.