org.aselect.server.request.handler.saml11.websso.profile
Class BrowserArtifact

java.lang.Object
  extended by org.aselect.server.request.handler.saml11.websso.AbstractWebSSOProfile
      extended by org.aselect.server.request.handler.saml11.websso.profile.BrowserArtifact
All Implemented Interfaces:
IWebSSOProfile

public class BrowserArtifact
extends AbstractWebSSOProfile

Browser/Artifact websso profile.

Description:
Sends a SAML Browser/Artifact response.

Concurrency issues:
-

Author:
Alfa & Ariss

Field Summary
 
Fields inherited from class org.aselect.server.request.handler.saml11.websso.AbstractWebSSOProfile
_configManager, _lAssertionExpireTime, _oSessionManager, _oTGTManager, _sASelectServerID, _systemLogger, SESSION_ID_PREFIX
 
Constructor Summary
BrowserArtifact()
           
 
Method Summary
 void destroy()
          Clear class variables from memory

 void init(java.lang.Object oConfig, long lAssertionExpireTime, java.lang.String sAttributeNamespace, boolean bSendAttributeStatement)
          Initializes the Browser/Artifact SAML 1.1 web sso profile handler.
 void process(java.util.Hashtable htInfo, javax.servlet.http.HttpServletResponse response, java.lang.String sIP, java.lang.String sHost)
          Sends the SAML 1.1 Browser/Artifact response.
 
Methods inherited from class org.aselect.server.request.handler.saml11.websso.AbstractWebSSOProfile
createSAMLAssertion, getID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowserArtifact

public BrowserArtifact()
Method Detail

init

public void init(java.lang.Object oConfig,
                 long lAssertionExpireTime,
                 java.lang.String sAttributeNamespace,
                 boolean bSendAttributeStatement)
          throws ASelectException
Initializes the Browser/Artifact SAML 1.1 web sso profile handler.

Description:
Reads the following configuration:

<profile artifact=[artifact_id] ...>
 <artifact id='[id]' type='[type]'/>
 <artifact id='[id]' type='[type]'>
  <sourcelocation>[sourcelocation]</sourcelocation>
 </artifact>
</profile>



Specified by:
init in interface IWebSSOProfile
Overrides:
init in class AbstractWebSSOProfile
Parameters:
oConfig - object containing the configuration used by the A-Select ConfigManager
lAssertionExpireTime - the configured assertion expire time
sAttributeNamespace - the configured attribute namespace that will be used for creating attributes
bSendAttributeStatement - TRUE if the Attribute Statement must be send direclty
Throws:
ASelectException - if initialization fails
See Also:
IWebSSOProfile.init(java.lang.Object, long, java.lang.String, boolean)

process

public void process(java.util.Hashtable htInfo,
                    javax.servlet.http.HttpServletResponse response,
                    java.lang.String sIP,
                    java.lang.String sHost)
             throws ASelectException
Sends the SAML 1.1 Browser/Artifact response.

Description:
The htInfo contains the response parameters of the verify_credentials request.
Uses the following parameters from htInfo:
  • rid
  • uid


  • The session will be retrieved
  • The SAML Browser/Artifact will be created , (optional) attribute assertion
  • A SAML Assertion will be created and put in the Assertion session manager


  • Concurrency issues:
    -

    Preconditions:
  • htInfo != null
  • response != null

  • The following information will not be used:
  • sIP
  • sHost


  • Session must contain the following items:
  • shire
  • target
  • providerId


  • Postconditions:
    -

    Specified by:
    process in interface IWebSSOProfile
    Specified by:
    process in class AbstractWebSSOProfile
    Parameters:
    htInfo - containing the A-Select verify_credentials response items
    response - the HttpServletResponse were to the SAML response will be sent
    sIP - the client IP address
    sHost - the host representation of the clients IP address
    Throws:
    ASelectException - if processing fails
    See Also:
    IWebSSOProfile.process(java.util.Hashtable, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)

    destroy

    public void destroy()
    Clear class variables from memory

    Specified by:
    destroy in interface IWebSSOProfile
    Specified by:
    destroy in class AbstractWebSSOProfile
    See Also:
    IWebSSOProfile.destroy()


    Copyright © 2008 SURFnet BV. All Rights Reserved.