public class PropertiesAuthenticationProvider extends Object implements AuthenticationProvider
| Constructor and Description |
|---|
PropertiesAuthenticationProvider(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
List<String> |
getAvailableOptions()
Get names of all available configuration options of current provider
|
String |
getName() |
AuthUser |
getUser(RealmModel realm,
Map<String,String> configuration,
String username)
Get user by given username or email.
|
String |
registerUser(RealmModel realm,
Map<String,String> configuration,
String username)
Try to register user with this authentication provider
|
boolean |
updateCredential(RealmModel realm,
Map<String,String> configuration,
String username,
String password)
Update credential
|
AuthProviderStatus |
validatePassword(RealmModel realm,
Map<String,String> configuration,
String username,
String password)
Standard Authentication flow
|
public PropertiesAuthenticationProvider(Properties properties)
public String getName()
getName in interface AuthenticationProviderpublic List<String> getAvailableOptions()
AuthenticationProvidergetAvailableOptions in interface AuthenticationProviderpublic AuthUser getUser(RealmModel realm, Map<String,String> configuration, String username) throws AuthenticationProviderException
AuthenticationProvidergetUser in interface AuthenticationProviderusername - or emailAuthenticationProviderExceptionpublic String registerUser(RealmModel realm, Map<String,String> configuration, String username) throws AuthenticationProviderException
AuthenticationProviderregisterUser in interface AuthenticationProviderAuthenticationProviderException - if user creation couldn't happenpublic AuthProviderStatus validatePassword(RealmModel realm, Map<String,String> configuration, String username, String password) throws AuthenticationProviderException
AuthenticationProvidervalidatePassword in interface AuthenticationProviderAuthenticationProviderExceptionpublic boolean updateCredential(RealmModel realm, Map<String,String> configuration, String username, String password) throws AuthenticationProviderException
AuthenticationProviderupdateCredential in interface AuthenticationProviderAuthenticationProviderExceptionCopyright © 2014. All Rights Reserved.