org.jboss.security.authorization.resources
Class JavaEEResource

java.lang.Object
  extended by org.jboss.security.authorization.resources.JavaEEResource
All Implemented Interfaces:
org.jboss.security.authorization.Resource
Direct Known Subclasses:
EJBResource, WebResource

public abstract class JavaEEResource
extends Object
implements org.jboss.security.authorization.Resource

Represents a Java EE Resource

Since:
Nov 26, 2007
Version:
$Revision$
Author:
Anil.Saldhana@redhat.com

Field Summary
protected  org.jboss.security.RunAs callerRunAsIdentity
           
protected  Subject callerSubject
           
protected  CodeSource codeSource
           
protected  Map<String,Object> map
           
protected  String policyContextID
           
protected  Principal principal
           
protected  Set<org.jboss.security.javaee.SecurityRoleRef> securityRoleReferences
           
 
Constructor Summary
JavaEEResource()
           
 
Method Summary
 org.jboss.security.RunAs getCallerRunAsIdentity()
          Get the Caller RunAsIdentity
 Subject getCallerSubject()
          Get the Caller Subject
 CodeSource getCodeSource()
          Get the CodeSource
abstract  org.jboss.security.authorization.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<org.jboss.security.javaee.SecurityRoleRef> getSecurityRoleReferences()
          Get the set of Security Role Reference objects defined in the deployment descriptor
 void setCallerRunAsIdentity(org.jboss.security.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<org.jboss.security.javaee.SecurityRoleRef> securityRoleReferences)
          Set the security role references
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

map

protected Map<String,Object> map

policyContextID

protected String policyContextID

callerSubject

protected Subject callerSubject

callerRunAsIdentity

protected org.jboss.security.RunAs callerRunAsIdentity

codeSource

protected CodeSource codeSource

principal

protected Principal principal

securityRoleReferences

protected Set<org.jboss.security.javaee.SecurityRoleRef> securityRoleReferences
Constructor Detail

JavaEEResource

public JavaEEResource()
Method Detail

getLayer

public abstract org.jboss.security.authorization.ResourceType getLayer()
Specified by:
getLayer in interface org.jboss.security.authorization.Resource

getMap

public Map<String,Object> getMap()
Specified by:
getMap in interface org.jboss.security.authorization.Resource
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 org.jboss.security.RunAs getCallerRunAsIdentity()
Get the Caller RunAsIdentity

Returns:

setCallerRunAsIdentity

public void setCallerRunAsIdentity(org.jboss.security.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<org.jboss.security.javaee.SecurityRoleRef> getSecurityRoleReferences()
Get the set of Security Role Reference objects defined in the deployment descriptor

Returns:

setSecurityRoleReferences

public void setSecurityRoleReferences(Set<org.jboss.security.javaee.SecurityRoleRef> securityRoleReferences)
Set the security role references

Parameters:
securityRoleReferences -


Copyright © 2009 JBoss Inc.. All Rights Reserved.