public abstract class AbstractModelAuthenticationProvider extends Object implements AuthenticationProvider
Constructor and Description |
---|
AbstractModelAuthenticationProvider() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected AuthUser |
createAuthenticatedUserInstance(UserModel user) |
protected abstract RealmModel |
getRealm(RealmModel currentRealm,
Map<String,String> config) |
AuthUser |
getUser(RealmModel currentRealm,
Map<String,String> config,
String username)
Get user by given username or email.
|
String |
registerUser(RealmModel currentRealm,
Map<String,String> config,
String username)
Try to register user with this authentication provider
|
boolean |
updateCredential(RealmModel currentRealm,
Map<String,String> config,
String username,
String password)
Update credential
|
AuthProviderStatus |
validatePassword(RealmModel currentRealm,
Map<String,String> config,
String username,
String password)
Standard Authentication flow
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAvailableOptions, getName
public AuthUser getUser(RealmModel currentRealm, Map<String,String> config, String username) throws AuthenticationProviderException
AuthenticationProvider
getUser
in interface AuthenticationProvider
username
- or emailAuthenticationProviderException
public String registerUser(RealmModel currentRealm, Map<String,String> config, String username) throws AuthenticationProviderException
AuthenticationProvider
registerUser
in interface AuthenticationProvider
AuthenticationProviderException
- if user creation couldn't happenpublic AuthProviderStatus validatePassword(RealmModel currentRealm, Map<String,String> config, String username, String password) throws AuthenticationProviderException
AuthenticationProvider
validatePassword
in interface AuthenticationProvider
AuthenticationProviderException
public boolean updateCredential(RealmModel currentRealm, Map<String,String> config, String username, String password) throws AuthenticationProviderException
AuthenticationProvider
updateCredential
in interface AuthenticationProvider
AuthenticationProviderException
protected abstract RealmModel getRealm(RealmModel currentRealm, Map<String,String> config) throws AuthenticationProviderException
AuthenticationProviderException
Copyright © 2014. All Rights Reserved.