Class FilesystemProviderMetadataResolver
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
-
- net.shibboleth.utilities.java.support.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.idp.plugin.oidc.op.metadata.impl.FilesystemProviderMetadataResolver
-
- All Implemented Interfaces:
ProviderMetadataResolver,RefreshableProviderMetadataResolver,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,Resolver<com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata,ProfileRequestContext>
- Direct Known Subclasses:
DynamicFilesystemProviderMetadataResolver
public class FilesystemProviderMetadataResolver extends net.shibboleth.oidc.metadata.impl.AbstractFileOIDCEntityResolver<com.nimbusds.oauth2.sdk.id.Issuer,com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata> implements RefreshableProviderMetadataResolver
Based onFilesystemMetadataResolver.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private Function<ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext>relyingPartyContextLookupStrategyStrategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.
-
Constructor Summary
Constructors Constructor Description FilesystemProviderMetadataResolver(Timer backgroundTaskTimer, Resource metadata)Constructor.FilesystemProviderMetadataResolver(Resource metadata)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.nimbusds.oauth2.sdk.id.IssuergetKey(com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata value)protected List<com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata>parse(byte[] bytes)Iterable<com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata>resolve(ProfileRequestContext profileRequestContext)com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadataresolveSingle(ProfileRequestContext profileRequestContext)voidsetRelyingPartyContextLookupStrategy(Function<ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext> strategy)Set the strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.-
Methods inherited from class net.shibboleth.oidc.metadata.impl.AbstractFileOIDCEntityResolver
doDestroy, fetchMetadata, getMetadataIdentifier, getMetadataUpdateTime, setMetadataFile
-
Methods inherited from class net.shibboleth.oidc.metadata.impl.AbstractReloadingOIDCEntityResolver
getLastRefresh, getLastUpdate, initOIDCResolver, refresh, scheduleNextRefresh, setMaxRefreshDelay, setMinRefreshDelay
-
Methods inherited from class net.shibboleth.oidc.metadata.impl.AbstractOIDCEntityResolver
createNewBackingStore, doInitialize, getBackingStore, getLogPrefix, indexEntityDescriptor, isFailFastInitialization, lookupIdentifier, lookupIndexedIdentifier, preProcessEntityDescriptor, removeByIdentifier, setBackingStore, setFailFastInitialization
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
getId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getId
-
Methods inherited from interface net.shibboleth.idp.plugin.oidc.op.metadata.resolver.RefreshableProviderMetadataResolver
getLastRefresh, getLastUpdate, refresh
-
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
relyingPartyContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext> relyingPartyContextLookupStrategy
Strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.
-
-
Constructor Detail
-
FilesystemProviderMetadataResolver
public FilesystemProviderMetadataResolver(@Nonnull Resource metadata) throws IOExceptionConstructor.- Parameters:
metadata- the metadata file- Throws:
IOException- If the metedata cannot be loaded.
-
FilesystemProviderMetadataResolver
public FilesystemProviderMetadataResolver(@Nullable Timer backgroundTaskTimer, @Nonnull Resource metadata) throws IOExceptionConstructor.- Parameters:
metadata- the metadata filebackgroundTaskTimer- timer used to refresh metadata in the background- Throws:
IOException- If the metedata cannot be loaded.
-
-
Method Detail
-
setRelyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext> strategy)Set the strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.- Parameters:
strategy- strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext
-
resolve
@Nullable public Iterable<com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata> resolve(@Nullable ProfileRequestContext profileRequestContext) throws ResolverException
- Specified by:
resolvein interfaceResolver<com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata,ProfileRequestContext>- Throws:
ResolverException
-
resolveSingle
@Nullable public com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata resolveSingle(@Nullable ProfileRequestContext profileRequestContext) throws ResolverException- Specified by:
resolveSinglein interfaceResolver<com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata,ProfileRequestContext>- Throws:
ResolverException
-
parse
protected List<com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata> parse(byte[] bytes) throws com.nimbusds.oauth2.sdk.ParseException
- Specified by:
parsein classnet.shibboleth.oidc.metadata.impl.AbstractReloadingOIDCEntityResolver<com.nimbusds.oauth2.sdk.id.Issuer,com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata>- Throws:
com.nimbusds.oauth2.sdk.ParseException
-
getKey
protected com.nimbusds.oauth2.sdk.id.Issuer getKey(@Nonnull com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata value)- Specified by:
getKeyin classnet.shibboleth.oidc.metadata.impl.AbstractReloadingOIDCEntityResolver<com.nimbusds.oauth2.sdk.id.Issuer,com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata>
-
-