|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensaml.SOAPBinding
public abstract class SOAPBinding
Implementation of SOAP binding packaging methods, useful as a base class for full binding implementations once a transport protocol is added by implementing the actual binding methods.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.opensaml.SAMLSOAPBinding |
---|
SAMLSOAPBinding.SOAPHook |
Field Summary |
---|
Fields inherited from interface org.opensaml.SAMLBinding |
---|
SAML_SOAP_HTTPS, SOAP |
Constructor Summary | |
---|---|
SOAPBinding()
|
Method Summary | |
---|---|
void |
addHook(SAMLSOAPBinding.SOAPHook h)
Attach a SOAP hook. |
void |
addHook(SAMLSOAPBinding.SOAPHook h,
Object globalCtx)
Attach a SOAP hook. |
SAMLRequest |
recvRequest(Element envelope,
Object callCtx)
Unpacks a SAML request from a SOAP envelope |
SAMLResponse |
recvResponse(Element envelope,
Object callCtx)
Unpacks a SAML response from a SOAP envelope |
Element |
sendRequest(SAMLRequest request,
Object callCtx)
Packages a SAML request for transmission via SOAP |
Element |
sendResponse(SAMLResponse response,
SAMLException e,
Object callCtx)
Packages a SAML response for transmission via SOAP |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opensaml.SAMLBinding |
---|
receive, receive, respond, respond, send, send |
Constructor Detail |
---|
public SOAPBinding()
Method Detail |
---|
public void addHook(SAMLSOAPBinding.SOAPHook h)
SAMLSOAPBinding
addHook
in interface SAMLSOAPBinding
h
- Hook interface to attachSAMLSOAPBinding.addHook(org.opensaml.SAMLSOAPBinding.SOAPHook)
public void addHook(SAMLSOAPBinding.SOAPHook h, Object globalCtx)
SAMLSOAPBinding
addHook
in interface SAMLSOAPBinding
h
- Hook interface to attachglobalCtx
- Context data to pass to registered hooks on each callSAMLSOAPBinding.addHook(org.opensaml.SAMLSOAPBinding.SOAPHook, java.lang.Object)
public Element sendRequest(SAMLRequest request, Object callCtx) throws SAMLException
SAMLSOAPBinding
sendRequest
in interface SAMLSOAPBinding
request
- The SAML request to preparecallCtx
- Context data to pass to registered hooks for this call
SAMLException
- Raised if an error occurs in preparing the SOAP messageSAMLSOAPBinding.sendRequest(org.opensaml.SAMLRequest, java.lang.Object)
public SAMLResponse recvResponse(Element envelope, Object callCtx) throws SAMLException
SAMLSOAPBinding
recvResponse
in interface SAMLSOAPBinding
envelope
- The SOAP envelope receivedcallCtx
- Context data to pass to registered hooks for this call
SAMLException
- Raised if the SAML response cannot be unpacked successfully
or if it contains an errorSAMLSOAPBinding.recvResponse(org.w3c.dom.Element, java.lang.Object)
public SAMLRequest recvRequest(Element envelope, Object callCtx) throws SAMLException
SAMLSOAPBinding
recvRequest
in interface SAMLSOAPBinding
envelope
- The SOAP envelope receivedcallCtx
- Context data to pass to registered hooks for this call
SAMLException
- Raised if the SAML request cannot be unpacked successfullySAMLSOAPBinding.recvRequest(org.w3c.dom.Element, java.lang.Object)
public Element sendResponse(SAMLResponse response, SAMLException e, Object callCtx) throws SAMLException
SAMLSOAPBinding
sendResponse
in interface SAMLSOAPBinding
response
- The SAML response to prepare (may be null)e
- An exception to package for transmission as a SOAP faultcallCtx
- Context data to pass to registered hooks for this call
SAMLException
- Raised if an error occurs in preparing the SOAP messageSAMLSOAPBinding.sendResponse(org.opensaml.SAMLResponse, org.opensaml.SAMLException, java.lang.Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |