com.ibm.sec.authz.jaccplus.impl
Class AuthzProviderImpl

java.lang.Object
  extended by com.ibm.sec.authz.jaccplus.impl.AuthzProviderImpl
All Implemented Interfaces:
IAuthzProvider

public class AuthzProviderImpl
extends java.lang.Object
implements IAuthzProvider

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

AuthzProviderImpl

public AuthzProviderImpl(java.lang.String context,
                         com.ibm.sec.authz.xacml.provider.XACMLProviderFactory factory)
Method Detail

evaluate

public com.ibm.sec.authz.xacml.provider.Response evaluate(com.ibm.sec.authz.xacml.provider.Request r,
                                                          java.lang.String contextID)
Description copied from interface: IAuthzProvider
This method is used to make the actual evaluation decision.

Specified by:
evaluate in interface IAuthzProvider
Parameters:
r - The XACML request.
contextID - The context under which to make the evaluation decision.
Returns:
Response

getEntitlements

public com.ibm.sec.authz.xacml.provider.EntitlementResponse getEntitlements(com.ibm.sec.authz.xacml.provider.EntitlementRequest r,
                                                                            java.lang.String contextID)
Description copied from interface: IAuthzProvider
This method is used to make an entitlements call.

Specified by:
getEntitlements in interface IAuthzProvider
Parameters:
r - The XACML request.
contextID - The context under which to make the entitlements call.
Returns:
the response to the entitlement query.

lockPolicy

public void lockPolicy(java.lang.String context)
Description copied from interface: IAuthzProvider
Lock the policy for the given context, such that a series of evaluate() requests are evaluated against the same policy.

Specified by:
lockPolicy in interface IAuthzProvider
Parameters:
context - The context under which to lock the policy.

unlockPolicy

public void unlockPolicy(java.lang.String context)
Description copied from interface: IAuthzProvider
Unlock the policy for the given context.

Specified by:
unlockPolicy in interface IAuthzProvider
Parameters:
context - The context under which to unlock the policy.

refresh

public void refresh()
Description copied from interface: IAuthzProvider
Refresh the underlying policy.

Specified by:
refresh in interface IAuthzProvider

shutdown

public void shutdown()
Description copied from interface: IAuthzProvider
Called on JACC cleanup().

Specified by:
shutdown in interface IAuthzProvider

startup

public void startup()
Description copied from interface: IAuthzProvider
Called on JACC initialization (if being used as a JACC provider), or before the first authorization request.

Specified by:
startup in interface IAuthzProvider


Copyright © 2009 IBM Corp. All Rights Reserved.