public class UserCredentialStoreManager extends AbstractStorageManager<UserStorageProvider,UserStorageProviderModel> implements UserCredentialManager.Streams, OnUserCache
UserCredentialManager.Streamssession| Constructor and Description |
|---|
UserCredentialStoreManager(KeycloakSession session) |
consumeEnabledStorageProvidersWithTimeout, flatMapEnabledStorageProvidersWithTimeout, getEnabledStorageProviders, getStorageProviderFactory, getStorageProviderInstance, getStorageProviderInstance, getStorageProviderInstance, getStorageProviderInstance, getStorageProviderModel, getStorageProviderModels, getStorageProviderTimeout, mapEnabledStorageProvidersWithTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfiguredUserStorageCredentialTypes, getDisableableCredentialTypesgetStoredCredentials, getStoredCredentialsByTypepublic UserCredentialStoreManager(KeycloakSession session)
protected UserCredentialStore getStoreForUser(UserModel user)
public void updateCredential(RealmModel realm, UserModel user, CredentialModel cred)
updateCredential in interface UserCredentialStorepublic CredentialModel createCredential(RealmModel realm, UserModel user, CredentialModel cred)
createCredential in interface UserCredentialStorepublic boolean removeStoredCredential(RealmModel realm, UserModel user, String id)
removeStoredCredential in interface UserCredentialStorepublic CredentialModel getStoredCredentialById(RealmModel realm, UserModel user, String id)
getStoredCredentialById in interface UserCredentialStorepublic Stream<CredentialModel> getStoredCredentialsStream(RealmModel realm, UserModel user)
getStoredCredentialsStream in interface UserCredentialStoregetStoredCredentialsStream in interface UserCredentialStore.Streamspublic Stream<CredentialModel> getStoredCredentialsByTypeStream(RealmModel realm, UserModel user, String type)
getStoredCredentialsByTypeStream in interface UserCredentialStoregetStoredCredentialsByTypeStream in interface UserCredentialStore.Streamspublic CredentialModel getStoredCredentialByNameAndType(RealmModel realm, UserModel user, String name, String type)
getStoredCredentialByNameAndType in interface UserCredentialStorepublic boolean moveCredentialTo(RealmModel realm, UserModel user, String id, String newPreviousCredentialId)
moveCredentialTo in interface UserCredentialStorepublic boolean isValid(RealmModel realm, UserModel user, CredentialInput... inputs)
isValid in interface UserCredentialManagerpublic CredentialModel createCredentialThroughProvider(RealmModel realm, UserModel user, CredentialModel model)
createCredentialThroughProvider in interface UserCredentialManagerpublic void updateCredentialLabel(RealmModel realm, UserModel user, String credentialId, String userLabel)
updateCredentialLabel in interface UserCredentialManagerpublic boolean isValid(RealmModel realm, UserModel user, List<CredentialInput> inputs)
isValid in interface UserCredentialManagerpublic static <T> Stream<T> getCredentialProviders(KeycloakSession session, Class<T> type)
public boolean updateCredential(RealmModel realm, UserModel user, CredentialInput input)
updateCredential in interface UserCredentialManagerpublic void disableCredentialType(RealmModel realm, UserModel user, String credentialType)
disableCredentialType in interface UserCredentialManagerpublic Stream<String> getDisableableCredentialTypesStream(RealmModel realm, UserModel user)
getDisableableCredentialTypesStream in interface UserCredentialManagergetDisableableCredentialTypesStream in interface UserCredentialManager.Streamspublic boolean isConfiguredFor(RealmModel realm, UserModel user, String type)
isConfiguredFor in interface UserCredentialManagerpublic boolean isConfiguredLocally(RealmModel realm, UserModel user, String type)
isConfiguredLocally in interface UserCredentialManagerpublic CredentialValidationOutput authenticate(KeycloakSession session, RealmModel realm, CredentialInput input)
authenticate in interface UserCredentialManagerpublic void onCache(RealmModel realm, CachedUserModel user, UserModel delegate)
onCache in interface OnUserCachepublic Stream<String> getConfiguredUserStorageCredentialTypesStream(RealmModel realm, UserModel user)
getConfiguredUserStorageCredentialTypesStream in interface UserCredentialManagergetConfiguredUserStorageCredentialTypesStream in interface UserCredentialManager.StreamsCopyright © 2021 JBoss by Red Hat. All rights reserved.