Interface RefreshableMetadataValueResolver

  • All Superinterfaces:
    net.shibboleth.utilities.java.support.component.Component, net.shibboleth.utilities.java.support.component.IdentifiedComponent, MetadataValueResolver, net.shibboleth.utilities.java.support.resolver.Resolver<Object,​org.opensaml.profile.context.ProfileRequestContext>

    public interface RefreshableMetadataValueResolver
    extends MetadataValueResolver
    A resolver that is capable of resolving dynamic metadata values (as Objects) which meet certain supplied criteria.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Instant getLastRefresh()
      Gets the time the last refresh cycle occurred.
      Instant getLastUpdate()
      Get the time that the currently available client information was last updated.
      void refresh()
      Refresh the data exposed by the resolver.
      • Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent

        getId
      • Methods inherited from interface net.shibboleth.utilities.java.support.resolver.Resolver

        resolve, resolveSingle
    • Method Detail

      • refresh

        void refresh()
              throws net.shibboleth.utilities.java.support.resolver.ResolverException
        Refresh the data exposed by the resolver.

        An implementation of this method should typically be either synchronized or make use other locking mechanisms to protect against concurrent access.

        Throws:
        net.shibboleth.utilities.java.support.resolver.ResolverException - if the refresh operation was unsuccessful
      • getLastRefresh

        @Nullable
        Instant getLastRefresh()
        Gets the time the last refresh cycle occurred.
        Returns:
        time the last refresh cycle occurred
      • getLastUpdate

        @Nullable
        Instant getLastUpdate()
        Get the time that the currently available client information was last updated. Note, this may be different than the time retrieved by getLastRefresh() is the client information was known not to have changed during the last refresh cycle.
        Returns:
        time when the currently client information was last updated, null if it has never successfully been read in