Uses of Interface
org.jboss.security.authorization.Resource
-
Packages that use Resource Package Description org.jboss.security The basic security interfaces and classes are now located in the jbosssx module.org.jboss.security.acl org.jboss.security.authorization org.jboss.security.authorization.modules org.jboss.security.authorization.modules.ejb org.jboss.security.authorization.modules.web org.jboss.security.authorization.resources org.jboss.security.javaee org.jboss.security.plugins Security plugins have moved to the jbosssx cvs module.org.jboss.security.plugins.authorization org.jboss.security.plugins.javaee org.picketbox.core.authorization.resources org.picketbox.plugins.authorization -
-
Uses of Resource in org.jboss.security
Methods in org.jboss.security with parameters of type Resource Modifier and Type Method Description int
AuthorizationManager. authorize(Resource resource)
Authorize a resource Note: The implementation will try to derive the authenticated subject by some meansint
AuthorizationManager. authorize(Resource resource, Subject subject)
Authorize a resource for an authenticated subjectint
AuthorizationManager. authorize(Resource resource, Subject subject, Group roleGroup)
Authorize a resource given a Group of Principals representing rolesint
AuthorizationManager. authorize(Resource resource, Subject subject, RoleGroup role)
Authorize a resource given a role -
Uses of Resource in org.jboss.security.acl
Methods in org.jboss.security.acl that return Resource Modifier and Type Method Description Resource
ACL. getResource()
Obtains a reference to the resource being protected by this ACL.Resource
ACLImpl. getResource()
Resource
EntitlementEntry. getResource()
Resource
ACLResourceFactory. instantiateResource(String resourceClassName, Object id)
Creates an instance of theResource
with the specified class name and id.Methods in org.jboss.security.acl with parameters of type Resource Modifier and Type Method Description ACL
ACLPersistenceStrategy. createACL(Resource resource)
Creates a newACL
and associates it to the given resource.ACL
ACLPersistenceStrategy. createACL(Resource resource, Collection<ACLEntry> entries)
Creates a newACL
with the specified entries and associates it to the given resource.ACL
JPAPersistenceStrategy. createACL(Resource resource)
ACL
JPAPersistenceStrategy. createACL(Resource resource, Collection<ACLEntry> entries)
void
ACLRegistration. deRegisterACL(Resource resource)
Deregisters theACL
associated with the specified resource.protected void
ACLProviderImpl. fillEntitlements(Set<EntitlementEntry> entitlements, Resource resource, String identityName, ACLPermission permission)
Helper method that populates theentitlements
collection as it traverses through the resources.ACL
ACLPersistenceStrategy. getACL(Resource resource)
Obtains a reference to theACL
associated to the given resource.ACL
JPAPersistenceStrategy. getACL(Resource resource)
<T> Set<T>
ACLProvider. getEntitlements(Class<T> clazz, Resource resource, Identity identity)
For a given Resource and an Identity, return all the entitlements Eg: A portal page can consist of say 10 components such as windows, subpages etc.<T> Set<T>
ACLProviderImpl. getEntitlements(Class<T> clazz, Resource resource, Identity identity)
<T> Set<T>
RoleBasedACLProviderImpl. getEntitlements(Class<T> clazz, Resource resource, Identity identity)
protected ACLPermission
ACLProviderImpl. getInitialPermissions(Resource resource, String identityName)
This method retrieves the permissions the specified identity has over the specified resource.static String
Util. getResourceAsString(Resource resource)
Returns aString
representation of the specified resource.boolean
ACLProvider. isAccessGranted(Resource resource, Identity identity, ACLPermission permission)
Checks if the given identity has the permissions needed to access the specified resource.boolean
ACLProviderImpl. isAccessGranted(Resource resource, Identity identity, ACLPermission permission)
boolean
RoleBasedACLProviderImpl. isAccessGranted(Resource resource, Identity identity, ACLPermission permission)
This method overrides the default implementation to use roles instead of the identity name when checking for permissions.void
ACLRegistration. registerACL(Resource resource)
Registers anACL
associated with the specifiedResource
.void
ACLRegistration. registerACL(Resource resource, Collection<ACLEntry> entries)
Registers anACL
associated with the specifiedResource
using the supplied entries.boolean
ACLPersistenceStrategy. removeACL(Resource resource)
Removes theACL
associated with the specified resource.boolean
JPAPersistenceStrategy. removeACL(Resource resource)
void
ACLImpl. setResource(Resource resource)
Sets the resource associated with thisACL
.Constructors in org.jboss.security.acl with parameters of type Resource Constructor Description ACLImpl(Resource resource)
Builds an instance ofACLImpl
for the specified resource.ACLImpl(Resource resource, Collection<ACLEntry> entries)
Builds an instance ofACLImpl
for the specified resource, and initialize it with the specified entries.EntitlementEntry(Resource resource, ACLPermission permission, String identityOrRole)
Creates an instance ofEntitlementEntry
with the specified resource and permissions. -
Uses of Resource in org.jboss.security.authorization
Methods in org.jboss.security.authorization with parameters of type Resource Modifier and Type Method Description abstract int
AuthorizationContext. authorize(Resource resource)
Authorize the Resourceabstract int
AuthorizationContext. authorize(Resource resource, Subject subject, RoleGroup roles)
Authorize the resourceint
AuthorizationModule. authorize(Resource resource)
Authorize the resource -
Uses of Resource in org.jboss.security.authorization.modules
Methods in org.jboss.security.authorization.modules with parameters of type Resource Modifier and Type Method Description abstract int
AbstractAuthorizationModule. authorize(Resource resource)
abstract int
AbstractJACCModuleDelegate. authorize(Resource resource, Subject subject, RoleGroup role)
int
AllDenyAuthorizationModule. authorize(Resource resource)
int
AllPermitAuthorizationModule. authorize(Resource resource)
abstract int
AuthorizationModuleDelegate. authorize(Resource resource, Subject subject, RoleGroup role)
int
DelegatingAuthorizationModule. authorize(Resource resource)
int
JACCAuthorizationModule. authorize(Resource resource)
int
XACMLAuthorizationModule. authorize(Resource resource)
protected int
AbstractAuthorizationModule. invokeDelegate(Resource resource)
Subclasses can use this method to leave the authorization decision to the delegate configured -
Uses of Resource in org.jboss.security.authorization.modules.ejb
Methods in org.jboss.security.authorization.modules.ejb with parameters of type Resource Modifier and Type Method Description int
EJBJACCPolicyModuleDelegate. authorize(Resource resource, Subject callerSubject, RoleGroup role)
int
EJBPolicyModuleDelegate. authorize(Resource resource, Subject callerSubject, RoleGroup role)
int
EJBXACMLPolicyModuleDelegate. authorize(Resource resource, Subject callerSubject, RoleGroup role)
-
Uses of Resource in org.jboss.security.authorization.modules.web
Methods in org.jboss.security.authorization.modules.web with parameters of type Resource Modifier and Type Method Description int
WebAuthorizationModule. authorize(Resource resource)
int
WebJACCPolicyModuleDelegate. authorize(Resource resource, Subject callerSubject, RoleGroup role)
int
WebPolicyModuleDelegate. authorize(Resource resource, Subject subject, RoleGroup role)
int
WebXACMLPolicyModuleDelegate. authorize(Resource resource, Subject subject, RoleGroup role)
-
Uses of Resource in org.jboss.security.authorization.resources
Classes in org.jboss.security.authorization.resources that implement Resource Modifier and Type Class Description class
EJBResource
Represents an EJB Resourceclass
JavaEEResource
Represents a Java EE Resourceclass
WebResource
Represents a Resource for the Web Layer -
Uses of Resource in org.jboss.security.javaee
Methods in org.jboss.security.javaee with parameters of type Resource Modifier and Type Method Description protected void
AbstractJavaEEHelper. authorizationAudit(String level, Resource resource, Exception e)
abstract boolean
AbstractEJBAuthorizationHelper. authorize(Resource resource)
Authorize the EJBabstract boolean
AbstractEJBAuthorizationHelper. isCallerInRole(Resource resource, String roleName)
Check if the caller is in any of the roles -
Uses of Resource in org.jboss.security.plugins
Methods in org.jboss.security.plugins with parameters of type Resource Modifier and Type Method Description int
JBossAuthorizationManager. authorize(Resource resource)
int
JBossAuthorizationManager. authorize(Resource resource, Subject subject)
int
JBossAuthorizationManager. authorize(Resource resource, Subject subject, Group roleGroup)
int
JBossAuthorizationManager. authorize(Resource resource, Subject subject, RoleGroup role)
-
Uses of Resource in org.jboss.security.plugins.authorization
Methods in org.jboss.security.plugins.authorization with parameters of type Resource Modifier and Type Method Description int
JBossAuthorizationContext. authorize(Resource resource)
Authorize the Resourceint
JBossAuthorizationContext. authorize(Resource resource, Subject subject, RoleGroup callerRoles)
-
Uses of Resource in org.jboss.security.plugins.javaee
Methods in org.jboss.security.plugins.javaee with parameters of type Resource Modifier and Type Method Description boolean
EJBAuthorizationHelper. authorize(Resource resource)
boolean
EJBAuthorizationHelper. isCallerInRole(Resource resource, String roleName)
-
Uses of Resource in org.picketbox.core.authorization.resources
Classes in org.picketbox.core.authorization.resources that implement Resource Modifier and Type Class Description class
POJOResource
A resource denoting a POJO -
Uses of Resource in org.picketbox.plugins.authorization
Methods in org.picketbox.plugins.authorization with parameters of type Resource Modifier and Type Method Description int
PicketBoxAuthorizationModule. authorize(Resource resource)
-