public interface UserCredentialManager extends UserCredentialStore
Modifier and Type | Method and Description |
---|---|
CredentialValidationOutput |
authenticate(KeycloakSession session,
RealmModel realm,
CredentialInput input)
Given a CredentialInput, authenticate the user.
|
void |
disableCredentialType(RealmModel realm,
UserModel user,
String credentialType)
Calls disableCredential on UserStorageProvider and UserFederationProviders first, then loop through
each CredentialProvider.
|
Set<String> |
getDisableableCredentialTypes(RealmModel realm,
UserModel user)
Returns a set of credential types that can be disabled by disableCredentialType() method
|
boolean |
isConfiguredFor(RealmModel realm,
UserModel user,
String type)
Checks to see if user has credential type configured.
|
boolean |
isConfiguredLocally(RealmModel realm,
UserModel user,
String type)
Only loops through each CredentialProvider to see if credential type is configured for the user.
|
boolean |
isValid(RealmModel realm,
UserModel user,
CredentialInput... inputs)
Validates list of credentials.
|
boolean |
isValid(RealmModel realm,
UserModel user,
List<CredentialInput> inputs)
Validates list of credentials.
|
void |
updateCredential(RealmModel realm,
UserModel user,
CredentialInput input)
Updates a credential.
|
createCredential, getStoredCredentialById, getStoredCredentialByNameAndType, getStoredCredentials, getStoredCredentialsByType, removeStoredCredential, updateCredential
boolean isValid(RealmModel realm, UserModel user, List<CredentialInput> inputs)
realm
- user
- inputs
- boolean isValid(RealmModel realm, UserModel user, CredentialInput... inputs)
realm
- user
- inputs
- void updateCredential(RealmModel realm, UserModel user, CredentialInput input)
realm
- user
- void disableCredentialType(RealmModel realm, UserModel user, String credentialType)
realm
- user
- credentialType
- Set<String> getDisableableCredentialTypes(RealmModel realm, UserModel user)
realm
- user
- boolean isConfiguredFor(RealmModel realm, UserModel user, String type)
realm
- user
- type
- boolean isConfiguredLocally(RealmModel realm, UserModel user, String type)
realm
- user
- type
- CredentialValidationOutput authenticate(KeycloakSession session, RealmModel realm, CredentialInput input)
session
- realm
- input
- Copyright © 2019 JBoss by Red Hat. All rights reserved.