Class FilesystemMetadataValueResolver
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.Identifier,Object>
net.shibboleth.idp.plugin.oidc.op.metadata.impl.FilesystemMetadataValueResolver
- All Implemented Interfaces:
MetadataValueResolver,RefreshableMetadataValueResolver,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,Resolver<Object,ProfileRequestContext>
public class FilesystemMetadataValueResolver
extends AbstractFileOIDCEntityResolver<com.nimbusds.oauth2.sdk.id.Identifier,Object>
implements RefreshableMetadataValueResolver
An implementation to
RefreshableMetadataValueResolver that fetches the information from a file.-
Nested Class Summary
Nested classes/interfaces inherited from class net.shibboleth.oidc.metadata.impl.AbstractOIDCEntityResolver
AbstractOIDCEntityResolver.JsonBackingStore -
Constructor Summary
ConstructorsConstructorDescriptionFilesystemMetadataValueResolver(Timer backgroundTaskTimer, Resource metadata) Constructor.FilesystemMetadataValueResolver(Resource metadata) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected com.nimbusds.oauth2.sdk.id.Identifierparse(byte[] bytes) resolve(ProfileRequestContext profileRequestContext) Returns all the resolved objects.resolveSingle(ProfileRequestContext profileRequestContext) Returns a single resolved object.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.idp.plugin.oidc.op.metadata.resolver.RefreshableMetadataValueResolver
getLastRefresh, getLastUpdate, refresh
-
Constructor Details
-
FilesystemMetadataValueResolver
Constructor.- Parameters:
metadata- the metadata file- Throws:
IOException- If the metedata cannot be loaded.
-
FilesystemMetadataValueResolver
public FilesystemMetadataValueResolver(@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
-
resolve
@Nonnull public Iterable<Object> resolve(@Nullable ProfileRequestContext profileRequestContext) throws ResolverException Returns all the resolved objects.- Specified by:
resolvein interfaceResolver<Object,ProfileRequestContext> - Parameters:
profileRequestContext- the criteria to evaluate or process, currently ignored. May be null.- Returns:
- all the resolved objects.
- Throws:
ResolverException- thrown if there is an error during resolution.
-
resolveSingle
@Nullable public Object resolveSingle(@Nullable ProfileRequestContext profileRequestContext) throws ResolverException Returns a single resolved object. If many were resolved, a single one is selected randomly from the set.- Specified by:
resolveSinglein interfaceResolver<Object,ProfileRequestContext> - Parameters:
profileRequestContext- the criteria to evaluate or process, currently ignored. May be null.- Returns:
- a single resolved object.
- Throws:
ResolverException- thrown if there is an error during resolution.
-
parse
- Specified by:
parsein classAbstractReloadingOIDCEntityResolver<com.nimbusds.oauth2.sdk.id.Identifier,Object> - Throws:
com.nimbusds.oauth2.sdk.ParseException
-
getKey
- Specified by:
getKeyin classAbstractReloadingOIDCEntityResolver<com.nimbusds.oauth2.sdk.id.Identifier,Object>
-