org.aselect.server.authspprotocol.handler
Class NullAuthSP
java.lang.Object
org.aselect.server.authspprotocol.handler.NullAuthSP
- All Implemented Interfaces:
- IAuthSPProtocolHandler
public class NullAuthSP
- extends java.lang.Object
- implements IAuthSPProtocolHandler
The Null AuthSP handler.
Description:
The Null AuthSP handler communicates with the Null AuthSP by using redirects.
The Null AuthSP is only for testing perposes and may not be used as a real
AuthSP in a production(live) environment
Concurrency issues:
-
- Author:
- Alfa & Ariss
Method Summary |
java.util.Hashtable |
computeAuthenticationRequest(java.lang.String sRid)
Sends an authentication request to the authsp. |
void |
init(java.lang.Object oAuthSPConfig,
java.lang.Object oAuthSPResource)
Initializes the NullAuthSP handler. |
java.util.Hashtable |
verifyAuthenticationResponse(java.util.Hashtable htAuthspResponse)
Checks the response from the NullAuthSP. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullAuthSP
public NullAuthSP()
init
public void init(java.lang.Object oAuthSPConfig,
java.lang.Object oAuthSPResource)
throws ASelectAuthSPException
- Initializes the NullAuthSP handler.
Resolves the following config items:
- The AuthSP id
- The url to the authsp (from the resource)
- The server id from the A-Select main config
- Specified by:
init
in interface IAuthSPProtocolHandler
- Parameters:
oAuthSPConfig
- Object
containing the authsp specific configuration.oAuthSPResource
- Object
containing the authsp specific resource(s).
- Throws:
ASelectAuthSPException
- If initialization fails.- See Also:
IAuthSPProtocolHandler.init(java.lang.Object, java.lang.Object)
computeAuthenticationRequest
public java.util.Hashtable computeAuthenticationRequest(java.lang.String sRid)
- Sends an authentication request to the authsp.
The response must contain the following parameters:
name |
value | encoded |
as_url | A-Select Server url | yes |
rid | A-Select Server request id | no |
uid | A-Select Server user ID | yes |
a-select-server | A-Select Server ID | no |
signature | signature of all paramaters in the above sequence | yes |
- Specified by:
computeAuthenticationRequest
in interface IAuthSPProtocolHandler
- Parameters:
sRid
- Needed parameter in the redirect URL. Can also be used
to retrieve session information from the SessionManager
.
- Returns:
Hashtable
containing at least:
- See Also:
IAuthSPProtocolHandler.computeAuthenticationRequest(java.lang.String)
verifyAuthenticationResponse
public java.util.Hashtable verifyAuthenticationResponse(java.util.Hashtable htAuthspResponse)
- Checks the response from the NullAuthSP.
The response must contain the following parameters:
name |
value | encoded |
rid | A-Select Server request id | no |
result_code | AuthSP result code | no |
a-select-server | A-Select Server ID | no |
signature | signature of all paramaters in the above sequence | yes |
- Specified by:
verifyAuthenticationResponse
in interface IAuthSPProtocolHandler
- Parameters:
htAuthspResponse
- Hashtable
containing all parameters that were
received from the AuthSP. It should contain at least:
- Returns:
Hashtable
containing at least:
- See Also:
IAuthSPProtocolHandler.verifyAuthenticationResponse(java.util.Hashtable)
Copyright © 2008 SURFnet BV. All Rights Reserved.