Package | Description |
---|---|
org.forgerock.json.jose.jwk |
Classes and interfaces for creating and manipulating JWKs.
|
org.forgerock.json.jose.jwk.store |
This package contains classes to manage a JWKs URI.
|
org.forgerock.oauth.resolvers |
This package contains classes to generate Open ID Resolvers, which can
validate a supplied JWS against an Open ID Connect provider.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Key> |
JWKSetParser.generateMapFromJWK(URL url)
Provides a Map of KeyId:Keys as indicated by the JWKSet's URL.
|
JWKSet |
JWKSetParser.jwkSet(URL url)
Provides a jwks set as indicated by the JWKSet's URL.
|
Map<String,Key> |
JWKSetParser.jwkSetToMap(JWKSet jwkSet)
Converts a supplied JWKSet into a map of key:values, where the keys are the keyIds and the
values are verification keys.
|
Key |
JWKLookup.lookup(String json,
KeyType keyType)
Lookup returns the key from the given json, under the assumption it's of the correct
keyType.
|
Modifier and Type | Method and Description |
---|---|
Promise<JWKSet,FailedToLoadJWKException> |
JwksStore.getLatestJwkSet()
Returns the latest non expired successfully loaded JWK Set.
|
Modifier and Type | Method and Description |
---|---|
JwksStore |
JwksStoreService.configureJwksStore(String uid,
Duration cacheTimeout,
Duration cacheMissCacheTime,
URL jwkUrl)
Deprecated.
Use
JwksStoreService.configureJwksStore(String, Duration, Duration, URL, Clock) with an explicit clock. |
JwksStore |
JwksStoreService.configureJwksStore(String uid,
Duration cacheTimeout,
Duration cacheMissCacheTime,
URL jwkUrl,
Clock clock)
Configure a JWKs store.
|
JWK |
JwksStore.findJwk(Algorithm algorithm,
KeyUse keyUse)
Search for a JWK that matches the algorithm and the key usage.
|
JWK |
JwksStore.findJwk(String kid)
Search for a JWK that matches the kid.
|
void |
JwksStore.reloadJwks()
Communicates with the configured server, attempting to download the latest JWKs for use.
|
void |
JwksStore.setJwkUrl(URL jwkUrl)
Update the JWKs URI.
|
Constructor and Description |
---|
JwksStore(Duration cacheTimeout,
Duration cacheMissCacheTime,
URL jwkUrl,
JWKSetParser jwkSetParser,
Clock clock)
Create a new JWKs store.
|
Modifier and Type | Method and Description |
---|---|
JWKOpenIdResolverImpl |
WellKnownOpenIdConfigurationFactory.build(URL configUrl)
Returns a JWKOpenIdResolverImpl representing the contents of the supplied URL.
|
OpenIdResolver |
OpenIdResolverFactory.createFromOpenIDConfigUrl(URL configUrl)
Creates a public key resolver for the supplied issuer using keys supplied
at the .well-known open ID configuration URL.
|
OpenIdResolver |
OpenIdResolverFactory.createJWKResolver(String issuer,
URL jwkUrl)
Creates a public key resolver for the supplied issuer using
keys supplied at the JWK Set URL.
|
OpenIdResolver |
OpenIdResolverFactory.createJWKResolver(String issuer,
URL jwkUrl,
int readTimeout,
int connTimeout)
Deprecated.
Replaced by
OpenIdResolverFactory.createJWKResolver(String, URL) ()} |
void |
JWKOpenIdResolverImpl.verifySignature(SignedJwt idClaim)
Verifies that the JWS was signed by the supplied key.
|
Constructor and Description |
---|
JWKOpenIdResolverImpl(String issuer,
JwksStore jwksStore)
Constructor using provided timeout values to generate the
SimpleHTTPClient used for communicating over HTTP. |
Copyright © 2010-2018, ForgeRock All Rights Reserved.