public interface ContextHandler
ContextHandlerinterface provides a way for an internal Weblogic container to pass additional information to a WebLogic Security Framework call, so that a security provider can obtain additional context information beyond what is provided by the arguments to a particular method. A
ContextHandleris essentially a name/value list and as such, it requires a security provider to know what names to look for (that is, use of a
ContextHandlerrequires close cooperation between the Weblogic container and a security provider). The name/value list is also called a context element, and is represented by a
ContextHandler argument is passed into the
method of an
AccessDecision, so you can view this method as an example.
As another example, if one was attempting to access a file in a directory, the
name of that file could be passed through a
|Modifier and Type||Method||Description|
Gets a list of
Gets a value for the specified
Gets an array of
Provides a count of the number of
ContextElements that the handler is able to return.
ContextElements that can be requested. A value of
-1indicates that the handler is unable to return the exact count.
ContextElementnames that can be requested.
ContextElements that can be requested, represented as an array of Strings.
java.lang.Object getValue(java.lang.String name)
name- the name of the
ContextElementfor which a value should be returned, represented as a String.
Objectthat contains the value of the requested name. If the value of the
nameparameter is unknown, a
nullvalue is returned.
ContextElement getValues(java.lang.String names)
ContextElementobjects containing values for each of the named elements that are known.
names- the names of the
ContextElements to be returned, represented as an array of Strings.
ContextElementobject for each of the named elements found in the
namesparameter. The value for the requested element is returned as a
java.lang.Object. As a result, the caller must know the data type of the value.
If a name in the
names parameter is unknown, the
name will not appear in the array of