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 AuthenticationProvider
public List<String> getAvailableOptions()
AuthenticationProvider
getAvailableOptions
in interface AuthenticationProvider
public AuthUser getUser(RealmModel realm, Map<String,String> configuration, String username) throws AuthenticationProviderException
AuthenticationProvider
getUser
in interface AuthenticationProvider
username
- or emailAuthenticationProviderException
public String registerUser(RealmModel realm, Map<String,String> configuration, String username) throws AuthenticationProviderException
AuthenticationProvider
registerUser
in interface AuthenticationProvider
AuthenticationProviderException
- if user creation couldn't happenpublic AuthProviderStatus validatePassword(RealmModel realm, Map<String,String> configuration, String username, String password) throws AuthenticationProviderException
AuthenticationProvider
validatePassword
in interface AuthenticationProvider
AuthenticationProviderException
public boolean updateCredential(RealmModel realm, Map<String,String> configuration, String username, String password) throws AuthenticationProviderException
AuthenticationProvider
updateCredential
in interface AuthenticationProvider
AuthenticationProviderException
Copyright © 2014. All Rights Reserved.