|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.sec.authz.jaccplus.impl.AuthzProviderImpl
public class AuthzProviderImpl
This class implements the IAuthzProvider
interface.
It is a wrapper between the IAuthzProvider and the
xacml4j evaluation engine. It will be used as the default
evaluator unless an external authorization provider is
implemented.
Constructor Summary | |
---|---|
AuthzProviderImpl(java.lang.String context,
com.ibm.sec.authz.xacml.provider.XACMLProviderFactory factory)
|
Method Summary | |
---|---|
com.ibm.sec.authz.xacml.provider.Response |
evaluate(com.ibm.sec.authz.xacml.provider.Request r,
java.lang.String contextID)
This method is used to make the actual evaluation decision. |
com.ibm.sec.authz.xacml.provider.EntitlementResponse |
getEntitlements(com.ibm.sec.authz.xacml.provider.EntitlementRequest r,
java.lang.String contextID)
This method is used to make an entitlements call. |
void |
lockPolicy(java.lang.String context)
Lock the policy for the given context, such that a series of evaluate() requests are evaluated against the same policy. |
void |
refresh()
Refresh the underlying policy. |
void |
shutdown()
Called on JACC cleanup(). |
void |
startup()
Called on JACC initialization (if being used as a JACC provider), or before the first authorization request. |
void |
unlockPolicy(java.lang.String context)
Unlock the policy for the given context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AuthzProviderImpl(java.lang.String context, com.ibm.sec.authz.xacml.provider.XACMLProviderFactory factory)
Method Detail |
---|
public com.ibm.sec.authz.xacml.provider.Response evaluate(com.ibm.sec.authz.xacml.provider.Request r, java.lang.String contextID)
IAuthzProvider
evaluate
in interface IAuthzProvider
r
- The XACML request.contextID
- The context under which to make the
evaluation decision.
public com.ibm.sec.authz.xacml.provider.EntitlementResponse getEntitlements(com.ibm.sec.authz.xacml.provider.EntitlementRequest r, java.lang.String contextID)
IAuthzProvider
getEntitlements
in interface IAuthzProvider
r
- The XACML request.contextID
- The context under which to make the entitlements call.
public void lockPolicy(java.lang.String context)
IAuthzProvider
lockPolicy
in interface IAuthzProvider
context
- The context under which to lock the policy.public void unlockPolicy(java.lang.String context)
IAuthzProvider
unlockPolicy
in interface IAuthzProvider
context
- The context under which to unlock the policy.public void refresh()
IAuthzProvider
refresh
in interface IAuthzProvider
public void shutdown()
IAuthzProvider
shutdown
in interface IAuthzProvider
public void startup()
IAuthzProvider
startup
in interface IAuthzProvider
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |