public class FSFedTerminationHandler extends Object
Modifier and Type | Field and Description |
---|---|
protected FSAccountFedInfo |
acctInfo |
protected static String |
error_page_url |
protected static String |
FEDERATE_COOKIE_NAME |
protected com.sun.identity.federation.jaxb.entityconfig.BaseConfigType |
hostedConfig |
protected com.sun.identity.liberty.ws.meta.jaxb.ProviderDescriptorType |
hostedDescriptor |
protected String |
hostedEntityId |
protected String |
hostedProviderRole |
protected String |
locale |
protected FSAccountManager |
managerInst |
protected String |
metaAlias |
protected String |
realm |
protected static String |
RELAY_STATE |
protected String |
relayState |
protected com.sun.identity.liberty.ws.meta.jaxb.ProviderDescriptorType |
remoteDescriptor |
protected String |
remoteEntityId |
protected javax.servlet.http.HttpServletRequest |
request |
protected javax.servlet.http.HttpServletResponse |
response |
protected Object |
ssoToken |
protected static String |
termination_done_url |
protected String |
userID |
Constructor and Description |
---|
FSFedTerminationHandler()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
handleFederationTermination(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object ssoToken)
Initiates the federation termination operation.
|
boolean |
processSOAPTerminationRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
FSFederationTerminationNotification reqTermination)
Processes the termination request received from a
remote provider.
|
void |
processTerminationRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
FSFederationTerminationNotification reqTermination)
Processes the termination request received from a
remote provider.
|
void |
resetFederateCookie()
Resets ederate cookie when termination is done with one remote provider.
|
void |
setAccountInfo(FSAccountFedInfo acctInfo)
Sets the federation account information for the user with a specific
remote provider.
|
void |
setHostedDescriptor(com.sun.identity.liberty.ws.meta.jaxb.ProviderDescriptorType hostedDescriptor)
Sets state to the Federation Termination handler that is handling the
current federation termination.
|
void |
setHostedDescriptorConfig(com.sun.identity.federation.jaxb.entityconfig.BaseConfigType hostedConfig)
Sets hosted provider's extended meta.
|
void |
setHostedEntityId(String hostedId)
Sets hosted provider's entity ID.
|
void |
setHostedProviderRole(String hostedProviderRole)
Sets hosted provider's role.
|
void |
setMetaAlias(String metaAlias)
Sets hosted provider's meta alias.
|
void |
setRealm(String realm)
Sets realm.
|
void |
setRemoteDescriptor(com.sun.identity.liberty.ws.meta.jaxb.ProviderDescriptorType remoteDescriptor)
Sets state to the Federation Termination handler that is handling the
current federation termination.
|
void |
setRemoteEntityId(String remoteId)
Sets remote provider's entity ID.
|
protected void |
setTerminationURL()
Invoked to set some commonly used URLs based on hosted provider.
|
boolean |
setUserID(FSFederationTerminationNotification reqTermination)
Finds the user based on the termination request received from a remote
provider.
|
void |
setUserID(String userID)
Sets the UserID.
|
protected SOAPMessage |
signTerminationRequest(SOAPMessage msg,
String idAttrName,
String id)
Signs Federation termination request before sending it to the remote
provider.
|
protected boolean |
updateAccountInformation(NameIdentifier ni)
Updates the user account information.
|
protected javax.servlet.http.HttpServletResponse response
protected javax.servlet.http.HttpServletRequest request
protected String locale
protected Object ssoToken
protected String userID
protected FSAccountFedInfo acctInfo
protected com.sun.identity.liberty.ws.meta.jaxb.ProviderDescriptorType remoteDescriptor
protected com.sun.identity.liberty.ws.meta.jaxb.ProviderDescriptorType hostedDescriptor
protected com.sun.identity.federation.jaxb.entityconfig.BaseConfigType hostedConfig
protected String relayState
protected FSAccountManager managerInst
protected static String termination_done_url
protected static String error_page_url
protected static final String FEDERATE_COOKIE_NAME
protected static final String RELAY_STATE
protected String realm
protected String hostedEntityId
protected String remoteEntityId
protected String metaAlias
protected String hostedProviderRole
public FSFedTerminationHandler()
protected void setTerminationURL()
public void setHostedDescriptor(com.sun.identity.liberty.ws.meta.jaxb.ProviderDescriptorType hostedDescriptor)
hostedDescriptor
- the Hosted provider Descriptorpublic void setHostedDescriptorConfig(com.sun.identity.federation.jaxb.entityconfig.BaseConfigType hostedConfig)
hostedConfig
- hosted provider's extended configpublic void setHostedEntityId(String hostedId)
hostedId
- hosted provider's entity idpublic void setHostedProviderRole(String hostedProviderRole)
hostedProviderRole
- hosted provider's rolepublic void setMetaAlias(String metaAlias)
metaAlias
- hosted provider's meta aliaspublic void setRealm(String realm)
realm
- The realm under which the entity resides.public void setRemoteEntityId(String remoteId)
remoteId
- remote provider's entity idpublic void setRemoteDescriptor(com.sun.identity.liberty.ws.meta.jaxb.ProviderDescriptorType remoteDescriptor)
remoteDescriptor
- the Remote provider Descriptorpublic void setUserID(String userID)
userID
- the user who is initiating the termination processpublic void setAccountInfo(FSAccountFedInfo acctInfo)
acctInfo
- the account fed info objectpublic boolean setUserID(FSFederationTerminationNotification reqTermination)
reqTermination
- the termination requesttrue
if the user is found; false
otherwise.public boolean handleFederationTermination(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object ssoToken)
request
- HTTP requestresponse
- HTTP responsessoToken
- corresponding to the user's sessiontrue
if the termination initiation operation is
successful; false
otherwise.protected boolean updateAccountInformation(NameIdentifier ni)
ni
- NameIdentifier
object corresponding to a userpublic void processTerminationRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, FSFederationTerminationNotification reqTermination)
request
- HTTP requestresponse
- HTTP responsereqTermination
- the federation termination request received from
remote providerpublic boolean processSOAPTerminationRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, FSFederationTerminationNotification reqTermination)
reqTermination
- the federation termination request received from
remote providertrue
when the process is successful;
false
otherwise.public void resetFederateCookie()
protected SOAPMessage signTerminationRequest(SOAPMessage msg, String idAttrName, String id) throws SAMLException
msg
- SOAPMessage
which includes termination request
to be sent to remote provideridAttrName
- name of the id attribute to be signedid
- the value of the id attributer to be signedSOAPMessage
SAMLException
- if an error occurred during signingCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.