| javax.security.jacc.PolicyContextHandler
PolicyContextHandler | public interface PolicyContextHandler (Code) | | JACC interface which defines the methods that must be implemented by
handlers that are to be registered and activated by PolicyContexts
See Also: http://java.sun.com/j2ee/1.4/docs/api/ author: Scott.Stark@jboss.org author: Ron Monzillo, Gary Ellison (javadoc) version: $Revision: 57196 $ |
Method Summary | |
public Object | getContext(String key, Object data) Used by the PolicyContext class to activate the handler and obtain from
it the context object identified by the given key. | public String[] | getKeys() Get the keys identifying the context objects supported by this handlers
getContext(String, Object) method. | public boolean | supports(String key) Query the handler to see if its getContext(String, Object) method
supports the given key.
Parameters: key - - the context object key to check. |
getContext | public Object getContext(String key, Object data) throws PolicyContextException(Code) | | Used by the PolicyContext class to activate the handler and obtain from
it the context object identified by the given key. In addition
to the key, the handler will be activated with the handler data value
associated within the PolicyContext class with the thread on which the
call to this method is made.
Parameters: key - - a non-null key indicating which context to return. Parameters: data - - the possiblye null handler data Object associated with thethread on which the call to this method has been made. The container and handler specific Object containing the desiredcontext. A null value may be returned if the value of the correspondingcontext is null. throws: PolicyContextException - |
getKeys | public String[] getKeys() throws PolicyContextException(Code) | | Get the keys identifying the context objects supported by this handlers
getContext(String, Object) method.
The value of each key supported by a handler must be a non-null String
value.
the list of supported context object keys. throws: PolicyContextException - |
supports | public boolean supports(String key) throws PolicyContextException(Code) | | Query the handler to see if its getContext(String, Object) method
supports the given key.
Parameters: key - - the context object key to check. true if the key is supported, false otherwise throws: PolicyContextException - |
|
|