@Unstable @Component @Named(value="security.authentication") @Singleton public class AuthenticationScriptService extends Object implements org.xwiki.script.service.ScriptService
Modifier and Type | Field and Description |
---|---|
static String |
ID
The role hint of this component.
|
Constructor and Description |
---|
AuthenticationScriptService() |
Modifier and Type | Method and Description |
---|---|
AuthenticationConfiguration |
getAuthenticationConfiguration() |
Set<String> |
getAuthenticationFailureAvailableStrategies() |
String |
getErrorMessage(String username) |
String |
getForm(String username) |
void |
resetAuthenticationFailureCounter(String username)
Reset the authentication failure record for the given username.
|
public static final String ID
public String getForm(String username)
username
- the login used in the request for authentication.AuthenticationFailureManager.getForm(String)
).public String getErrorMessage(String username)
username
- the login used in the request for authentication.AuthenticationFailureManager.getErrorMessage(String)
).public Set<String> getAuthenticationFailureAvailableStrategies()
public AuthenticationConfiguration getAuthenticationConfiguration()
@Programming public void resetAuthenticationFailureCounter(String username)
username
- the username for which to remove the record.Copyright © 2004–2019 XWiki. All rights reserved.