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

    • Field Detail

      • log

        @Nonnull
        private final org.slf4j.Logger log
        Class logger.
      • metadataFile

        @Nonnull
        private File metadataFile
        The metadata file.
    • Constructor Detail

      • AbstractFileOIDCEntityResolver

        public AbstractFileOIDCEntityResolver​(@Nonnull
                                              Resource metadata)
                                       throws IOException
        Constructor.
        Parameters:
        metadata - the metadata file
        Throws:
        IOException - If the metedata cannot be loaded.
      • AbstractFileOIDCEntityResolver

        public AbstractFileOIDCEntityResolver​(@Nullable
                                              Timer backgroundTaskTimer,
                                              @Nonnull
                                              Resource metadata)
                                       throws IOException
        Constructor.
        Parameters:
        metadata - the metadata file
        backgroundTaskTimer - timer used to refresh metadata in the background
        Throws:
        IOException - If the metedata cannot be loaded.
    • Method Detail

      • setMetadataFile

        protected void setMetadataFile​(@Nonnull
                                       File file)
        Sets the file from which metadata is read.
        Parameters:
        file - path to the metadata file
      • getMetadataIdentifier

        protected String getMetadataIdentifier()
        Gets an identifier which may be used to distinguish this metadata in logging statements.
        Specified by:
        getMetadataIdentifier in class AbstractReloadingOIDCEntityResolver<Key extends com.nimbusds.oauth2.sdk.id.Identifier,​Value>
        Returns:
        identifier which may be used to distinguish this metadata in logging statements
      • getMetadataUpdateTime

        protected Instant getMetadataUpdateTime()
        Get the time for the last update/modification of the metadata file.
        Returns:
        The last update time.