org.aselect.server.request.handler.saml11.websso.profile
Class BrowserPost
java.lang.Object
org.aselect.server.request.handler.saml11.websso.AbstractWebSSOProfile
org.aselect.server.request.handler.saml11.websso.profile.BrowserPost
- All Implemented Interfaces:
- IWebSSOProfile
public class BrowserPost
- extends AbstractWebSSOProfile
Browser/Post websso profile.
Description:
Sends a SAML Browser/Post response.
Concurrency issues:
-
- Author:
- Alfa & Ariss
Method Summary |
void |
destroy()
Clears class variables from memory. |
void |
init(java.lang.Object oConfig,
long lAssertionExpireTime,
java.lang.String sAttributeNamespace,
boolean bSendAttributeStatement)
Initializes the Browser/Post 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/Post response. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BrowserPost
public BrowserPost()
init
public void init(java.lang.Object oConfig,
long lAssertionExpireTime,
java.lang.String sAttributeNamespace,
boolean bSendAttributeStatement)
throws ASelectException
- Initializes the Browser/Post SAML 1.1 web sso profile handler.
Description:
Reads the following configuration:
<profile>
<template>[template]</template>
</profile>
- template - file name of the Browser/Post template, the file must be
located in [working_dir]/aselectserver/conf/html/
- Specified by:
init
in interface IWebSSOProfile
- Overrides:
init
in class AbstractWebSSOProfile
- Parameters:
oConfig
- object containing the configuration used by the A-Select
ConfigManagerlAssertionExpireTime
- the configured assertion expire timesAttributeNamespace
- the configured attribute namespace that will
be used for creating attributesbSendAttributeStatement
- 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/Post 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/Post will be created, with Authentication Assertion
, (optional) attribute assertion
- The SAML response will be signed with the default A-Select Server
private key
Concurrency issues:
-
Preconditions:
- htInfo != null
- response != null
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 itemsresponse
- the HttpServletResponse were to the SAML response will be
sentsIP
- the client IP addresssHost
- 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()
- Clears class variables from memory.
- Specified by:
destroy
in interface IWebSSOProfile
- Specified by:
destroy
in class AbstractWebSSOProfile
- See Also:
AbstractWebSSOProfile.destroy()
Copyright © 2008 SURFnet BV. All Rights Reserved.