Interface AssetStore

  • All Superinterfaces:
    Map<edu.uiuc.ncsa.security.core.Identifier,​Asset>, edu.uiuc.ncsa.security.core.Store<Asset>
    All Known Implementing Classes:
    FSAssetStore, MemoryAssetStore, SQLAssetStore

    public interface AssetStore
    extends edu.uiuc.ncsa.security.core.Store<Asset>
    The top-level abstract class for storing Assets. This is a map that is keyed off an Identifier generated by the client. The only requirement on the identifier is it be a URI, otherwise it may be arbitrary.

    Usage

    A store is specified in the client configuration.

    Lifecycle

    Once the asset store is specified in the configuration, the system will instantitate it and manage it. It is accessible from the ClientEnvironment.getAssetStore() Note that if there is no asset store specified, then calls for the store return a null, therefore implementors should check if there has been a store with the ClientEnvironment.hasAssetStore() method first.

    Created by Jeff Gaynor
    on 1/23/13 at 4:42 PM

    • Method Detail

      • get

        Asset get​(String identifier)
        Simplifying calls. These should simply convert the string to an identifier.
        Parameters:
        identifier -
        Returns:
      • getByToken

        Asset getByToken​(edu.uiuc.ncsa.security.core.Identifier token)
        Part of solution to OAUTH-146: JSESSIONID bug causes session crossover if users have repeated failed attempts to get a cert and keep opening a new browser window each time.
        Parameters:
        token -
        Returns:
      • putByToken

        void putByToken​(Asset asset)