org.opensaml.provider
Class BrowserProfileProvider

java.lang.Object
  extended byorg.opensaml.provider.BrowserProfileProvider
All Implemented Interfaces:
SAMLBrowserProfile

public class BrowserProfileProvider
extends Object
implements SAMLBrowserProfile

Default implementation of the SAML 1.x browser profiles

Author:
Scott Cantor

Nested Class Summary
 
Nested classes inherited from class org.opensaml.SAMLBrowserProfile
SAMLBrowserProfile.ArtifactMapper, SAMLBrowserProfile.BrowserProfileRequest, SAMLBrowserProfile.BrowserProfileResponse
 
Field Summary
 
Fields inherited from interface org.opensaml.SAMLBrowserProfile
PROFILE_ARTIFACT_URI, PROFILE_POST_URI
 
Constructor Summary
BrowserProfileProvider(Element e)
           
 
Method Summary
 SAMLBrowserProfile.BrowserProfileRequest receive(javax.servlet.http.HttpServletRequest requestContext)
          Processes an HTTP request into a browser profile request.
 SAMLBrowserProfile.BrowserProfileResponse receive(StringBuffer issuer, SAMLBrowserProfile.BrowserProfileRequest requestContext, String recipient, ReplayCache replayCache, SAMLBrowserProfile.ArtifactMapper artifactMapper, int minorVersion)
          Processes an incoming POST or Artifact profile response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowserProfileProvider

public BrowserProfileProvider(Element e)
Method Detail

receive

public SAMLBrowserProfile.BrowserProfileRequest receive(javax.servlet.http.HttpServletRequest requestContext)
                                                 throws UnsupportedProfileException
Description copied from interface: SAMLBrowserProfile
Processes an HTTP request into a browser profile request.

Specified by:
receive in interface SAMLBrowserProfile
Parameters:
requestContext - The HTTP request from the client
Returns:
The profile request information extracted from the HTTP request
Throws:
UnsupportedProfileException - Raised if the HTTP request data cannot be successfully parsed
See Also:
SAMLBrowserProfile.receive(javax.servlet.http.HttpServletRequest)

receive

public SAMLBrowserProfile.BrowserProfileResponse receive(StringBuffer issuer,
                                                         SAMLBrowserProfile.BrowserProfileRequest requestContext,
                                                         String recipient,
                                                         ReplayCache replayCache,
                                                         SAMLBrowserProfile.ArtifactMapper artifactMapper,
                                                         int minorVersion)
                                                  throws SAMLException
Description copied from interface: SAMLBrowserProfile
Processes an incoming POST or Artifact profile response. Use the supportedProfiles parameter to specify support for one or both profiles. Upon completion, the response parameter will contain the SAML objects delivered by the profile. Signature verification is not performed by the default implementation but may be handled by alternate or subclassed versions.

Specified by:
receive in interface SAMLBrowserProfile
Parameters:
issuer - A buffer in which to store the issuer of the security token being processed, to assist in responding to errors
requestContext - The HTTP request containing the profile response
recipient - The HTTP endpoint to which the response was delivered
replayCache - An org.opensaml.ReplayCache interface to enable replay detection
artifactMapper - An ArtifactMapper interface to support artifact lookup/mapping (may be null if only POST is supported)
minorVersion - The minor version to support
Returns:
A wrapper object containing the data returned by the profile
Throws:
SAMLException - Raised if an error occurs during profile processing
See Also:
SAMLBrowserProfile.receive(java.lang.StringBuffer, org.opensaml.SAMLBrowserProfile.BrowserProfileRequest, java.lang.String, org.opensaml.ReplayCache, org.opensaml.SAMLBrowserProfile.ArtifactMapper, int)


Copyright ? 2005 UCAID. All Rights Reserved.