Class ArtifactStorageService

java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
org.opensaml.storage.AbstractStorageService
swiss.trustbroker.sessioncache.service.ArtifactStorageService
All Implemented Interfaces:
net.shibboleth.shared.component.Component, net.shibboleth.shared.component.DestructableComponent, net.shibboleth.shared.component.IdentifiableComponent, net.shibboleth.shared.component.IdentifiedComponent, net.shibboleth.shared.component.InitializableComponent, org.opensaml.storage.StorageCapabilities, org.opensaml.storage.StorageService

public class ArtifactStorageService extends org.opensaml.storage.AbstractStorageService
Minimal implementation with only methods used by OpenSAML StorageServiceSAMLArtifactMap
  • Field Details

  • Constructor Details

  • Method Details

    • getCleanupTask

      protected TimerTask getCleanupTask()
      Overrides:
      getCleanupTask in class org.opensaml.storage.AbstractStorageService
    • getKeySize

      public int getKeySize()
      Specified by:
      getKeySize in interface org.opensaml.storage.StorageCapabilities
      Overrides:
      getKeySize in class org.opensaml.storage.AbstractStorageService
    • isServerSide

      public boolean isServerSide()
    • isClustered

      public boolean isClustered()
    • create

      public boolean create(@Nonnull String context, @Nonnull String artifactId, @Nonnull String artifactValue, @Nullable Long expiration)
    • read

      @Nullable public <T> org.opensaml.storage.StorageRecord<T> read(@Nonnull String context, @Nonnull String artifactId)
    • read

      @Nonnull public <T> net.shibboleth.shared.collection.Pair<Long,org.opensaml.storage.StorageRecord<T>> read(@Nonnull String context, @Nonnull String key, long version)
    • update

      public boolean update(@Nonnull String context, @Nonnull String key, @Nonnull String value, @Nullable Long expiration)
    • updateWithVersion

      @Nullable public Long updateWithVersion(long version, @Nonnull String context, @Nonnull String key, @Nonnull String value, @Nullable Long expiration)
    • updateExpiration

      public boolean updateExpiration(@Nonnull String context, @Nonnull String key, @Nullable Long expiration)
    • delete

      public boolean delete(@Nonnull String context, @Nonnull String artifactId)
    • deleteWithVersion

      public boolean deleteWithVersion(long version, @Nonnull String context, @Nonnull String key)
    • reap

      public void reap(@Nonnull String context)
    • updateContextExpiration

      public void updateContextExpiration(@Nonnull String context, @Nullable Long expiration)
    • deleteContext

      public void deleteContext(@Nonnull String context)