Package net.shibboleth.oidc.metadata
Interface RefreshableProviderMetadataResolver
- All Superinterfaces:
Component,IdentifiedComponent,ProviderMetadataResolver,Resolver<OIDCProviderMetadata,CriteriaSet>
- All Known Implementing Classes:
ChainingProviderMetadataResolver,FilesystemProviderMetadataResolver
Specialization of
ProviderMetadataResolver that supports on-demand refresh.-
Method Summary
Modifier and TypeMethodDescriptionGets the time the last refresh cycle occurred.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.shared.component.IdentifiedComponent
getIdMethods inherited from interface net.shibboleth.shared.resolver.Resolver
resolve, resolveSingle
-
Method Details
-
refresh
Refresh 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
Gets the time the last refresh cycle occurred.- Returns:
- time the last refresh cycle occurred
-
getLastUpdate
Get the time that the currently available metadata was last updated. Note, this may be different than the time retrieved bygetLastRefresh()if the metadata was known not to have changed during the last refresh cycle.- Returns:
- time when the currently metadata was last updated,
nullif it has never successfully been read
-