Class FSReturnSessionManager
- java.lang.Object
-
- com.sun.identity.federation.services.logout.FSReturnSessionManager
-
public final class FSReturnSessionManager extends Object
Contains session information for logout.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FSReturnSessionManagergetInstance(String metaAlias)Gets the singleton instance ofFSReturnSessionManager.HashMapgetUserProviderInfo(String userDN)Returns the provider info where logout was initiated for a certain userDN.voidremoveUserProviderInfo(String userDN)Removes provider information for user.voidsetLogoutStatus(String logoutStatus, String userDN)Set logout status so that control of flow can be returned back to that provider to display status page of that provider.voidsetUserProviderInfo(String userDN, String providerId, String isIDP, String relayState, String responseTo)Sets the provider info where logout was initiated for a user.
-
-
-
Method Detail
-
getUserProviderInfo
public HashMap getUserProviderInfo(String userDN)
Returns the provider info where logout was initiated for a certain userDN. This is so that control of flow can be returned back to that provider to display status page of that provider.- Parameters:
userDN- user whose provider information is to be retrieved- Returns:
- HashMap containing
providerId,relaystate,sessionIndex, etc.
-
setLogoutStatus
public void setLogoutStatus(String logoutStatus, String userDN)
Set logout status so that control of flow can be returned back to that provider to display status page of that provider.- Parameters:
logoutStatus- logout status to be saveduserDN- user whose provider information is to be retrieved
-
setUserProviderInfo
public void setUserProviderInfo(String userDN, String providerId, String isIDP, String relayState, String responseTo)
Sets the provider info where logout was initiated for a user. Other values that are needed when returning control back likerelayStateis also stored.- Parameters:
userDN- user whose provider information is to be retrievedproviderId- providerId where logout was initiated for this userisIDP- the role of the source providerrelayState- url must be sent back in returnresponseTo-InResponseTovalue
-
removeUserProviderInfo
public void removeUserProviderInfo(String userDN)
Removes provider information for user. This function is called prior to returning after logout.- Parameters:
userDN- user whose logout is being performed
-
getInstance
public static FSReturnSessionManager getInstance(String metaAlias)
Gets the singleton instance ofFSReturnSessionManager. There is a single instance for each hosted provider.- Returns:
- metaAlias the hosted provider whose instance needs to be returned
-
-