Package com.sun.identity.saml2.profile
Class SPCache
- java.lang.Object
-
- com.sun.identity.saml2.profile.SPCache
-
public class SPCache extends Object
This class provides the memory store for SAML request and response information on Service Provider side.
-
-
Field Summary
Fields Modifier and Type Field Description static PeriodicCleanUpMapassertionByIDCacheCache saves the assertion id.static HashtableauthContextHashHashtable saves AuthnContext class name and the authLevel.static HashtableauthCtxObjHashHashtable saves AuthnContext Mapper object.static PeriodicCleanUpMapauthnRequestHashMap saves the authentication request.static HashtableecpRequestIDPListFinderCacheCache saves the ecp request IDP list finder.static PeriodicCleanUpMapfedAccountHashMap saves data on whether the account was federated.static HashtablefedletAdapterClassCacheCache saves the fedlet adapter class instance.static HashtablefedSessionListsByNameIDInfoKeyHashtable stores information required for LogoutRequest consumption.static intintervalstatic booleanisFedletstatic PeriodicCleanUpMaplogoutRequestIDHashSP: used to map LogoutRequest ID and inResponseTo in LogoutResponse element to the original LogoutRequest object key : request ID (String) value : original logout request object (LogotRequest)protected static PeriodicCleanUpMapmniRequestHashMap saves the MNI request info.static PeriodicCleanUpMaprelayStateHashMap to save the relayState URL.static PeriodicCleanUpMapreqParamHashHashtable saves the Request Parameters before redirecting to IDP Discovery Service to retreive the preferred IDP.static PeriodicCleanUpMaprequestHashMap saves the request info.protected static PeriodicCleanUpMapresponseHashMap saves response info for local auth.static HashtablespAccountMapperCacheCache saves the sp account mapper.static HashtablespAdapterClassCacheCache saves the sp adapter class instance.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclear(String realmName)Clears the auth context object hash table.
-
-
-
Field Detail
-
interval
public static int interval
-
isFedlet
public static boolean isFedlet
-
authnRequestHash
public static final PeriodicCleanUpMap authnRequestHash
Map saves the authentication request. Key : A unique key String value Value : AuthnRequest object
-
fedAccountHash
public static final PeriodicCleanUpMap fedAccountHash
Map saves data on whether the account was federated. Key : A unique key String value Value : String representing boolean val
-
requestHash
public static final PeriodicCleanUpMap requestHash
Map saves the request info. Key : requestID String Value : AuthnRequestInfo object
-
mniRequestHash
protected static final PeriodicCleanUpMap mniRequestHash
Map saves the MNI request info. Key : requestID String Value : ManageNameIDRequestInfo object
-
relayStateHash
public static final PeriodicCleanUpMap relayStateHash
Map to save the relayState URL. Key : a String the relayStateID Value: a String the RelayState Value
-
fedSessionListsByNameIDInfoKey
public static final 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
-
logoutRequestIDHash
public static final PeriodicCleanUpMap logoutRequestIDHash
SP: used to map LogoutRequest ID and inResponseTo in LogoutResponse element to the original LogoutRequest object key : request ID (String) value : original logout request object (LogotRequest)
-
responseHash
protected static final PeriodicCleanUpMap responseHash
Map saves response info for local auth. Key: requestID String Value: ResponseInfo object
-
authCtxObjHash
public static final Hashtable authCtxObjHash
Hashtable saves AuthnContext Mapper object. Key: hostEntityID+realmName Value: SPAuthnContextMapper
-
authContextHash
public static final 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 final PeriodicCleanUpMap 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 final Hashtable spAccountMapperCache
Cache saves the sp account mapper. Key : sp account mapper class name Value : sp account mapper object
-
spAdapterClassCache
public static final Hashtable spAdapterClassCache
Cache saves the sp adapter class instance. Key : realm + spEntityID + adapterClassName Value : sp adapter class instance (SAML2ServiceProviderAdapter)
-
fedletAdapterClassCache
public static Hashtable fedletAdapterClassCache
Cache saves the fedlet adapter class instance. Key : realm + spEntityID + adapterClassName Value : fedlet adapter class instance (FedletAdapter)
-
ecpRequestIDPListFinderCache
public static final Hashtable ecpRequestIDPListFinderCache
Cache saves the ecp request IDP list finder. Key : ecp request IDP list finder class name Value : ecp request IDP list finder object
-
assertionByIDCache
public static final PeriodicCleanUpMap assertionByIDCache
Cache saves the assertion id. Key : assertion ID String Value : Constant
-
-
Method Detail
-
clear
public static void clear(String realmName)
Clears the auth context object hash table.- Parameters:
realmName- Organization or Realm
-
-