public class InteractionManager extends Object
WSC
and WSP
would
collaborate with the singleton object instance of this class to provide
and use resource owner interaction.Modifier and Type | Field and Description |
---|---|
static String |
IDP
Name of URL query parameter to be used by
WSC to include
providerID of IDP , that was used to
authenticate user. |
static String |
INTERACTION_NAMESPACE
Name space URI of interaction service
|
static QName |
QNAME_DO_NOT_INTERACT
QName for is:doNotInteract
is - name space prefix for interaction service |
static QName |
QNAME_DO_NOT_INTERACT_FOR_DATA
QName for is:doNotInteractForData
is - name space prefix for interaction service |
static QName |
QNAME_INTERACT_IF_NEEDED
QName for is:interactIfNeeded
is - name space prefix for interaction service |
static QName |
QNAME_INTERACTION_CAN_NOT_DETERMINE_REQUEST_HOST
QName for is:interactIfNeeded
is - name space prefix for interaction service |
static QName |
QNAME_INTERACTION_REQUIRED
QName for is:interactionRequired
is - name space prefix for interaction service |
static QName |
QNAME_INTERACTION_REQUIRED_FOR_DATA
QName for is:forData
is - name space prefix for interaction service |
static QName |
QNAME_INTERACTION_TIME_NOT_SUFFICEINT
QName for is:timeNotSufficient
is - name space prefix for interaction service |
static QName |
QNAME_INTERACTION_TIMED_OUT
QName for is:timeOut
is - name space prefix for interaction service |
static QName |
QNAME_SERVER
QName for s:Server
s - soap name space prefix |
static String |
REQUEST_ID
Name of suggested URL query parameter to be used by
WSC
to include an ID to refer to request message that led to user agent
redirect. |
static String |
RESEND_MESSAGE
Name of URL query parameter to be used by
WSP to include
an ID to indicate that user agent is redirected back to
WSC from WSP |
static String |
RETURN_TO_URL
Name of URL query parameter to be used by
WSC to include
returnToURL , while redirecting user agent to
WSP . |
static String |
SERVER_ERROR
Constant string to indicate generic server error
|
Modifier and Type | Method and Description |
---|---|
static InteractionManager |
getInstance()
Gets singleton object instance of
InteractionManager |
com.sun.identity.liberty.ws.interaction.jaxb.InteractionResponseElement |
getInteractionResponseElement(Message requestMessage)
Gets interaction response that was gathered from resource owner
by
InteractionManager |
Message |
handleInteraction(Message requestMessage,
com.sun.identity.liberty.ws.interaction.jaxb.InquiryElement inquiryElement)
Deprecated.
|
Message |
handleInteraction(Message requestMessage,
com.sun.identity.liberty.ws.interaction.jaxb.InquiryElement inquiryElement,
String language)
Handles resource owner interactions on behalf of
WSP . |
Message |
resendRequest(String returnToURL,
javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse)
Resends a previously cached SOAP request message to
WSP . |
Message |
resendRequest(String returnToURL,
javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse,
Message requestMessage)
Resends a SOAP request message to
WSP . |
Message |
sendRequest(Message requestMessage,
String connectTo,
String certAlias,
String soapAction,
String returnToURL,
javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse)
Sends SOAP request to
WSP . |
public static final String RETURN_TO_URL
WSC
to include
returnToURL
, while redirecting user agent to
WSP
.public static final String REQUEST_ID
WSC
to include an ID to refer to request message that led to user agent
redirect.public static final String IDP
WSC
to include
providerID
of IDP
, that was used to
authenticate user.public static final String RESEND_MESSAGE
WSP
to include
an ID to indicate that user agent is redirected back to
WSC
from WSP
public static final String INTERACTION_NAMESPACE
public static final QName QNAME_SERVER
QName
for s:Server
s
- soap name space prefixpublic static final QName QNAME_INTERACT_IF_NEEDED
QName
for is:interactIfNeeded
is
- name space prefix for interaction servicepublic static final QName QNAME_DO_NOT_INTERACT
QName
for is:doNotInteract
is
- name space prefix for interaction servicepublic static final QName QNAME_DO_NOT_INTERACT_FOR_DATA
QName
for is:doNotInteractForData
is
- name space prefix for interaction servicepublic static final QName QNAME_INTERACTION_REQUIRED
QName
for is:interactionRequired
is
- name space prefix for interaction servicepublic static final QName QNAME_INTERACTION_REQUIRED_FOR_DATA
QName
for is:forData
is
- name space prefix for interaction servicepublic static final QName QNAME_INTERACTION_TIME_NOT_SUFFICEINT
QName
for is:timeNotSufficient
is
- name space prefix for interaction servicepublic static final QName QNAME_INTERACTION_TIMED_OUT
QName
for is:timeOut
is
- name space prefix for interaction servicepublic static final QName QNAME_INTERACTION_CAN_NOT_DETERMINE_REQUEST_HOST
QName
for is:interactIfNeeded
is
- name space prefix for interaction servicepublic static final String SERVER_ERROR
public static InteractionManager getInstance()
InteractionManager
InteractionManager
public Message sendRequest(Message requestMessage, String connectTo, String certAlias, String soapAction, String returnToURL, javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse) throws InteractionException, InteractionRedirectException, SOAPBindingException, SOAPFaultException
WSP
.
This would be invoked at WSC
side.requestMessage
- request message.connectTo
- SOAP URL to which to send the SOAP requestcertAlias
- SOAP Client Certificate AliassoapAction
- SOAP Action AttributereturnToURL
- URL to which to redirect user agent after
WSP
- resource owner interactionshttpRequest
- HTTP request object of current user agent requesthttpResponse
- HTTP response object of current user agent requestWSP
.InteractionException
- for generic interaction errorInteractionRedirectException
- if user agent is redirected to
WSP
for resource owner interactionsSOAPBindingException
- for generic SOAP binding errorsSOAPFaultException
- if the response message has SOAP faultpublic Message resendRequest(String returnToURL, javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse) throws InteractionRedirectException, InteractionException, SOAPBindingException, SOAPFaultException
WSP
.
This would be invoked at WSC
side. Message ID for the cached
message should be provided as value of REQUEST_ID
query
parameter in httpRequest
.returnToURL
- URL to which to redirect user agent after
WSP
- resource owner interactionshttpRequest
- HTTP request object of current user agent requesthttpResponse
- HTTP response object of current user agent requestWSP
.InteractionException
- for generic interaction errorInteractionRedirectException
- if user agent is redirected to
WSP
for resource owner interactionsSOAPBindingException
- if there are generic SOAP errorsSOAPFaultException
- if the response message has SOAP faultREQUEST_ID
public Message resendRequest(String returnToURL, javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse, Message requestMessage) throws InteractionRedirectException, InteractionException, SOAPBindingException, SOAPFaultException
WSP
.
This would be invoked at WSC
side.returnToURL
- URL to which to redirect user agent after
WSP
- resource owner interactionshttpRequest
- HTTP request object of current user agent requesthttpResponse
- HTTP response object of current user agent requestrequestMessage
- SOAP message to be resent.WSP
.InteractionException
- for generic interaction errorInteractionRedirectException
- if user agent is redirected to
WSP
for resource owner interactionsSOAPBindingException
- for generic SOAP errorsSOAPFaultException
- if the response message has SOAP faultpublic Message handleInteraction(Message requestMessage, com.sun.identity.liberty.ws.interaction.jaxb.InquiryElement inquiryElement) throws InteractionException, InteractionSOAPFaultException, SOAPFaultException
WSP
.
This is invoked at WSP
side.requestMessage
- SOAP request that requires resource
owner interactionsinquiryElement
- query that WSP
wants to pose to
resource owner.InteractionResponse
,
gathered by InteractionManager
InteractionException
- for generic interaction errorInteractionSOAPFaultException
- if a SOAP fault
has to be returned to WSC
SOAPFaultException
- if the response message has SOAP faultpublic Message handleInteraction(Message requestMessage, com.sun.identity.liberty.ws.interaction.jaxb.InquiryElement inquiryElement, String language) throws InteractionException, InteractionSOAPFaultException, SOAPFaultException
WSP
.
This is invoked at WSP
side.requestMessage
- SOAP request that requires resource
owner interactionsinquiryElement
- query that WSP
wants to pose to
resource ownerlanguage
- language in which the query page needs to be renderedInteractionResponse
,
gathered by InteractionManager
InteractionException
- for generic interaction errorInteractionSOAPFaultException
- if a SOAP fault
has to be returned to WSC
SOAPFaultException
- if the response message has SOAP faultpublic com.sun.identity.liberty.ws.interaction.jaxb.InteractionResponseElement getInteractionResponseElement(Message requestMessage) throws InteractionException
InteractionManager
requestMessage
- request message.InteractionManager
.InteractionException
- for interaction errorCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.