Class PublicKeyOpenIdResolverImpl

java.lang.Object
org.forgerock.oauth.resolvers.BaseOpenIdResolver
org.forgerock.oauth.resolvers.PublicKeyOpenIdResolverImpl
All Implemented Interfaces:
GenericOpenIdResolver<SignedJwt>, OpenIdResolver

public class PublicKeyOpenIdResolverImpl extends BaseOpenIdResolver
This class exists to allow functionality for those Open ID Connect providers which supply their signatures through asymmetric key algorithms (e.g. RSA). In these cases we want to use a public key (usually retrieved from a Trust Store) to verify the signature.
  • Constructor Details

    • PublicKeyOpenIdResolverImpl

      public PublicKeyOpenIdResolverImpl(String issuer, PublicKey key)
      Constructor for PublicKeyOpenIdResolverImpl. Uses IssuerComparators.DEFAULT for comparing issuer values by exact string comparison.
      Parameters:
      issuer - The issuer (provider) of the Open Id Connect id token
      key - The public key, used to verify a private-key signed signature
    • PublicKeyOpenIdResolverImpl

      public PublicKeyOpenIdResolverImpl(BiPredicate<String,String> issuerComparator, String issuer, PublicKey key)
      Constructor for PublicKeyOpenIdResolverImpl.
      Parameters:
      issuerComparator - The comparator for comparing the incoming issuer value against the expected value.
      issuer - The issuer (provider) of the Open Id Connect id token
      key - The public key, used to verify a private-key signed signature
  • Method Details