Package org.apache.solr.security.jwt
Class JWTIssuerConfig.WellKnownDiscoveryConfig
- java.lang.Object
-
- org.apache.solr.security.jwt.JWTIssuerConfig.WellKnownDiscoveryConfig
-
- Enclosing class:
- JWTIssuerConfig
public static class JWTIssuerConfig.WellKnownDiscoveryConfig extends Object
Config object for a OpenId Connect well-known config.Typically exposed through
/.well-known/openid-configuration endpoint
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAuthorizationEndpoint()
String
getIssuer()
String
getJwksUrl()
List<String>
getResponseTypesSupported()
List<String>
getScopesSupported()
String
getTokenEndpoint()
String
getUserInfoEndpoint()
static JWTIssuerConfig.WellKnownDiscoveryConfig
parse(InputStream configStream)
static JWTIssuerConfig.WellKnownDiscoveryConfig
parse(String urlString)
static JWTIssuerConfig.WellKnownDiscoveryConfig
parse(String json, Charset charset)
static JWTIssuerConfig.WellKnownDiscoveryConfig
parse(URL url, Collection<X509Certificate> trustedCerts)
Fetch well-known config from a URL, with optional list of trusted certificates
-
-
-
Method Detail
-
parse
public static JWTIssuerConfig.WellKnownDiscoveryConfig parse(String urlString) throws MalformedURLException
- Throws:
MalformedURLException
-
parse
public static JWTIssuerConfig.WellKnownDiscoveryConfig parse(URL url, Collection<X509Certificate> trustedCerts)
Fetch well-known config from a URL, with optional list of trusted certificates- Parameters:
url
- the url to fetchtrustedCerts
- optional list of trusted SSL certs. May be null to fall-back to Java's defaults- Returns:
- an instance of WellKnownDiscoveryConfig object
-
parse
public static JWTIssuerConfig.WellKnownDiscoveryConfig parse(String json, Charset charset)
-
parse
public static JWTIssuerConfig.WellKnownDiscoveryConfig parse(InputStream configStream)
-
getJwksUrl
public String getJwksUrl()
-
getIssuer
public String getIssuer()
-
getAuthorizationEndpoint
public String getAuthorizationEndpoint()
-
getUserInfoEndpoint
public String getUserInfoEndpoint()
-
getTokenEndpoint
public String getTokenEndpoint()
-
-