Class FilesystemProviderMetadataResolver
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.oidc.metadata.impl.AbstractOIDCEntityResolver<Key,Value>
net.shibboleth.oidc.metadata.impl.AbstractReloadingOIDCEntityResolver<Key,Value>
net.shibboleth.oidc.metadata.impl.AbstractFileOIDCEntityResolver<com.nimbusds.oauth2.sdk.id.Issuer,com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata>
net.shibboleth.oidc.metadata.impl.FilesystemProviderMetadataResolver
- All Implemented Interfaces:
ProviderMetadataResolver,RefreshableProviderMetadataResolver,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,Resolver<com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata,CriteriaSet>
public class FilesystemProviderMetadataResolver
extends AbstractFileOIDCEntityResolver<com.nimbusds.oauth2.sdk.id.Issuer,com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata>
implements RefreshableProviderMetadataResolver
An OIDC metadata provider that pulls provider metadata from a file on the local filesystem.
Based on
FilesystemMetadataResolver.-
Nested Class Summary
Nested classes/interfaces inherited from class net.shibboleth.oidc.metadata.impl.AbstractOIDCEntityResolver
AbstractOIDCEntityResolver.JsonBackingStore -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFilesystemProviderMetadataResolver(Timer backgroundTaskTimer, Resource metadata) Constructor.FilesystemProviderMetadataResolver(Resource metadata) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected com.nimbusds.oauth2.sdk.id.IssuergetKey(com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata value) Gets the identifier for the given entity.protected List<com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata>parse(byte[] bytes) Parses an entity from the byte array.Iterable<com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata>resolve(CriteriaSet criteria) com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadataresolveSingle(CriteriaSet criteria) Methods inherited from class net.shibboleth.oidc.metadata.impl.AbstractFileOIDCEntityResolver
fetchMetadata, getMetadataIdentifier, getMetadataUpdateTime, setMetadataFileMethods inherited from class net.shibboleth.oidc.metadata.impl.AbstractReloadingOIDCEntityResolver
getLastRefresh, getLastUpdate, initOIDCResolver, refresh, scheduleNextRefresh, setMaxRefreshDelay, setMinRefreshDelayMethods inherited from class net.shibboleth.oidc.metadata.impl.AbstractOIDCEntityResolver
createNewBackingStore, doInitialize, getBackingStore, getLogPrefix, indexEntityDescriptor, isFailFastInitialization, lookupIdentifier, lookupIndexedIdentifier, preProcessEntityDescriptor, removeByIdentifier, setBackingStore, setFailFastInitializationMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getIdMethods inherited from interface net.shibboleth.oidc.metadata.RefreshableProviderMetadataResolver
getLastRefresh, getLastUpdate, refresh
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger.
-
-
Constructor Details
-
FilesystemProviderMetadataResolver
Constructor.- Parameters:
metadata- the metadata file- Throws:
IOException- If the metedata cannot be loaded.
-
FilesystemProviderMetadataResolver
public FilesystemProviderMetadataResolver(@Nullable Timer backgroundTaskTimer, @Nonnull Resource metadata) throws IOException Constructor.- Parameters:
metadata- the metadata filebackgroundTaskTimer- timer used to refresh metadata in the background- Throws:
IOException- If the metedata cannot be loaded.
-
-
Method Details
-
parse
@Nonnull protected List<com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata> parse(@Nonnull byte[] bytes) throws com.nimbusds.oauth2.sdk.ParseException Parses an entity from the byte array.- Specified by:
parsein classAbstractReloadingOIDCEntityResolver<com.nimbusds.oauth2.sdk.id.Issuer,com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata> - Parameters:
bytes- The encoded entity- Returns:
- The parsed entity
- Throws:
com.nimbusds.oauth2.sdk.ParseException- if parse fails
-
getKey
@Nonnull protected com.nimbusds.oauth2.sdk.id.Issuer getKey(@Nonnull com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata value) Gets the identifier for the given entity.- Specified by:
getKeyin classAbstractReloadingOIDCEntityResolver<com.nimbusds.oauth2.sdk.id.Issuer,com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata> - Parameters:
value- The entity whose identifier will be returned.- Returns:
- The identifier for the given entity.