public class KerberosFederationProvider extends Object implements UserStorageProvider, UserLookupProvider.Streams, CredentialInputValidator, CredentialInputUpdater.Streams, CredentialAuthentication, ImportedUserValidation
UserStorageProvider.EditModeUserLookupProvider.StreamsCredentialInputUpdater.Streams| Modifier and Type | Field and Description |
|---|---|
protected KerberosFederationProviderFactory |
factory |
static String |
KERBEROS_PRINCIPAL |
protected KerberosConfig |
kerberosConfig |
protected UserStorageProviderModel |
model |
protected KeycloakSession |
session |
| Constructor and Description |
|---|
KerberosFederationProvider(KeycloakSession session,
UserStorageProviderModel model,
KerberosFederationProviderFactory factory) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetUserByEmail, getUserById, getUserByUsernamegetDisableableCredentialTypespublic static final String KERBEROS_PRINCIPAL
protected KeycloakSession session
protected UserStorageProviderModel model
protected KerberosConfig kerberosConfig
protected KerberosFederationProviderFactory factory
public KerberosFederationProvider(KeycloakSession session, UserStorageProviderModel model, KerberosFederationProviderFactory factory)
public UserModel validate(RealmModel realm, UserModel user)
validate in interface ImportedUserValidationpublic UserModel getUserByUsername(RealmModel realm, String username)
getUserByUsername in interface UserLookupProvidergetUserByUsername in interface UserLookupProvider.Streamspublic UserModel getUserByEmail(RealmModel realm, String email)
getUserByEmail in interface UserLookupProvidergetUserByEmail in interface UserLookupProvider.Streamspublic UserModel getUserById(RealmModel realm, String id)
getUserById in interface UserLookupProvidergetUserById in interface UserLookupProvider.Streamspublic void preRemove(RealmModel realm)
preRemove in interface UserStorageProviderpublic void preRemove(RealmModel realm, RoleModel role)
preRemove in interface UserStorageProviderpublic void preRemove(RealmModel realm, GroupModel group)
preRemove in interface UserStorageProviderpublic boolean isValid(RealmModel realm, UserModel local)
public boolean updateCredential(RealmModel realm, UserModel user, CredentialInput input)
updateCredential in interface CredentialInputUpdaterpublic void disableCredentialType(RealmModel realm, UserModel user, String credentialType)
disableCredentialType in interface CredentialInputUpdaterpublic Stream<String> getDisableableCredentialTypesStream(RealmModel realm, UserModel user)
getDisableableCredentialTypesStream in interface CredentialInputUpdatergetDisableableCredentialTypesStream in interface CredentialInputUpdater.Streamspublic boolean supportsCredentialType(String credentialType)
supportsCredentialType in interface CredentialInputUpdatersupportsCredentialType in interface CredentialInputValidatorpublic boolean supportsCredentialAuthenticationFor(String type)
supportsCredentialAuthenticationFor in interface CredentialAuthenticationpublic boolean isConfiguredFor(RealmModel realm, UserModel user, String credentialType)
isConfiguredFor in interface CredentialInputValidatorpublic boolean isValid(RealmModel realm, UserModel user, CredentialInput input)
isValid in interface CredentialInputValidatorpublic CredentialValidationOutput authenticate(RealmModel realm, CredentialInput input)
authenticate in interface CredentialAuthenticationprotected UserModel findOrCreateAuthenticatedUser(RealmModel realm, String username)
realm - realmusername - username without realm prefixprotected UserModel importUserToKeycloak(RealmModel realm, String username)
Copyright © 2021 JBoss by Red Hat. All rights reserved.