public class JwksKeySource extends java.lang.Object implements KeySource
| Constructor and Description |
|---|
JwksKeySource(java.lang.String jwksUri,
javax.ws.rs.client.Client client,
java.lang.String requiredIssuer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.util.List<LoadedPublicKey> |
loadKeysFromSource()
Loads the keys provided by this source.
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitreloadKeysFromSourcepublic JwksKeySource(java.lang.String jwksUri,
javax.ws.rs.client.Client client,
java.lang.String requiredIssuer)
jwksUri - the uri providing a JSON Web Key
Set as Json, e.g. http://keycloak.example.com/auth/realms/sda-reference-solution/protocol/openid-connect/certsclient - the client used to execute the discovery request, may be created from the
application Environment using JerseyClientBuilderrequiredIssuer - the required value of the issuer claim of the token in conjunction to the
current key.public java.util.List<LoadedPublicKey> loadKeysFromSource()
KeySourceloadKeysFromSource in interface KeySourcepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object