public class AuthenticationProviderManager extends Object
AuthenticationProvider
instances for current realm
and then delegates method call to them.
Example of usage: AuthenticationProviderManager.getManager(realm).validateUser("joe", "password");Constructor and Description |
---|
AuthenticationProviderManager(RealmModel realm,
Map<String,AuthenticationProvider> delegates) |
Modifier and Type | Method and Description |
---|---|
static AuthenticationProviderModel |
getConfiguredProviderModel(RealmModel realm,
String providerName) |
static AuthenticationProviderManager |
getManager(RealmModel realm,
ProviderSession providerSession) |
AuthUser |
getUser(String username) |
boolean |
updatePassword(UserModel user,
String password) |
AuthProviderStatus |
validatePassword(UserModel user,
String password) |
public AuthenticationProviderManager(RealmModel realm, Map<String,AuthenticationProvider> delegates)
public static AuthenticationProviderManager getManager(RealmModel realm, ProviderSession providerSession)
public AuthProviderStatus validatePassword(UserModel user, String password)
public boolean updatePassword(UserModel user, String password) throws AuthenticationProviderException
AuthenticationProviderException
public static AuthenticationProviderModel getConfiguredProviderModel(RealmModel realm, String providerName)
Copyright © 2014. All Rights Reserved.