|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.sec.authz.jaccplus.impl.AbstractSubjectHandler
public abstract class AbstractSubjectHandler
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 |
---|
public static final java.lang.String ATTR_SUBJECT_ID
public static final java.lang.String ATTR_GROUP_ID
public static final java.lang.String ATTR_AUTH_TOKEN
Constructor Detail |
---|
public AbstractSubjectHandler()
Method Detail |
---|
public abstract java.util.List<java.lang.Object> getAttribute(java.lang.String key, EvaluationContext evalCtx) throws javax.security.jacc.PolicyContextException
IAttributesHandler
getAttribute
in interface IAttributesHandler
key
- The attribute key used to retrieve this attributeevalCtx
- The EvaluationContext in case any callbacks are required
public java.lang.String[] getSupportedAttributes()
IAttributesHandler
getSupportedAttributes
in interface IAttributesHandler
public boolean supports(java.lang.String key)
IAttributesHandler
supports
in interface IAttributesHandler
key
- The key for the attribute to retrieve.
protected java.lang.String convertTokenToString(org.w3c.dom.Element securityToken)
securityToken
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |