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(org.forgerock.json.jose.jws.SignedJwt idClaim)
Validates the supplied Jwt against this OpenId Connect Idp.
|
void |
verifySignature(org.forgerock.json.jose.jws.SignedJwt idClaim)
Verifies that the JWS was signed by the corresponding private key to this
public key.
|
createSigningHandlerForKey, getIssuerpublic PublicKeyOpenIdResolverImpl(String issuer, PublicKey key)
issuer - The issuer (provider) of the Open Id Connect id tokenkey - The public key, used to verify a private-key signed signaturepublic void validateIdentity(org.forgerock.json.jose.jws.SignedJwt idClaim) throws OpenIdConnectVerificationException
validateIdentity in interface OpenIdResolvervalidateIdentity in class BaseOpenIdResolveridClaim - The Jwt to test is authenticated from this issuerOpenIdConnectVerificationException - If the Jwt is unable to be verifiedpublic void verifySignature(org.forgerock.json.jose.jws.SignedJwt idClaim) throws InvalidSignatureException
idClaim - The JWS to verifyInvalidSignatureException - If the JWS supplied does not match the key for this resolverCopyright © 2016 ForgeRock AS. All Rights Reserved.