|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.security.authorization.modules.AbstractAuthorizationModule
public abstract class AbstractAuthorizationModule
Abstraction of Authorization Module
| Field Summary | |
|---|---|
protected Map<org.jboss.security.authorization.ResourceType,String> |
delegateMap
Map of delegates for the various layers |
protected CallbackHandler |
handler
|
protected org.jboss.logging.Logger |
log
|
protected Map<String,Object> |
options
|
protected org.jboss.security.identity.RoleGroup |
role
|
protected Map<String,Object> |
sharedState
|
protected Subject |
subject
|
| Constructor Summary | |
|---|---|
AbstractAuthorizationModule()
|
|
| Method Summary | |
|---|---|
boolean |
abort()
|
abstract int |
authorize(org.jboss.security.authorization.Resource resource)
|
boolean |
commit()
|
boolean |
destroy()
|
protected AuthorizationModuleDelegate |
getDelegate(String delegateStr)
Load the delegate |
void |
initialize(Subject subject,
CallbackHandler handler,
Map<String,Object> sharedState,
Map<String,Object> options,
org.jboss.security.identity.RoleGroup subjectRole)
|
protected int |
invokeDelegate(org.jboss.security.authorization.Resource resource)
Subclasses can use this method to leave the authorization decision to the delegate configured |
protected void |
populateDelegateMap(String commaSeparatedDelegates)
Options may have a comma separated delegate map |
String |
toString()
Override to print more details |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Subject subject
protected CallbackHandler handler
protected Map<String,Object> sharedState
protected Map<String,Object> options
protected org.jboss.security.identity.RoleGroup role
protected org.jboss.logging.Logger log
protected Map<org.jboss.security.authorization.ResourceType,String> delegateMap
| Constructor Detail |
|---|
public AbstractAuthorizationModule()
| Method Detail |
|---|
public abstract int authorize(org.jboss.security.authorization.Resource resource)
authorize in interface org.jboss.security.authorization.AuthorizationModuleAuthorizationModule.authorize(Resource)
public boolean abort()
throws org.jboss.security.authorization.AuthorizationException
abort in interface org.jboss.security.authorization.AuthorizationModuleorg.jboss.security.authorization.AuthorizationExceptionAuthorizationModule.abort()
public boolean commit()
throws org.jboss.security.authorization.AuthorizationException
commit in interface org.jboss.security.authorization.AuthorizationModuleorg.jboss.security.authorization.AuthorizationExceptionAuthorizationModule.commit()public boolean destroy()
destroy in interface org.jboss.security.authorization.AuthorizationModuleAuthorizationModule.destroy()
public void initialize(Subject subject,
CallbackHandler handler,
Map<String,Object> sharedState,
Map<String,Object> options,
org.jboss.security.identity.RoleGroup subjectRole)
initialize in interface org.jboss.security.authorization.AuthorizationModuleAuthorizationModule#initialize(Subject, CallbackHandler, Map, Map, Role)public String toString()
toString in class Objectprotected int invokeDelegate(org.jboss.security.authorization.Resource resource)
protected AuthorizationModuleDelegate getDelegate(String delegateStr)
throws Exception
delegateStr - FQN of the delegate
Exceptionprotected void populateDelegateMap(String commaSeparatedDelegates)
commaSeparatedDelegates -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||