|
SiteMinder Java SDK r12.51 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netegrity.policyserver.smapi.SmAuthenticationContext
public class SmAuthenticationContext
Contains the various context classes passed to the method
authenticate()
in the custom authentication scheme class, and provides set... methods
that let the authentication scheme pass status and error messages to SiteMinder.
set... methods in this class pass information directly to SiteMinder.
| Method Summary | |
|---|---|
APIContext |
getAPIContext()
Retrieves the APIContext portion of this authentication context. |
int |
getMaxErrorTextSize()
Retrieves the maximum number of bytes that can be passed in setErrorText(). |
int |
getMaxUserTextSize()
Retrieves the maximum number of bytes that can be passed in setUserText(). |
long |
getSMFactoryHandle()
|
long |
getSMFactoryInterface()
|
UserContext |
getUserContext()
Retrieves the UserContext portion of this authentication context. |
UserCredentialsContext |
getUserCredentialsContext()
Retrieves the UserCredentialsContext
portion of this authentication context. |
void |
setErrorText(java.lang.String errorText)
Sets the error text response for this authentication request. |
void |
setUserText(java.lang.String userText)
Sets the user text response for this authentication request. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public APIContext getAPIContext()
Retrieves the APIContext portion of this authentication context.
AppSpecificContext
object. It also provides methods for sending log, trace, and error messages to the
Policy Server.
APIContext object.public UserContext getUserContext()
Retrieves the UserContext portion of this authentication context.
UserContext object.public UserCredentialsContext getUserCredentialsContext()
Retrieves the UserCredentialsContext
portion of this authentication context.
UserCredentialsContext object.public int getMaxUserTextSize()
setUserText().
public long getSMFactoryInterface()
public long getSMFactoryHandle()
public void setUserText(java.lang.String userText)
Sets the user text response for this authentication request.
The response can contain challenge text or any other message that the scheme developer wants to present to the user. The message is ultimately passed to the user through a mechanism external to SiteMinder -- for example, the agent stores this message in theHTTP_SM_USERMSG HTTP variable.
For RADIUS authentication, the message is returned in the
REPLY-MESSAGE response attribute.
authenticate().
getMaxUserTextSize(), the
message is truncated.
userText - The user text to pass to the Policy Server.public int getMaxErrorTextSize()
setErrorText().
public void setErrorText(java.lang.String errorText)
Sets the error text response for this authentication request. Use this method to send an error message to SiteMinder.
This method is also used to specify a URL in cases where the agent is to redirect the user. When you specify a redirection URL with this method, specifyREASON_ERROR_MESSAGE_IS_REDIRECT
in the reason parameter of the constructor for the
SmAuthenticationResult you return from
authenticate().
getMaxErrorTextSize(), the
message is truncated.
errorText - The error text to pass to the Policy Server.
|
Java SDK r12.51 Mon 04/08/2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||