Class IDPFileStore

    • Field Summary

      • Fields inherited from class edu.uiuc.ncsa.security.storage.FileStore

        indexDirectory, storageDirectory
      • Fields inherited from class edu.uiuc.ncsa.security.storage.IndexedStreamStore

        converter, identifiableProvider, initializer
      • Fields inherited from interface edu.uiuc.ncsa.security.core.Store

        VERSION_TAG
    • Constructor Summary

      Constructors 
      Constructor Description
      IDPFileStore​(File file, edu.uiuc.ncsa.security.core.IdentifiableProvider<IdentityProvider> idpp, IDPConverter converter, boolean removeEmptyFiles, boolean removeFailedFiles)  
      IDPFileStore​(File storeDirectory, File indexDirectory, edu.uiuc.ncsa.security.core.IdentifiableProvider<IdentityProvider> idpp, edu.uiuc.ncsa.security.storage.data.MapConverter converter, boolean removeEmptyFiles, boolean removeFailedFiles)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(Collection<? extends IdentityProvider> idps)
      Adds a list of identity providers.
      void add​(IdentityProvider idp)
      Add an identity provider, using the unique id as the key
      List<IdentityProvider> getMostRecent​(int n, List<String> attributes)  
      boolean hasIdp​(String idp)
      Check if there is an entry for the given unique id.
      void replaceAll​(Collection<IdentityProvider> idps)
      Replace every entry in the store by the ones in the list.
      • Methods inherited from class edu.uiuc.ncsa.security.storage.monitored.MonitoredFileStore

        addLastAccessedEventListener, doUpkeep, doUpkeep, fireLastAccessedEvent, get, getLastAccessedEventListeners, getUpkeepConfiguration, getUuid, hasUpkeepConfiguration, isMonitorEnabled, lastAccessUpdate, setMonitorEnabled, setUpkeepConfiguration, updateHook
      • Methods inherited from class edu.uiuc.ncsa.security.storage.FileStore

        checkPermissions, clear, containsKey, containsValue, create, createIndexEntry, delete, doSetup, entrySet, getAll, getIndexDirectory, getIndexEntry, getItemFile, getItemFile, getMapConverter, getStorageDirectory, getXMLConverter, keySet, loadByIdentifier, loadFile, loadFromIndex, putAll, realRemove, realSave, register, remove, remove, removeByID, removeIndexEntry, save, search, search, search, search, setIndexDirectory, setStorageDirectory, size, size, toString, update, update, values
      • Methods inherited from class edu.uiuc.ncsa.security.storage.IndexedStreamStore

        createIndexEntry, getCreatedItems, hashString, isEmpty, loadStream, put, put
      • Methods inherited from interface edu.uiuc.ncsa.security.core.Store

        create, getAll, getXMLConverter, register, remove, removeByID, save, search, search, search, search, size, update, update
    • Constructor Detail

      • IDPFileStore

        public IDPFileStore​(File file,
                            edu.uiuc.ncsa.security.core.IdentifiableProvider<IdentityProvider> idpp,
                            IDPConverter converter,
                            boolean removeEmptyFiles,
                            boolean removeFailedFiles)
      • IDPFileStore

        public IDPFileStore​(File storeDirectory,
                            File indexDirectory,
                            edu.uiuc.ncsa.security.core.IdentifiableProvider<IdentityProvider> idpp,
                            edu.uiuc.ncsa.security.storage.data.MapConverter converter,
                            boolean removeEmptyFiles,
                            boolean removeFailedFiles)
    • Method Detail

      • add

        public void add​(Collection<? extends IdentityProvider> idps)
        Description copied from interface: IdentityProviderStore
        Adds a list of identity providers. Note: Change to contract. Previously this was to fail if any of the idps were already in the store. The problem is that if a list of these was sent that had fewer idps than previously, (such as due to some error in a non-Java component) then the list of IDPs might be damaged. Therefore, now this should add any idps not already in the store, and ignore any that are there already.
        Specified by:
        add in interface IdentityProviderStore