Class AbstractOIDCEntityResolver<Key extends com.nimbusds.oauth2.sdk.id.Identifier,​Value>

    • Field Detail

      • log

        private final org.slf4j.Logger log
        Class logger.
      • logPrefix

        private String logPrefix
        Logging prefix.
      • failFastInitialization

        private boolean failFastInitialization
        Whether problems during initialization should cause the provider to fail or go on without metadata. The assumption being that in most cases a provider will recover at some point in the future. Default: true.
    • Constructor Detail

      • AbstractOIDCEntityResolver

        public AbstractOIDCEntityResolver()
        Constructor.
    • Method Detail

      • getLogPrefix

        @Nonnull
        @NotEmpty
        protected String getLogPrefix()
        Return a prefix for logging messages for this component.
        Returns:
        a string for insertion at the beginning of any log messages
      • isFailFastInitialization

        public boolean isFailFastInitialization()
        Gets whether problems during initialization should cause the provider to fail or go on without metadata. The assumption being that in most cases a provider will recover at some point in the future.
        Returns:
        whether problems during initialization should cause the provider to fail
      • setFailFastInitialization

        public void setFailFastInitialization​(boolean failFast)
        Sets whether problems during initialization should cause the provider to fail or go on without metadata. The assumption being that in most cases a provider will recover at some point in the future.
        Parameters:
        failFast - whether problems during initialization should cause the provider to fail
      • lookupIndexedIdentifier

        @Nonnull
        @NonnullElements
        protected List<Value> lookupIndexedIdentifier​(@Nonnull @NotEmpty
                                                      Key identifier)
        Lookup the specified identifier from the index. The returned list will be a copy of what is stored in the backing index, and is safe to be manipulated by callers.
        Parameters:
        identifier - the identifier to lookup
        Returns:
        list copy of indexed identifiers, may be empty, will never be null
      • preProcessEntityDescriptor

        protected void preProcessEntityDescriptor​(@Nonnull
                                                  Value entityDescriptor,
                                                  @Nonnull
                                                  Key key,
                                                  @Nonnull
                                                  AbstractOIDCEntityResolver.JsonBackingStore backingStore)
        Pre-process the specified entity descriptor, updating the specified entity backing store instance as necessary.
        Parameters:
        entityDescriptor - the target entity descriptor to process
        key - key to entity
        backingStore - the backing store instance to update
      • removeByIdentifier

        protected void removeByIdentifier​(@Nonnull
                                          Key identifier,
                                          @Nonnull
                                          AbstractOIDCEntityResolver.JsonBackingStore backingStore)
        Remove from the backing store all metadata for the entity with the given identifier.
        Parameters:
        identifier - the identifier of the metadata to remove
        backingStore - the backing store instance to update
      • indexEntityDescriptor

        protected void indexEntityDescriptor​(@Nonnull
                                             Value entityDescriptor,
                                             @Nonnull
                                             Key key,
                                             @Nonnull
                                             AbstractOIDCEntityResolver.JsonBackingStore backingStore)
        Index the specified entity descriptor, updating the specified entity backing store instance as necessary.
        Parameters:
        entityDescriptor - the target entity descriptor to process
        key - key to entity
        backingStore - the backing store instance to update
      • getBackingStore

        @Nonnull
        protected AbstractOIDCEntityResolver.JsonBackingStore getBackingStore()
        Get the entity backing store currently in use by the metadata resolver.
        Returns:
        the current effective entity backing store
      • setBackingStore

        protected void setBackingStore​(@Nonnull
                                       AbstractOIDCEntityResolver.JsonBackingStore newBackingStore)
        Set the entity backing store currently in use by the metadata resolver.
        Parameters:
        newBackingStore - the new entity backing store