Interface RefreshableProviderMetadataResolver
-
- All Superinterfaces:
Component,IdentifiedComponent,ProviderMetadataResolver,Resolver<com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata,ProfileRequestContext>
- All Known Implementing Classes:
ServiceableProviderMetadataProvider
public interface RefreshableProviderMetadataResolver extends ProviderMetadataResolver
Specialization ofProviderMetadataResolverthat supports on-demand refresh.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InstantgetLastRefresh()Gets the time the last refresh cycle occurred.InstantgetLastUpdate()Get the time that the currently available metadata was last updated.voidrefresh()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 ResolverExceptionRefresh the data exposed by the resolver.An implementation of this method should typically be either
synchronizedor make use other locking mechanisms to protect against concurrent access.- Throws:
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 metadata was last updated. Note, this may be different than the time retrieved bygetLastRefresh()is the metadata was known not to have changed during the last refresh cycle.- Returns:
- time when the currently metadata was last updated, null if it has never successfully been read in
-
-