Interface TrustCache


public interface TrustCache
  • Method Details

    • jsonWebKeySets

      Map<String, org.jose4j.jwk.JsonWebKeySet> jsonWebKeySets()
      Returns a map of all known JsonWebKeySets keyed by Issuer.
      Returns:
      Map of JsonWebKeySets keyed by Issuer name.
    • jsonWebKeySet

      org.jose4j.jwk.JsonWebKeySet jsonWebKeySet(String jwtKey)
      Returns the JsonWebKeySet associated with the given Issuer.
      Parameters:
      jwtKey - the JWKS endpoint followed by a colon then the issuer.
      Returns:
      JsonWebKeySet associated with the key
    • findIdentityPools

      default Collection<IdentityPool> findIdentityPools(String providerId)
      Return the identity pools that match the given provider id.
      Parameters:
      providerId - provider id, must not be null or empty
      Returns:
      Collection of identity pools
    • findIdentityProviderIds

      default Collection<String> findIdentityProviderIds(String organizationId)
      Return the collections of identity providers that match the organization id.
      Parameters:
      organizationId - Organization ID, it must not be null or empty
      Returns:
      Collection of identity providers that match the certificate chain
    • identityProvider

      IdentityProvider identityProvider(String providerId)
      Returns IdentityProvider identified by providerId.
      Parameters:
      providerId - IdentityProvider identifier
      Returns:
      IdentityProvider if known, else null
    • identityPool

      IdentityPool identityPool(String poolId)
      Returns IdentityPool identified by poolId.
      Parameters:
      poolId - IdentityPool identifier
      Returns:
      IdentityPool if known, else null
    • identityPools

      Map<String, IdentityPool> identityPools()
      Returns map of known IdentityPools keyed by pool id.
      Returns:
      Map of IdentityPool if known, else null.
    • refreshTokenInfo

      RefreshTokenInfo refreshTokenInfo(String refreshTokenKey)
      Returns RefreshTokenInfo keyed by combination of issuer and subClaim. The refresh token is part of TokenResponse received form the IdP while Oauth / OIDC.
      Parameters:
      refreshTokenKey - is {jwtIssuer}-{subClaim}
      Returns:
      RefreshTokenInfo of the given subClaim.