org.aselect.server.authspprotocol.handler
Class NullAuthSP

java.lang.Object
  extended by 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

Constructor Summary
NullAuthSP()
           
 
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
 

Constructor Detail

NullAuthSP

public NullAuthSP()
Method Detail

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 valueencoded
as_urlA-Select Server urlyes
ridA-Select Server request idno
uidA-Select Server user IDyes
a-select-serverA-Select Server IDno
signaturesignature of all paramaters in the above sequenceyes


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:
  • result
  • redirect_url
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 valueencoded
ridA-Select Server request idno
result_codeAuthSP result codeno
a-select-serverA-Select Server IDno
signaturesignature of all paramaters in the above sequenceyes


Specified by:
verifyAuthenticationResponse in interface IAuthSPProtocolHandler
Parameters:
htAuthspResponse - Hashtable containing all parameters that were received from the AuthSP. It should contain at least:
  • rid
Returns:
Hashtable containing at least:
  • result
  • rid
See Also:
IAuthSPProtocolHandler.verifyAuthenticationResponse(java.util.Hashtable)


Copyright © 2008 SURFnet BV. All Rights Reserved.