Class SPCache


  • public class SPCache
    extends Object
    This class provides the memory store for WS-Federation request and response information on Service Provider side.
    • Field Detail

      • interval

        public static int interval
      • 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)
        Returns true if the realm is root.
        Parameters:
        orgName - the organization name
        Returns:
        true if realm is root.