|
SiteMinder Java SDK r12.51 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MessageConsumerPlugin
The base interface for providing Message Consumer Extension functionality. This plug-in extends the SiteMinder SAML 1.x, SAML 2.0 and the WS-Federation authentication schemes.
To develop the plug-in implementation:
To integrate the MessageConsumerPlugin with the SiteMinder SAML or WS-Federation authentication scheme:
MessageConsumerPlugin Java file. It requires the following dependent libraries
installed with SiteMinder Policy Server:
\siteminder\bin\jars\SmJavaApi.jar
There is an identical copy of SmJavaApi.jar installed with SiteMinder SDK,
<InstallationRoot>\sdk\java\SmJavaApi.jar.
You can use either of them at development time.\siteminder\config\JVMOptions.txt for the "-Djava.class.path" setting so
that the plug-in class can be loaded with the modified classpath. Do not modify the ClassPath for the
existing xerces.jar, xalan.jar, or SmJavaApi.jar.MessageConsumerPlugin each time the plug-in Java file is recompiled.IdpPluginClass and IdpPluginParameters.
| Field Summary | |
|---|---|
static int |
AUTH_REASON_FEDERATION_USER_NOT_IN_DIR
Constant to indicate the configuration does not provide correct or sufficient information. |
static int |
AUTH_REASON_INVALID_MESSAGE
Constant to indicate the response message is not formed correctly. |
static int |
AUTH_REASON_NO_LOGIN_ID
Constant to indicate the configuration does not provide correct or sufficient information. |
static int |
AUTH_REASON_UNACCEPTED_MESSAGE
Constant to indicate the response message is not accepted as a user credential. |
static int |
FAILURE
Constant to indicate the processing of the response message has failed. |
static int |
SUCCESS
Constant to indicate successful processing of the response message. |
| Method Summary | |
|---|---|
boolean |
init(APIContext context)
Performs any initialization procedures that MessageConsumerPlugin
requires. |
int |
postAuthenticateUser(APIContext apiContext,
java.lang.String parameters,
java.lang.String message,
java.util.Map props,
int statusCode)
Performs customization of federation credential validation. |
int |
postDisambiguateUser(APIContext apiContext,
UserContext userContext,
java.lang.String parameters,
java.lang.String message,
java.util.Map props,
java.lang.String loginID,
java.lang.StringBuffer output)
Performs additional user disambiguation. |
boolean |
release(APIContext context)
Performs any close-down procedures that the MessageConsumerPlugin requires. |
| Field Detail |
|---|
static final int AUTH_REASON_NO_LOGIN_ID
LoginID is unattainable from the federation message.
static final int AUTH_REASON_FEDERATION_USER_NOT_IN_DIR
static final int AUTH_REASON_INVALID_MESSAGE
static final int AUTH_REASON_UNACCEPTED_MESSAGE
static final int SUCCESS
static final int FAILURE
UnknownUser authentication reason.
| Method Detail |
|---|
boolean init(APIContext context)
throws java.lang.Exception
Performs any initialization procedures that MessageConsumerPlugin
requires.
SiteMinder calls this method when this MessageConsumerPlugin
object is loaded. SiteMinder maintains a cache for all the instances,
one instance per Policy Server.
Each MessageConsumerPlugin is initialized only once.
context - A context object that provides methods for sending log,
trace and error messages to the Policy Server.
true if the initialization succeeds.
java.lang.Exception - Thrown if anything happens unexpectedly;
it is treated as an error.
boolean release(APIContext context)
throws java.lang.Exception
Performs any close-down procedures that the
MessageConsumerPlugin requires.
SiteMinder calls this method once for each instance of
MessageConsumerPlugin class, when this object is unloaded,
or SiteMinder is shutting down. SiteMinder maintains a
cache for all the instances, one instance per Policy Server.
Each MessageConsumerPlugin is released only once.
context - A context object that provides methods for sending log,
trace and error messages to the Policy Server.
true if the shutdown succeeds.
java.lang.Exception - Thrown if anything happens unexpectedly;
it is treated as an error.
int postDisambiguateUser(APIContext apiContext,
UserContext userContext,
java.lang.String parameters,
java.lang.String message,
java.util.Map props,
java.lang.String loginID,
java.lang.StringBuffer output)
throws java.lang.Exception
_DecryptedAssertion key of the
props parameter.
apiContext - A context object that provides methods for sending log,
trace, and error messages to the Policy Server.userContext - A context object that provides directory information
for user disambiguation.parameters - The parameters string configured with the plug-in.message - The federation message, which is the SAML Response element.props - The Map object that contains all the name/value pair settings defined
for the authentication scheme.loginID - The available loginID, which can be used to search the user in the directoryoutput - The result buffer, which contains the user DN.
java.lang.Exception - Thrown when an error has occurred.
int postAuthenticateUser(APIContext apiContext,
java.lang.String parameters,
java.lang.String message,
java.util.Map props,
int statusCode)
throws java.lang.Exception
Performs customization of federation credential validation.
apiContext - A context object that provides methods for sending log,
trace, and error messages to the Policy Server.parameters - The parameters string configured with the plug-in.message - The federation message, which is the SAML Response elementprops - The Map object that contains all the name/value pair settings defined
for the authentication schemestatusCode - The current processing status.
java.lang.Exception - Thrown when an error has occurred.
|
Java SDK r12.51 Mon 04/08/2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||