Interface TrustCache
public interface TrustCache
-
Method Summary
Modifier and TypeMethodDescriptiondefault Collection<IdentityPool> findIdentityPools(String providerId) Return the identity pools that match the given provider id.default Collection<String> findIdentityProviderIds(String organizationId) Return the collections of identity providers that match the organization id.identityPool(String poolId) Returns IdentityPool identified by poolId.Returns map of knownIdentityPools keyed by pool id.identityProvider(String providerId) Returns IdentityProvider identified by providerId.org.jose4j.jwk.JsonWebKeySetjsonWebKeySet(String jwtKey) Returns theJsonWebKeySetassociated with the given Issuer.Returns a map of all knownJsonWebKeySets keyed by Issuer.refreshTokenInfo(String refreshTokenKey) ReturnsRefreshTokenInfokeyed by combination of issuer and subClaim.
-
Method Details
-
jsonWebKeySets
-
jsonWebKeySet
Returns theJsonWebKeySetassociated with the given Issuer.- Parameters:
jwtKey- the JWKS endpoint followed by a colon then the issuer.- Returns:
- JsonWebKeySet associated with the key
-
findIdentityPools
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
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
Returns IdentityProvider identified by providerId.- Parameters:
providerId- IdentityProvider identifier- Returns:
IdentityProviderif known, else null
-
identityPool
Returns IdentityPool identified by poolId.- Parameters:
poolId- IdentityPool identifier- Returns:
IdentityPoolif known, else null
-
identityPools
Map<String, IdentityPool> identityPools()Returns map of knownIdentityPools keyed by pool id.- Returns:
- Map of
IdentityPoolif known, else null.
-
refreshTokenInfo
ReturnsRefreshTokenInfokeyed by combination of issuer and subClaim. The refresh token is part ofTokenResponsereceived form the IdP while Oauth / OIDC.- Parameters:
refreshTokenKey- is {jwtIssuer}-{subClaim}- Returns:
RefreshTokenInfoof the given subClaim.
-