public abstract class BaseOpenIdResolver extends Object implements OpenIdResolver
CLIENT_SECRET_KEY, ISSUER_KEY, JWK, KEY_ALIAS_KEY, KEYSTORE_LOCATION_KEY, KEYSTORE_PASS_KEY, KEYSTORE_TYPE_KEY, WELL_KNOWN_CONFIGURATION
Constructor and Description |
---|
BaseOpenIdResolver(String issuer)
Abstract constructor for setting the issuer's identity.
|
Modifier and Type | Method and Description |
---|---|
protected SigningHandler |
createSigningHandlerForKey(SigningManager signingManager,
Key key)
Determine an appropriate signing handler to use for verifying signatures using the given verification key.
|
String |
getIssuer()
Returns the issuer (IdP) for which this resolver will resolve identities.
|
void |
validateIdentity(SignedJwt idClaim)
Validates the supplied Jwt against this OpenId Connect Idp.
|
public BaseOpenIdResolver(String issuer)
issuer
- The issuer (provider) of the Open Id Connect id tokenpublic void validateIdentity(SignedJwt idClaim) throws OpenIdConnectVerificationException
validateIdentity
in interface OpenIdResolver
idClaim
- The Jwt to test is authenticated from this issuerOpenIdConnectVerificationException
- If the Jwt is unable to be verifiedprotected SigningHandler createSigningHandlerForKey(SigningManager signingManager, Key key)
signingManager
- the signing manager.key
- the verification key.IllegalArgumentException
- if no handler can be determined for the given key.public String getIssuer()
getIssuer
in interface OpenIdResolver
Copyright © 2025 Open Identity Platform Community. All rights reserved.