Class AddJwksToClientMetadata

    • Field Detail

      • log

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

        @NonnullAfterInit
        private org.apache.http.client.HttpClient httpClient
        The HttpClient to use.
      • httpClientSecurityParameters

        @Nullable
        private HttpClientSecurityParameters httpClientSecurityParameters
        HTTP client security parameters.
      • validateRemoteJwkSetPredicate

        @Nonnull
        private Predicate<ProfileRequestContext> validateRemoteJwkSetPredicate
        Predicate used to indicate whether contents of remote JWK set should be validated.
    • Constructor Detail

      • AddJwksToClientMetadata

        public AddJwksToClientMetadata()
        Constructor.
    • Method Detail

      • setHttpClient

        public void setHttpClient​(@Nonnull
                                  org.apache.http.client.HttpClient client)
        Set the HttpClient to use.
        Parameters:
        client - client to use
      • setHttpClientSecurityParameters

        public void setHttpClientSecurityParameters​(@Nullable
                                                    HttpClientSecurityParameters params)
        Set the optional client security parameters.
        Parameters:
        params - the new client security parameters
      • setValidateRemoteJwkSetPredicate

        public void setValidateRemoteJwkSetPredicate​(@Nonnull
                                                     Predicate<ProfileRequestContext> predicate)
        Set the predicate used to indicate whether contents of remote JWK set should be validated.
        Parameters:
        predicate - the predicate used to indicate whether contents of remote JWK set should be validated.
      • containsKeys

        protected boolean containsKeys​(com.nimbusds.jose.jwk.JWKSet jwkSet)
        Checks that the given JWK set contains at least one key.
        Parameters:
        jwkSet - The set of JWKs.
        Returns:
        True if the set contains at least one key, false otherwise.