public class OpenIdResolverFactory extends Object
Constructor and Description |
---|
OpenIdResolverFactory(int readTimeout,
int connTimeout)
For generating an OpenIDResolverFactory with the supplied timeouts which will
be used for all HTTP communication originating form this factory.
|
Modifier and Type | Method and Description |
---|---|
OpenIdResolver |
createFromOpenIDConfigUrl(URL configUrl)
Creates a public key resolver for the supplied issuer using keys supplied
at the .well-known open ID configuration URL.
|
OpenIdResolver |
createJWKResolver(String issuer,
URL jwkUrl)
Creates a public key resolver for the supplied issuer using
keys supplied at the JWK Set URL.
|
OpenIdResolver |
createJWKResolver(String issuer,
URL jwkUrl,
int readTimeout,
int connTimeout)
Deprecated.
Replaced by
OpenIdResolverFactory.createJWKResolver(String, URL) ()} |
OpenIdResolver |
createPublicKeyResolver(String issuer,
PublicKey key)
Creates a public key resolver for the supplied issuer.
|
OpenIdResolver |
createSecretsProviderResolver(String issuer,
SecretsProvider provider,
Purpose<VerificationKey> purpose)
Creates a public key based resolver for the supplied
issuer using
keys available through the given provider . |
OpenIdResolver |
createSharedSecretResolver(String issuer,
String sharedSecret)
Creates a shared secret (HMAC) key resolver for the supplied issuer.
|
public OpenIdResolverFactory(int readTimeout, int connTimeout)
readTimeout
- HTTP read timeout for produced resolversconnTimeout
- HTTP connection timeout for produced resolverspublic OpenIdResolver createPublicKeyResolver(String issuer, PublicKey key)
issuer
- The issuer's reference namekey
- Key to use for this issuerpublic OpenIdResolver createSharedSecretResolver(String issuer, String sharedSecret)
issuer
- The issuer's reference namesharedSecret
- SharedSecret for which to use with HMAC@Deprecated public OpenIdResolver createJWKResolver(String issuer, URL jwkUrl, int readTimeout, int connTimeout) throws FailedToLoadJWKException
OpenIdResolverFactory.createJWKResolver(String, URL)
()}issuer
- The issuer's reference namejwkUrl
- From which to read the JWK SetreadTimeout
- read timeout setting for HTTP connectionsconnTimeout
- connection timeout setting for HTTP connectionsFailedToLoadJWKException
- If there were problems reading or configuring data from the URLpublic OpenIdResolver createJWKResolver(String issuer, URL jwkUrl) throws FailedToLoadJWKException
issuer
- The issuer's reference namejwkUrl
- From which to read the JWK SetFailedToLoadJWKException
- If there were problems reading or configuring data from the URLpublic OpenIdResolver createSecretsProviderResolver(String issuer, SecretsProvider provider, Purpose<VerificationKey> purpose)
issuer
using
keys available through the given provider
.
The JWT kid attribute is used as secret's stable ID when looking up the secret.
issuer
- The issuer's reference nameprovider
- Secrets providerpurpose
- verification key purposepublic OpenIdResolver createFromOpenIDConfigUrl(URL configUrl) throws FailedToLoadJWKException
configUrl
- Location of the .well-known Open ID Connect configFailedToLoadJWKException
- If there were problems reading or configuring data from the URLCopyright © 2010-2018, ForgeRock All Rights Reserved.