Package org.keycloak.models.map.keys
Class MapPublicKeyStorageProvider
- java.lang.Object
- 
- org.keycloak.models.map.keys.MapPublicKeyStorageProvider
 
- 
- All Implemented Interfaces:
- PublicKeyStorageProvider,- Provider
 
 public class MapPublicKeyStorageProvider extends Object implements PublicKeyStorageProvider 
- 
- 
Constructor SummaryConstructors Constructor Description MapPublicKeyStorageProvider(KeycloakSession session, Map<String,FutureTask<PublicKeysWrapper>> tasksInProgress)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()KeyWrappergetFirstPublicKey(String modelKey, String algorithm, PublicKeyLoader loader)Get first found public key to verify messages signed by particular client having several public keys.KeyWrappergetPublicKey(String modelKey, String kid, String algorithm, PublicKeyLoader loader)Get public key to verify messages signed by particular client.
 
- 
- 
- 
Constructor Detail- 
MapPublicKeyStorageProviderpublic MapPublicKeyStorageProvider(KeycloakSession session, Map<String,FutureTask<PublicKeysWrapper>> tasksInProgress) 
 
- 
 - 
Method Detail- 
getFirstPublicKeypublic KeyWrapper getFirstPublicKey(String modelKey, String algorithm, PublicKeyLoader loader) Description copied from interface:PublicKeyStorageProviderGet first found public key to verify messages signed by particular client having several public keys. Used for example during JWT client authentication or to encrypt content encryption key (CEK) by particular client. Used for example during encrypting a token in JWE- Specified by:
- getFirstPublicKeyin interface- PublicKeyStorageProvider
- Returns:
 
 - 
getPublicKeypublic KeyWrapper getPublicKey(String modelKey, String kid, String algorithm, PublicKeyLoader loader) Description copied from interface:PublicKeyStorageProviderGet public key to verify messages signed by particular client. Used for example during JWT client authentication- Specified by:
- getPublicKeyin interface- PublicKeyStorageProvider
- algorithm- The returned key must match this algorithm (unless the algorithm is not set in the JWK)
- Returns:
 
 
- 
 
-