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

java.lang.Object
  extended by com.ibm.sec.authz.jaccplus.impl.AbstractRoleHandler
All Implemented Interfaces:
IAttributesHandler
Direct Known Subclasses:
ApplicationRoleHandler

public abstract class AbstractRoleHandler
extends java.lang.Object
implements IAttributesHandler

Abstract class used as a base for handlers that retrieve the names of Role attributes.

This class implements the IAttributesHandler interface which is used to implement handlers to retrieve attributes for use during runtime evaluation decisions.

The only supported attribute is:

 "urn:oasis:names:tc:xacml:2.0:subject:role"
 


Field Summary
static java.lang.String ATTR_SUBJECT_ROLE
           
 
Constructor Summary
AbstractRoleHandler()
           
 
Method Summary
abstract  java.util.List<java.lang.Object> getAttribute(java.lang.String key, EvaluationContext evalCtx)
          This method is used to retrieve all of the required attributes from the handler data.
 java.lang.String[] getSupportedAttributes()
          This method is used to retrieve all of the attributes that this Handler implementation can retrieve.
 boolean supports(java.lang.String key)
          Method used to check whether or not this handler implementation can retrieve this attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTR_SUBJECT_ROLE

public static final java.lang.String ATTR_SUBJECT_ROLE
See Also:
Constant Field Values
Constructor Detail

AbstractRoleHandler

public AbstractRoleHandler()
Method Detail

getSupportedAttributes

public java.lang.String[] getSupportedAttributes()
Description copied from interface: IAttributesHandler
This method is used to retrieve all of the attributes that this Handler implementation can retrieve.

Specified by:
getSupportedAttributes in interface IAttributesHandler
Returns:
String[]

supports

public boolean supports(java.lang.String key)
Description copied from interface: IAttributesHandler
Method used to check whether or not this handler implementation can retrieve this attribute.

Specified by:
supports in interface IAttributesHandler
Parameters:
key - The key for the attribute to retrieve.
Returns:
boolean True if this handler can retrieve the specifed attribute (key), otherwise returns false.

getAttribute

public abstract java.util.List<java.lang.Object> getAttribute(java.lang.String key,
                                                              EvaluationContext evalCtx)
                                                       throws javax.security.jacc.PolicyContextException
Description copied from interface: IAttributesHandler
This method is used to retrieve all of the required attributes from the handler data.

Specified by:
getAttribute in interface IAttributesHandler
Parameters:
key - The attribute key used to retrieve this attribute
evalCtx - The EvaluationContext in case any callbacks are required
Returns:
List. A list of all the attributes as Objects.
Throws:
javax.security.jacc.PolicyContextException


Copyright © 2009 IBM Corp. All Rights Reserved.