org.opensaml
Class SAMLSOAPBinding

java.lang.Object
  extended byorg.opensaml.SAMLSOAPBinding
All Implemented Interfaces:
SAMLBinding

public class SAMLSOAPBinding
extends java.lang.Object
implements SAMLBinding

Base class for policy-specific SOAP over HTTP binding implementations

Author:
Scott Cantor

Field Summary
protected  SAMLConfig config
          OpenSAML configuration
 
Fields inherited from interface org.opensaml.SAMLBinding
SAML_SOAP_HTTPS
 
Constructor Summary
SAMLSOAPBinding()
          Defeault constructor for a SAMLSOAPBinding object
 
Method Summary
 SAMLRequest receive(java.lang.Object reqContext)
          Process the receipt of a SAML request
 SAMLRequest receive(java.lang.Object reqContext, java.lang.StringBuffer requester)
          Deprecated.  
 void respond(java.lang.Object respContext, SAMLResponse response, SAMLException e)
          Return a response to a requester
 SAMLResponse send(SAMLAuthorityBinding bindingInfo, SAMLRequest request)
          Used by requester to send a SAML request to an authority, and obtain a response in return
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

config

protected SAMLConfig config
OpenSAML configuration

Constructor Detail

SAMLSOAPBinding

public SAMLSOAPBinding()
Defeault constructor for a SAMLSOAPBinding object

Method Detail

send

public SAMLResponse send(SAMLAuthorityBinding bindingInfo,
                         SAMLRequest request)
                  throws SAMLException
Used by requester to send a SAML request to an authority, and obtain a response in return

Specified by:
send in interface SAMLBinding
Parameters:
bindingInfo - Defines the binding protocol and the authority to contact
request - SAML request to send
Returns:
SAML response received from authority
Throws:
SAMLException - Base class of exceptions that may be thrown during processing

receive

public SAMLRequest receive(java.lang.Object reqContext,
                           java.lang.StringBuffer requester)
                    throws SAMLException
Deprecated.  

Process the receipt of a SAML request

NOTE to implementors: If you want to talk to authorities that use this implementation as their foundation, do not specify xmlns:xsd or xmlns:xsi in your SOAP request, or if you do, specify the 2001 schema namespaces. Any valid SOAP 1.1 envelope should validate, just don't let your toolkit generate the schema prefixes.

Specified by:
receive in interface SAMLBinding
Parameters:
reqContext - An instance of HttpServletRequest
requester - The authenticated name of the requester, determined from an SSL client certificate, or HTTP authentication
Returns:
A SAML request
Throws:
SAMLException - Base class of exceptions that may be thrown during processing

receive

public SAMLRequest receive(java.lang.Object reqContext)
                    throws SAMLException
Process the receipt of a SAML request

NOTE to implementors: If you want to talk to authorities that use this implementation as their foundation, do not specify xmlns:xsd or xmlns:xsi in your SOAP request, or if you do, specify the 2001 schema namespaces. Any valid SOAP 1.1 envelope should validate, just don't let your toolkit generate the schema prefixes.

Specified by:
receive in interface SAMLBinding
Parameters:
reqContext - An instance of HttpServletRequest
Returns:
A SAML request
Throws:
SAMLException - Base class of exceptions that may be thrown during processing

respond

public void respond(java.lang.Object respContext,
                    SAMLResponse response,
                    SAMLException e)
             throws java.io.IOException
Return a response to a requester

Specified by:
respond in interface SAMLBinding
Parameters:
respContext - An instance of HttpServletResponse
response - The SAML response to return (optional)
e - An exception to translate into a SOAP fault
Throws:
java.io.IOException - Thrown if sending of data fails


Copyright ? 2002 UCAID. All Rights Reserved.