public class Auth0PublicKeyProvider extends Object implements PublicKeyProvider
kid claim.
This class utilize the auth0 API to retrieve the JSON web public key corresponding to the
kid token header claim value. The JWK provider URL is the token's issuer claim
value.
| Constructor and Description |
|---|
Auth0PublicKeyProvider() |
| Modifier and Type | Method and Description |
|---|---|
PublicKey |
getPublicKey(String token)
Returns a public key which used to sign the
token argument. |
public PublicKey getPublicKey(String token) throws InvalidTokenException
PublicKeyProvidertoken argument.getPublicKey in interface PublicKeyProvidertoken - The signed token bearing information on the public key which was used to sign the
token.InvalidTokenException - In case of exception throws while trying to extract the public
key from the token.Copyright © 2015–2019. All rights reserved.