public class PublicKeyOpenIdResolverImpl extends BaseOpenIdResolver
CLIENT_SECRET_KEY, ISSUER_KEY, JWK, KEY_ALIAS_KEY, KEYSTORE_LOCATION_KEY, KEYSTORE_PASS_KEY, KEYSTORE_TYPE_KEY, WELL_KNOWN_CONFIGURATION
Constructor and Description |
---|
PublicKeyOpenIdResolverImpl(String issuer,
PublicKey key)
Constructor for PublicKeyOpenIdResolverImpl.
|
Modifier and Type | Method and Description |
---|---|
void |
validateIdentity(SignedJwt idClaim)
Validates the supplied Jwt against this OpenId Connect Idp.
|
void |
verifySignature(SignedJwt idClaim)
Verifies that the JWS was signed by the corresponding private key to this
public key.
|
getIssuer
public void validateIdentity(SignedJwt idClaim) throws OpenIdConnectVerificationException
validateIdentity
in interface OpenIdResolver
validateIdentity
in class BaseOpenIdResolver
idClaim
- The Jwt to test is authenticated from this issuerOpenIdConnectVerificationException
- If the Jwt is unable to be verifiedpublic void verifySignature(SignedJwt idClaim) throws InvalidSignatureException
idClaim
- The JWS to verifyInvalidSignatureException
- If the JWS supplied does not match the key for this resolverCopyright © 2010-2018, ForgeRock All Rights Reserved.