Class RemoteJwkUtils


  • public final class RemoteJwkUtils
    extends Object
    Generic utility methods related to remote JWK sets.
    • Constructor Detail

      • RemoteJwkUtils

        private RemoteJwkUtils()
        Constructor.
    • Method Detail

      • fetchRemoteJwkSet

        public static com.nimbusds.jose.jwk.JWKSet fetchRemoteJwkSet​(String logPrefix,
                                                                     URI uri,
                                                                     org.apache.http.client.HttpClient httpClient,
                                                                     org.opensaml.security.httpclient.HttpClientSecurityParameters httpClientSecurityParameters)
        Fetches the JWK set from the given URI using the given client and security parameters.
        Parameters:
        logPrefix - log prefix
        uri - the endpoint for the JWK set.
        httpClient - HTTP client
        httpClientSecurityParameters - security parameters
        Returns:
        The JWK set fetched from the endpoint, or null if it couldn't be fetched.