org.aselect.server.authspprotocol
Interface IAuthSPProtocolHandler

All Known Implementing Classes:
DBAuthSPHandler, IP, Ldap, NullAuthSP, PKI, Radius

public interface IAuthSPProtocolHandler

Interface that all AuthSP protocol handlers should implement.

Description:
Interface that all AuthSP protocol handlers should implement.

Concurrency issues:
-

Author:
Alfa & Ariss

Method Summary
 java.util.Hashtable computeAuthenticationRequest(java.lang.String sRid)
          Creation of an AuthSP specific redirect URL.
 void init(java.lang.Object oAuthSPConfig, java.lang.Object oAuthSPResource)
          Initializes the AuthSP protocol handler.
 java.util.Hashtable verifyAuthenticationResponse(java.util.Hashtable htResponse)
          Verification of an AuthSP specific response.
 

Method Detail

init

void init(java.lang.Object oAuthSPConfig,
          java.lang.Object oAuthSPResource)
          throws ASelectAuthSPException
Initializes the AuthSP protocol handler.
Description:
Initializes the AuthSP protocol handler with authsp handler specific configuration and resources.

Concurrency issues:
-
Preconditions:
-
Postconditions:
-

Parameters:
oAuthSPConfig - Object containing the authsp specific configuration.
oAuthSPResource - Object containing the authsp specific resource(s).
Throws:
ASelectAuthSPException - If initialization fails.

computeAuthenticationRequest

java.util.Hashtable computeAuthenticationRequest(java.lang.String sRid)
Creation of an AuthSP specific redirect URL.

Description:
The AuthSP handler should compute a redirect URL. In the response hashtable the AuthSP handler shall place "result" to indicate the processing result and "redirect_url" if everything is ok. The ASelectLoginHandler will redirect the user to this URL.
The created URL should contain AuthSP specific parameters.

Concurrency issues:
-

Preconditions:
-

Postconditions:
-

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

verifyAuthenticationResponse

java.util.Hashtable verifyAuthenticationResponse(java.util.Hashtable htResponse)
Verification of an AuthSP specific response.

Description:
AuthSP redirects user back to ASelectServer which will parse the response parameters in a Hashtable to this function. The AuthSP handler should verify the AuthSP specific parameters.

The AuthSP handler should verify the response from an AuthSP In the response hashtable the AuthSP handler shall place "result" to indicate the processing result and "rid" of the request if everything is ok

Concurrency issues:
-

Preconditions:
-

Postconditions:
-

Parameters:
htResponse - Hashtable containing all parameters that were received from the AuthSP. It should contain at least:
  • rid
Returns:
Hashtable containing at least:
  • result
  • rid


Copyright © 2008 SURFnet BV. All Rights Reserved.