org.aselect.server.request.handler.saml11.websso.profile
Class BrowserArtifact
java.lang.Object
org.aselect.server.request.handler.saml11.websso.AbstractWebSSOProfile
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BrowserArtifact
public BrowserArtifact()
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>
- artifact_id - alias to the artifact that will be used
- id - alias to the artifact that will be used
- type (optional) - the Artifact type, must be '1' or '2'. If not configured '1' will be used
- sourcelocation - the sourcelocation that will be used when creating the Artifact
- 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/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 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()
- 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.