public interface OpenIdResolverService
OpenIdResolver.getIssuer()
value.
Resolvers can be configured by supplying one of the following configurations:
- The issuer's name, along with the specific location of the public key to use
when performing verification as drawn from a standard trust store.
- The issuer's name, along with a shared secret which can be used to create an HMAC
which will verify the signature in the provided JWS.
- The issuer's name, along with the URL of a JWK set, which provides keys through
a public exposure point.
- A .well-known configuration URL, which provides both the issuer name and location
of the corresponding JWK set which it should use to configure the resolver.Modifier and Type | Method and Description |
---|---|
boolean |
configureResolverWithJWK(String issuer,
URL jwkUrl)
Configures a new resolver implementation using the given parameters for this
service which is later retrievable.
|
boolean |
configureResolverWithKey(String issuer,
String keyAlias,
String keystoreLocation,
String keystoreType,
String keystorePassword)
Configures a new resolver implementation using the given parameters for this
service which is later retrievable.
|
boolean |
configureResolverWithSecret(String issuer,
String sharedSecret)
Configures a new resolver implementation using the given parameters for this
service which is later retrievable.
|
boolean |
configureResolverWithWellKnownOpenIdConfiguration(URL configUrl)
Configures a new resolver implementation using the given configUrl as the
location from which to draw all necessary information pertaining to the resolver.
|
Optional<OpenIdResolver> |
getResolverForIssuer(String issuer)
Returns the appropriate OpenId Connect resolver for the issuer.
|
Optional<OpenIdResolver> getResolverForIssuer(String issuer)
issuer
- Reference to the issuer of the OpenID Connect JWTboolean configureResolverWithKey(String issuer, String keyAlias, String keystoreLocation, String keystoreType, String keystorePassword)
issuer
- issuer's name - the OpenID Connect "iss" fieldkeyAlias
- alias inside the keystore of the public key for this resolverkeystoreLocation
- location of the keystore from which to retrieve the keykeystoreType
- the type of keystore to connect tokeystorePassword
- password for connecting to the keystoreboolean configureResolverWithSecret(String issuer, String sharedSecret)
issuer
- issuer's name - the OpenID Connect "iss" fieldsharedSecret
- secret shared between client and providerboolean configureResolverWithJWK(String issuer, URL jwkUrl)
issuer
- issuer's name - the OpenID Connect "iss" fieldjwkUrl
- location from which to determine which public key to useboolean configureResolverWithWellKnownOpenIdConfiguration(URL configUrl)
configUrl
- The well-known Open Id Connect configuration urlCopyright © 2010-2018, ForgeRock All Rights Reserved.