public class KerberosFederationProvider extends Object implements UserStorageProvider, UserLookupProvider, CredentialInputValidator, CredentialInputUpdater, CredentialAuthentication, ImportedUserValidation
UserStorageProvider.EditMode| 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) |
public 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(String username, RealmModel realm)
getUserByUsername in interface UserLookupProviderpublic UserModel getUserByEmail(String email, RealmModel realm)
getUserByEmail in interface UserLookupProviderpublic UserModel getUserById(String id, RealmModel realm)
getUserById in interface UserLookupProviderpublic 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 Set<String> getDisableableCredentialTypes(RealmModel realm, UserModel user)
getDisableableCredentialTypes in interface CredentialInputUpdaterpublic 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 © 2019 JBoss by Red Hat. All rights reserved.