Class SPCache


  • public class SPCache
    extends Object
    This class provides the memory store for SAML request and response information on Service Provider side.
    • 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