Package org.wildfly.security.http.oidc
Class HardcodedPublicKeyLocator
- java.lang.Object
-
- org.wildfly.security.http.oidc.HardcodedPublicKeyLocator
-
- All Implemented Interfaces:
PublicKeyLocator
class HardcodedPublicKeyLocator extends Object implements PublicKeyLocator
A hardcoded public key locator.- Author:
- Marek Posolda, Farah Juma
-
-
Constructor Summary
Constructors Constructor Description HardcodedPublicKeyLocator(PublicKey publicKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PublicKey
getPublicKey(String kid, OidcClientConfiguration oidcClientConfiguration)
void
reset(OidcClientConfiguration oidcClientConfiguration)
Reset the state of locator (eg.
-
-
-
Field Detail
-
publicKey
private PublicKey publicKey
-
-
Constructor Detail
-
HardcodedPublicKeyLocator
public HardcodedPublicKeyLocator(PublicKey publicKey)
-
-
Method Detail
-
getPublicKey
public PublicKey getPublicKey(String kid, OidcClientConfiguration oidcClientConfiguration)
- Specified by:
getPublicKey
in interfacePublicKeyLocator
- Parameters:
kid
- the key idoidcClientConfiguration
- the OpenID Connect client configuration- Returns:
- the public key for the OpenID provider
-
reset
public void reset(OidcClientConfiguration oidcClientConfiguration)
Description copied from interface:PublicKeyLocator
Reset the state of locator (eg. clear the cached keys)- Specified by:
reset
in interfacePublicKeyLocator
- Parameters:
oidcClientConfiguration
- the OpenID Connect client configuration
-
-