Class SubjectCredentialManagerCacheAdapter
java.lang.Object
org.keycloak.storage.AbstractStorageManager<UserStorageProvider,UserStorageProviderModel>
org.keycloak.credential.UserCredentialManager
org.keycloak.models.cache.infinispan.SubjectCredentialManagerCacheAdapter
- All Implemented Interfaces:
SubjectCredentialManager
- Author:
- Alexander Schwartz
-
Constructor Summary
ConstructorDescriptionSubjectCredentialManagerCacheAdapter
(KeycloakSession session, RealmModel realm, UserModel user) -
Method Summary
Modifier and TypeMethodDescriptionUpdates a credential of the entity with an updatedCredentialModel
.void
disableCredentialType
(String credentialType) Disable a credential by type.abstract void
boolean
moveStoredCredentialTo
(String id, String newPreviousCredentialId) Re-order the stored credentials.boolean
Updates a credential of the entity with an updatedCredentialModel
.boolean
updateCredential
(CredentialInput input) Updates a credential of the entity with the inputs provided by the entity.void
updateCredentialLabel
(String credentialId, String userLabel) Update the label for a stored credentials chosen by the owner of the entity.void
Updates a credential of the entity with an updatedCredentialModel
.Methods inherited from class org.keycloak.credential.UserCredentialManager
getConfiguredUserStorageCredentialTypesStream, getDisableableCredentialTypesStream, getStoredCredentialById, getStoredCredentialByNameAndType, getStoredCredentialsByTypeStream, getStoredCredentialsStream, isConfiguredFor, isConfiguredLocally, isValid
Methods inherited from class org.keycloak.storage.AbstractStorageManager
consumeEnabledStorageProvidersWithTimeout, flatMapEnabledStorageProvidersWithTimeout, getEnabledStorageProviders, getStorageProviderFactory, getStorageProviderInstance, getStorageProviderInstance, getStorageProviderInstance, getStorageProviderInstance, getStorageProviderModel, getStorageProviderModels, getStorageProviderTimeout, mapEnabledStorageProvidersWithTimeout
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.models.SubjectCredentialManager
isValid
-
Constructor Details
-
SubjectCredentialManagerCacheAdapter
public SubjectCredentialManagerCacheAdapter(KeycloakSession session, RealmModel realm, UserModel user)
-
-
Method Details
-
invalidateCacheForEntity
public abstract void invalidateCacheForEntity() -
updateCredential
Description copied from interface:SubjectCredentialManager
Updates a credential of the entity with the inputs provided by the entity.- Specified by:
updateCredential
in interfaceSubjectCredentialManager
- Overrides:
updateCredential
in classUserCredentialManager
- Returns:
true
if credentials have been updated successfully
-
updateStoredCredential
Description copied from interface:SubjectCredentialManager
Updates a credential of the entity with an updatedCredentialModel
. Usually called by aCredentialProvider
.- Specified by:
updateStoredCredential
in interfaceSubjectCredentialManager
- Overrides:
updateStoredCredential
in classUserCredentialManager
-
createStoredCredential
Description copied from interface:SubjectCredentialManager
Updates a credential of the entity with an updatedCredentialModel
. Usually called by aCredentialProvider
.- Specified by:
createStoredCredential
in interfaceSubjectCredentialManager
- Overrides:
createStoredCredential
in classUserCredentialManager
-
removeStoredCredentialById
Description copied from interface:SubjectCredentialManager
Updates a credential of the entity with an updatedCredentialModel
. Usually called by aCredentialProvider
, or from the account management when a user removes, for example, an OTP token.- Specified by:
removeStoredCredentialById
in interfaceSubjectCredentialManager
- Overrides:
removeStoredCredentialById
in classUserCredentialManager
-
moveStoredCredentialTo
Description copied from interface:SubjectCredentialManager
Re-order the stored credentials.- Specified by:
moveStoredCredentialTo
in interfaceSubjectCredentialManager
- Overrides:
moveStoredCredentialTo
in classUserCredentialManager
-
updateCredentialLabel
Description copied from interface:SubjectCredentialManager
Update the label for a stored credentials chosen by the owner of the entity.- Specified by:
updateCredentialLabel
in interfaceSubjectCredentialManager
- Overrides:
updateCredentialLabel
in classUserCredentialManager
-
disableCredentialType
Description copied from interface:SubjectCredentialManager
Disable a credential by type.- Specified by:
disableCredentialType
in interfaceSubjectCredentialManager
- Overrides:
disableCredentialType
in classUserCredentialManager
-
createCredentialThroughProvider
- Specified by:
createCredentialThroughProvider
in interfaceSubjectCredentialManager
- Overrides:
createCredentialThroughProvider
in classUserCredentialManager
-