com.ibm.sec.authz.jaccplus.impl
Class ApplicationRoleHandler
java.lang.Object
com.ibm.sec.authz.jaccplus.impl.AbstractRoleHandler
com.ibm.sec.authz.jaccplus.impl.ApplicationRoleHandler
All Implemented Interfaces: IAttributesHandler
public class ApplicationRoleHandler extends AbstractRoleHandler
This class is used to retrieve the names of role attributes.
The roles must be set up prior to using this object at runtime
via the use of the setRoles method.
The only supported attribute key is:
"urn:oasis:names:tc:xacml:2.0:subject:role"
Method Summary
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.
void
setRoles (java.lang.String[] roles)
Method used to set the handler data for the current thread.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
INSTANCE
public static final ApplicationRoleHandler INSTANCE
The singleton instance of this object
setRoles
public void setRoles (java.lang.String[] roles)
Method used to set the handler data for the current thread.
ie the role names
Parameters: roles
- The roles to be used for the evaluation in this
thread
getAttribute
public 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
Specified by: getAttribute
in class AbstractRoleHandler
Parameters: key
- The attribute key used to retrieve this attributeevalCtx
- 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.