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

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

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

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

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

Supported attributes are:

 "urn:oasis:names:tc:xacml:1.0:subject:subject-id"
 "urn:oasis:names:tc:xacml:1.0:subject:group-id"
 "http://security.tivoli.ibm.com/attributes/subject/authenticationToken"
 


Field Summary
static java.lang.String ATTR_AUTH_TOKEN
           
static java.lang.String ATTR_GROUP_ID
           
static java.lang.String ATTR_SUBJECT_ID
           
 
Constructor Summary
AbstractSubjectHandler()
           
 
Method Summary
protected  java.lang.String convertTokenToString(org.w3c.dom.Element securityToken)
          Convert the passed XML security token into a string.
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_ID

public static final java.lang.String ATTR_SUBJECT_ID
See Also:
Constant Field Values

ATTR_GROUP_ID

public static final java.lang.String ATTR_GROUP_ID
See Also:
Constant Field Values

ATTR_AUTH_TOKEN

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

AbstractSubjectHandler

public AbstractSubjectHandler()
Method Detail

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

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.

convertTokenToString

protected java.lang.String convertTokenToString(org.w3c.dom.Element securityToken)
Convert the passed XML security token into a string.

Parameters:
securityToken -
Returns:


Copyright © 2009 IBM Corp. All Rights Reserved.