|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.security.authorization.AuthorizationContext
public abstract class AuthorizationContext
JBAS-3374: Authorization Framework for Policy Decision Modules For information on the behavior of the Authorization Modules, For Authorization Modules behavior(Required, Requisite, Sufficient and Optional) please refer to the javadoc for @see javax.security.auth.login.Configuration The AuthorizationContext derives the AuthorizationInfo(configuration for the modules) in the following way: a) If there has been an injection of ApplicationPolicy, then it will be used. b) Util.getApplicationPolicy will be used(which relies on SecurityConfiguration static class). c) Flag an error that there is no available Application Policy
| Field Summary | |
|---|---|
protected javax.security.auth.callback.CallbackHandler |
callbackHandler
|
protected java.util.List<ControlFlag> |
controlFlags
Control Flags for the individual modules |
static int |
DENY
|
protected java.util.List<AuthorizationModule> |
modules
Roles of the Subject |
static int |
PERMIT
|
protected java.lang.String |
securityDomainName
|
protected java.util.Map<java.lang.String,java.lang.Object> |
sharedState
|
| Constructor Summary | |
|---|---|
AuthorizationContext()
|
|
| Method Summary | |
|---|---|
abstract int |
authorize(Resource resource)
Authorize the Resource |
abstract int |
authorize(Resource resource,
javax.security.auth.Subject subject,
org.jboss.security.identity.RoleGroup roles)
Authorize the 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 javax.security.auth.callback.CallbackHandler callbackHandler
protected java.util.Map<java.lang.String,java.lang.Object> sharedState
protected java.util.List<AuthorizationModule> modules
protected java.util.List<ControlFlag> controlFlags
public static final int PERMIT
public static final int DENY
| Constructor Detail |
|---|
public AuthorizationContext()
| Method Detail |
|---|
public abstract int authorize(Resource resource)
throws AuthorizationException
resource -
AuthorizationException
public abstract int authorize(Resource resource,
javax.security.auth.Subject subject,
org.jboss.security.identity.RoleGroup roles)
throws AuthorizationException
resource - subject - Subject of the callerroles - Roles of the caller
AuthorizationExceptionpublic java.lang.String getSecurityDomain()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||