|
SiteMinder Java SDK r12.51 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ActiveExpression
The base interface in the Java Authorization API that each class providing custom authorization functionality must implement. SiteMinder calls the methods in the custom class.
The Java Authorization API lets you implement custom functionality for controlling access to protected resources. The functionality is provided through custom Java classes that are referenced in Policy Server active expressions. An active expression is a string of variable definitions that appears in the following Policy Server objects:ActiveExpression
should be implemented on a stateless model that does not depend on
instance state stored in member variables of the ActiveExpression class.
| Method Summary | |
|---|---|
int |
init(APIContext context)
Performs any initialization procedures that the custom Java class requires. |
java.lang.String |
invoke(ActiveExpressionContext context,
java.lang.String parameter)
Performs the custom authorization functionality in the ActiveExpression object and returns a result. |
int |
release(APIContext context)
Performs any rundown procedures that the ActiveExpression object requires. |
| Method Detail |
|---|
int init(APIContext context)
throws java.lang.Exception
Performs any initialization procedures that the custom Java class requires.
SiteMinder calls this method once per instance of the customActiveExpression class.
context - A context object that includes access to
AppSpecificContext.
It also provides methods for sending log, trace,
and error messages to the Policy Server.
java.lang.Exception
java.lang.String invoke(ActiveExpressionContext context,
java.lang.String parameter)
throws java.lang.Exception
Performs the custom authorization functionality in the
ActiveExpression object and returns a result.
context - A context object that includes access to
AppSpecificContext.
This object also provides methods for sending log, trace,
and error messages to the Policy Server.parameter - The optional parameter string specified in the Policy Server
User Interface, used in any way that the custom
class requires.
FALSE,
F, or 0. Any other result causes
the policy to fire.
WebAgent-OnReject-Redirect. SiteMinder expects
the result string to specify a location, such as a URL,
to redirect a user who is denied access to a resource.
WebAgent-HTTP-Cookie-Variable. SiteMinder expects
that the result string, such as the user’s common name, is to be
assigned to a cookie variable. You can use the result string any
way you like, such as to display the user’s common name to
personalize a form.
For more information about resonse attributes, see the
chapter "Using SiteMinder with Web Applications" in the
CA eTrust SiteMinder Agent Guide.
java.lang.Exception
int release(APIContext context)
throws java.lang.Exception
Performs any rundown procedures that the
ActiveExpression object requires.
ActiveExpression class, when SiteMinder is shutting down.
context - A context object that includes access to
AppSpecificContext.
It also provides methods for sending log, trace,
and error messages to the Policy Server.
java.lang.Exception
|
Java SDK r12.51 Mon 04/08/2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||