public class JWKSourceDataProvider extends Object
| Modifier and Type | Method and Description |
|---|---|
static JWKSourceDataProvider |
getInstance()
Returns an instance of JWK-Source data holder.
|
com.nimbusds.jose.jwk.source.RemoteJWKSet<com.nimbusds.jose.proc.SecurityContext> |
getJWKSource(String jwksUri)
Get cached JWKSet for the jwks_uri.
|
Map<String,com.nimbusds.jose.jwk.source.RemoteJWKSet<com.nimbusds.jose.proc.SecurityContext>> |
getJwkSourceMap() |
void |
refreshJWKSResource(String jwksUri)
Retrieve the new-keyset from the JWKS endpoint in case of signature validation failure.
|
public static JWKSourceDataProvider getInstance()
public com.nimbusds.jose.jwk.source.RemoteJWKSet<com.nimbusds.jose.proc.SecurityContext> getJWKSource(String jwksUri) throws MalformedURLException
jwksUri - Identity provider's JWKS endpoint.MalformedURLException - for invalid URL.public Map<String,com.nimbusds.jose.jwk.source.RemoteJWKSet<com.nimbusds.jose.proc.SecurityContext>> getJwkSourceMap()
public void refreshJWKSResource(String jwksUri) throws TokenValidationFailureException
jwksUri - Identity providers jwks_uri.TokenValidationFailureException - for invalid/malformed URL.Copyright © 2019 WSO2. All rights reserved.