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, waitgetAvailableOptions, getNamepublic AuthUser getUser(RealmModel currentRealm, Map<String,String> config, String username) throws AuthenticationProviderException
AuthenticationProvidergetUser in interface AuthenticationProviderusername - or emailAuthenticationProviderExceptionpublic String registerUser(RealmModel currentRealm, Map<String,String> config, String username) throws AuthenticationProviderException
AuthenticationProviderregisterUser in interface AuthenticationProviderAuthenticationProviderException - if user creation couldn't happenpublic AuthProviderStatus validatePassword(RealmModel currentRealm, Map<String,String> config, String username, String password) throws AuthenticationProviderException
AuthenticationProvidervalidatePassword in interface AuthenticationProviderAuthenticationProviderExceptionpublic boolean updateCredential(RealmModel currentRealm, Map<String,String> config, String username, String password) throws AuthenticationProviderException
AuthenticationProviderupdateCredential in interface AuthenticationProviderAuthenticationProviderExceptionprotected abstract RealmModel getRealm(RealmModel currentRealm, Map<String,String> config) throws AuthenticationProviderException
AuthenticationProviderExceptionCopyright © 2014. All Rights Reserved.