Class RelyingPartyClientInformationProvider

    • Field Detail

      • sortKeyValue

        private static int sortKeyValue
        If we autogenerate a sort key it comes from this count.
      • log

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

        @NonnullAfterInit
        private Integer sortKey
        The key by which we sort the provider.
    • Constructor Detail

      • RelyingPartyClientInformationProvider

        public RelyingPartyClientInformationProvider()
        Constructor.
    • Method Detail

      • setSortKey

        public void setSortKey​(int key)
        Set the sort key.
        Parameters:
        key - what to set
      • getEmbeddedResolver

        @Nonnull
        public ClientInformationResolver getEmbeddedResolver()
        Return what we are build around. Used for testing.
        Returns:
        the parameter we got as a constructor
      • resolve

        @Nonnull
        public Iterable<com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation> resolve​(@Nullable
                                                                                          net.shibboleth.utilities.java.support.resolver.CriteriaSet criteria)
                                                                                   throws net.shibboleth.utilities.java.support.resolver.ResolverException
        Specified by:
        resolve in interface net.shibboleth.utilities.java.support.resolver.Resolver<com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation,​net.shibboleth.utilities.java.support.resolver.CriteriaSet>
        Throws:
        net.shibboleth.utilities.java.support.resolver.ResolverException
      • resolveSingle

        @Nullable
        public com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation resolveSingle​(@Nullable
                                                                                      net.shibboleth.utilities.java.support.resolver.CriteriaSet criteria)
                                                                               throws net.shibboleth.utilities.java.support.resolver.ResolverException
        Specified by:
        resolveSingle in interface net.shibboleth.utilities.java.support.resolver.Resolver<com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation,​net.shibboleth.utilities.java.support.resolver.CriteriaSet>
        Throws:
        net.shibboleth.utilities.java.support.resolver.ResolverException
      • doInitialize

        protected void doInitialize()
                             throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
        Overrides:
        doInitialize in class net.shibboleth.ext.spring.service.AbstractServiceableComponent<ClientInformationResolver>
        Throws:
        net.shibboleth.utilities.java.support.component.ComponentInitializationException
      • refresh

        public void refresh()
                     throws net.shibboleth.utilities.java.support.resolver.ResolverException
        Refresh the data exposed by the resolver.

        An implementation of this method should typically be either synchronized or make use other locking mechanisms to protect against concurrent access.

        Specified by:
        refresh in interface RefreshableClientInformationResolver
        Throws:
        net.shibboleth.utilities.java.support.resolver.ResolverException - if the refresh operation was unsuccessful
      • equals

        public boolean equals​(Object other)
        . We are within a spring context and so equality can be determined by ID, however we also test by sortKey just in case.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object