|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.aselect.server.authspprotocol.handler.Ldap
public class Ldap
The Ldap AuthSP Handler.
Description:
The Ldap AuthSP Handler communicates with the Ldap AuthSP by redirecting
the client.
Concurrency issues:
None
Protocol Description
Outgoing request going to the Ldap AuthSP:
| name | value |
| rid | A-Select Server request id |
| as_url | A-Select Server url |
| uid | A-Select Server user ID |
| a-select-server | A-Select Server ID |
| signature | signature of all paramaters in the above sequence |
| name | value |
| rid | A-Select Server request id |
| result_code | AuthSP result code |
| a-select-server | A-Select Server ID |
| signature | Signature over the following data:
|
| Constructor Summary | |
|---|---|
Ldap()
|
|
| Method Summary | |
|---|---|
java.util.Hashtable |
computeAuthenticationRequest(java.lang.String sRid)
Creates the authentication request URL. |
void |
handleDirectLoginRequest(java.util.Hashtable htServiceRequest,
javax.servlet.http.HttpServletResponse servletResponse,
java.io.PrintWriter pwOut,
java.lang.String sServerId,
javax.servlet.http.HttpServletRequest servletRequest)
handles all the incoming direct login requests for the LDAP AuthSP |
void |
init(java.lang.Object oAuthSPConfig,
java.lang.Object oAuthSPResource)
Initializes the Ldap AuthSP handler. |
void |
init(java.lang.String sAuthSPId)
new init function. |
java.util.Hashtable |
verifyAuthenticationResponse(java.util.Hashtable htAuthspResponse)
Verifies the response from the AuthSP. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Ldap()
| Method Detail |
|---|
public void init(java.lang.Object oAuthSPConfig,
java.lang.Object oAuthSPResource)
throws ASelectAuthSPException
Ldap AuthSP handler.
init in interface IAuthSPProtocolHandleroAuthSPConfig - Object containing the authsp specific configuration.oAuthSPResource - Object containing the authsp specific resource(s).
ASelectAuthSPException - If initialization fails.IAuthSPProtocolHandler.init(java.lang.Object, java.lang.Object)
public void init(java.lang.String sAuthSPId)
throws ASelectAuthSPException
init in interface IAuthSPDirectLoginProtocolHandlersAuthSPId - String containing the AuthSP Id.
ASelectAuthSPException - If initialization fails.IAuthSPDirectLoginProtocolHandler.init(java.lang.String)public java.util.Hashtable computeAuthenticationRequest(java.lang.String sRid)
| key | value |
| result |
Errors.ERROR_ASELECT_SUCCESS or an error code
if creating the authentication request URL fails
|
| redirect_url | The URL to the AuthSP including the protocol parameters as specified if the class description. |
computeAuthenticationRequest in interface IAuthSPProtocolHandlersRid - Needed parameter in the redirect URL. Can also be used
to retrieve session information from the SessionManager.
Hashtable containing at least:
resultredirect_urlIAuthSPProtocolHandler.computeAuthenticationRequest(java.lang.String)public java.util.Hashtable verifyAuthenticationResponse(java.util.Hashtable htAuthspResponse)
htAuthspResponse and are
described in the class description.
| key | value |
| result |
Errors.ERROR_ASELECT_SUCCESS or an error code
if the authentication response was invalid or the user was
not authenticated.
|
| rid | The A-Select request identifier of this authentication. |
verifyAuthenticationResponse in interface IAuthSPProtocolHandlerhtAuthspResponse - Hashtable containing all parameters that were
received from the AuthSP. It should contain at least:
rid
Hashtable containing at least:
result
rid
IAuthSPProtocolHandler.verifyAuthenticationResponse(java.util.Hashtable)
public void handleDirectLoginRequest(java.util.Hashtable htServiceRequest,
javax.servlet.http.HttpServletResponse servletResponse,
java.io.PrintWriter pwOut,
java.lang.String sServerId,
javax.servlet.http.HttpServletRequest servletRequest)
throws ASelectException
handleDirectLoginRequest in interface IAuthSPDirectLoginProtocolHandlerASelectExceptionorg.aselect.server.authspprotocol.IAuthSPDirectLoginProtocolHandler#handleDirectLoginRequest(java.util.Hashtable, javax.servlet.http.HttpServletResponse, java.io.PrintWriter, java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||