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
ConstructorsConstructorDescriptionSubjectCredentialManagerCacheAdapter(KeycloakSession session, RealmModel realm, UserModel user) -
Method Summary
Modifier and TypeMethodDescriptionUpdates a credential of the entity with an updatedCredentialModel.voiddisableCredentialType(String credentialType) Disable a credential by type.abstract voidbooleanmoveStoredCredentialTo(String id, String newPreviousCredentialId) Re-order the stored credentials.booleanUpdates a credential of the entity with an updatedCredentialModel.booleanupdateCredential(CredentialInput input) Updates a credential of the entity with the inputs provided by the entity.voidupdateCredentialLabel(String credentialId, String userLabel) Update the label for a stored credentials chosen by the owner of the entity.voidUpdates a credential of the entity with an updatedCredentialModel.Methods inherited from class org.keycloak.credential.UserCredentialManager
getConfiguredUserStorageCredentialTypesStream, getDisableableCredentialTypesStream, getFederatedCredentialsStream, getStoredCredentialById, getStoredCredentialByNameAndType, getStoredCredentialsByTypeStream, getStoredCredentialsStream, isConfiguredFor, isConfiguredLocally, isValidMethods inherited from class org.keycloak.storage.AbstractStorageManager
consumeEnabledStorageProvidersWithTimeout, flatMapEnabledStorageProvidersWithTimeout, getEnabledStorageProviders, getStorageProviderFactory, getStorageProviderInstance, getStorageProviderInstance, getStorageProviderInstance, getStorageProviderInstance, getStorageProviderModel, getStorageProviderModels, getStorageProviderTimeout, mapEnabledStorageProvidersWithTimeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.models.SubjectCredentialManager
getCredentials, isValid
-
Constructor Details
-
SubjectCredentialManagerCacheAdapter
public SubjectCredentialManagerCacheAdapter(KeycloakSession session, RealmModel realm, UserModel user)
-
-
Method Details
-
invalidateCacheForEntity
public abstract void invalidateCacheForEntity() -
updateCredential
Description copied from interface:SubjectCredentialManagerUpdates a credential of the entity with the inputs provided by the entity.- Specified by:
updateCredentialin interfaceSubjectCredentialManager- Overrides:
updateCredentialin classUserCredentialManager- Returns:
trueif credentials have been updated successfully
-
updateStoredCredential
Description copied from interface:SubjectCredentialManagerUpdates a credential of the entity with an updatedCredentialModel. Usually called by aCredentialProvider.- Specified by:
updateStoredCredentialin interfaceSubjectCredentialManager- Overrides:
updateStoredCredentialin classUserCredentialManager
-
createStoredCredential
Description copied from interface:SubjectCredentialManagerUpdates a credential of the entity with an updatedCredentialModel. Usually called by aCredentialProvider.- Specified by:
createStoredCredentialin interfaceSubjectCredentialManager- Overrides:
createStoredCredentialin classUserCredentialManager
-
removeStoredCredentialById
Description copied from interface:SubjectCredentialManagerUpdates 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:
removeStoredCredentialByIdin interfaceSubjectCredentialManager- Overrides:
removeStoredCredentialByIdin classUserCredentialManager
-
moveStoredCredentialTo
Description copied from interface:SubjectCredentialManagerRe-order the stored credentials.- Specified by:
moveStoredCredentialToin interfaceSubjectCredentialManager- Overrides:
moveStoredCredentialToin classUserCredentialManager
-
updateCredentialLabel
Description copied from interface:SubjectCredentialManagerUpdate the label for a stored credentials chosen by the owner of the entity.- Specified by:
updateCredentialLabelin interfaceSubjectCredentialManager- Overrides:
updateCredentialLabelin classUserCredentialManager
-
disableCredentialType
Description copied from interface:SubjectCredentialManagerDisable a credential by type.- Specified by:
disableCredentialTypein interfaceSubjectCredentialManager- Overrides:
disableCredentialTypein classUserCredentialManager
-
createCredentialThroughProvider
- Specified by:
createCredentialThroughProviderin interfaceSubjectCredentialManager- Overrides:
createCredentialThroughProviderin classUserCredentialManager
-