Class SPCache
- java.lang.Object
-
- com.sun.identity.wsfederation.profile.SPCache
-
public class SPCache extends Object
This class provides the memory store for WS-Federation request and response information on Service Provider side.
-
-
Field Summary
Fields Modifier and Type Field Description static PeriodicCleanUpMapassertionByIDCachestatic HashtableauthContextHashHashtable saves AuthnContext class name and the authLevel.static HashtableauthCtxObjHashHashtable saves AuthnContext Mapper object.protected static HashtablefedSessionListsByNameIDInfoKeyHashtable stores information required for LogoutRequest consumption.static intintervalstatic SetlogoutRequestIDsSP: used to correlate LogoutRequest ID and inResponseTo in LogoutResponse element : request ID (String)protected static HashtablemniRequestHashHashtable saves the MNI request info.protected static HashtablerelayStateHashHashtable to save the relayState URL.static HashtablereqParamHashHashtable saves the Request Parameters before redirecting to IDP Discovery Service to retreive the preferred IDP.static HashtablerequestHashHashtable saves the request info.protected static HashtableresponseHashHashtable saves response info for local auth.static HashtablespAccountMapperCacheCache saves the sp account mapper.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclear()Clears the auth context object hash table.static voidclear(String realmName)Clears the auth context object hash table.static booleanisDefaultOrg(String orgName)Returnstrueif the realm is root.
-
-
-
Field Detail
-
interval
public static int interval
-
assertionByIDCache
public static PeriodicCleanUpMap assertionByIDCache
-
requestHash
public static Hashtable requestHash
Hashtable saves the request info. Key : requestID String Value : AuthnRequestInfo object
-
mniRequestHash
protected static Hashtable mniRequestHash
Hashtable saves the MNI request info. Key : requestID String Value : ManageNameIDRequestInfo object
-
relayStateHash
protected static Hashtable relayStateHash
Hashtable to save the relayState URL. Key : a String the relayStateID Value: a String the RelayState Value
-
fedSessionListsByNameIDInfoKey
protected static Hashtable fedSessionListsByNameIDInfoKey
Hashtable stores information required for LogoutRequest consumption. key : String NameIDInfoKey (NameIDInfoKey.toValueString()) value : List of SPFedSession's (SPFedSession - idp sessionIndex (String) - sp token id (String) one key --- multiple SPFedSession's
-
logoutRequestIDs
public static Set logoutRequestIDs
SP: used to correlate LogoutRequest ID and inResponseTo in LogoutResponse element : request ID (String)
-
responseHash
protected static Hashtable responseHash
Hashtable saves response info for local auth. Key: requestID String Value: ResponseInfo object
-
authCtxObjHash
public static Hashtable authCtxObjHash
Hashtable saves AuthnContext Mapper object. Key: hostEntityID+realmName Value: SPAuthnContextMapper
-
authContextHash
public static Hashtable authContextHash
Hashtable saves AuthnContext class name and the authLevel. Key: hostEntityID+realmName Value: Map containing AuthContext Class Name as Key and value is authLevel.
-
reqParamHash
public static Hashtable reqParamHash
Hashtable saves the Request Parameters before redirecting to IDP Discovery Service to retreive the preferred IDP. Key: requestID a String Value : Request Parameters Map , a Map
-
spAccountMapperCache
public static Hashtable spAccountMapperCache
Cache saves the sp account mapper. Key : sp account mapper class name Value : sp account mapper object
-
-
Method Detail
-
clear
public static void clear(String realmName)
Clears the auth context object hash table.- Parameters:
realmName- Organization or Realm
-
clear
public static void clear()
Clears the auth context object hash table.
-
isDefaultOrg
public static boolean isDefaultOrg(String orgName)
Returnstrueif the realm is root.- Parameters:
orgName- the organization name- Returns:
trueif realm is root.
-
-