|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.security.acl.ACLContext
public abstract class ACLContext
Represents a set of ACLProviders
| Field Summary | |
|---|---|
protected java.util.List<ControlFlag> |
controlFlags
Control Flags for the individual modules |
protected java.util.List<ACLProvider> |
modules
|
protected java.lang.String |
securityDomainName
|
protected java.util.Map<java.lang.String,java.lang.Object> |
sharedState
|
| Constructor Summary | |
|---|---|
ACLContext()
|
|
| Method Summary | ||
|---|---|---|
abstract int |
authorize(Resource resource,
Identity identity,
Permission permission)
Authorize access to the resource if the specified identity has the proper permissions. |
|
abstract
|
getEntitlements(java.lang.Class<T> clazz,
Resource resource,
Identity identity)
Instance Based Security Get all the entitlements assigned to the components of a Resource |
|
java.lang.String |
getSecurityDomain()
Return the Security Domain Name |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String securityDomainName
protected java.util.Map<java.lang.String,java.lang.Object> sharedState
protected java.util.List<ACLProvider> modules
protected java.util.List<ControlFlag> controlFlags
| Constructor Detail |
|---|
public ACLContext()
| Method Detail |
|---|
public abstract <T> EntitlementHolder<T> getEntitlements(java.lang.Class<T> clazz,
Resource resource,
Identity identity)
throws AuthorizationException
clazz - class type of the entitlementsresource - A Resource (Can be a Portal Resource, a Rules Resource)identity - The Identity against whom the entitlements need to be generated
AuthorizationException
public abstract int authorize(Resource resource,
Identity identity,
Permission permission)
throws AuthorizationException
Authorize access to the resource if the specified identity has the proper permissions.
resource - the Resource being accessed.identity - the Identity trying to access the resource.permission - the permissions required for access to be granted.
AuthorizationContext#PERMIT if access has been granted; AuthorizationContext#DENY
otherwise.
AuthorizationException - if an error occurs while authorizing access to the resource.public java.lang.String getSecurityDomain()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||