public class PasswordClient extends org.pac4j.core.client.IndirectClient<PasswordCredentials>
Modifier and Type | Field and Description |
---|---|
static String |
ERROR_PARAMETER |
static String |
MISSING_FIELD_ERROR |
static String |
NAME |
Constructor and Description |
---|
PasswordClient(String loginUrl,
Projekt project,
Locale locale) |
Modifier and Type | Method and Description |
---|---|
protected void |
clientInit() |
protected String |
computeErrorMessage(Exception e)
Return the error message depending on the thrown exception.
|
String |
getLoginUrl() |
protected org.pac4j.core.exception.http.HttpAction |
handleInvalidCredentials(org.pac4j.core.context.WebContext context,
String message,
String errorMessage) |
protected Optional<PasswordCredentials> |
retrieveCredentials(org.pac4j.core.context.WebContext context) |
String |
toString() |
computeFinalCallbackUrl, defaultLogoutActionBuilder, defaultRedirectionActionBuilder, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCodeVerifierSessionAttributeName, getCredentials, getLogoutAction, getLogoutActionBuilder, getNonceSessionAttributeName, getRedirectionAction, getRedirectionActionBuilder, getStateSessionAttributeName, getUrlResolver, internalInit, newDefaultCallbackUrlResolver, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setLogoutActionBuilder, setRedirectionActionBuilder, setUrlResolver
addAuthorizationGenerator, addAuthorizationGenerators, defaultAuthenticator, defaultCredentialsExtractor, defaultProfileCreator, getAuthenticator, getAuthorizationGenerators, getCredentialsExtractor, getCustomProperties, getName, getProfileCreator, getProfileFactoryWhenNotAuthenticated, getUserProfile, notifySessionRenewal, renewUserProfile, retrieveUserProfile, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setCredentialsExtractor, setCustomProperties, setName, setProfileCreator, setProfileFactoryWhenNotAuthenticated
public static final String MISSING_FIELD_ERROR
public static final String ERROR_PARAMETER
public static final String NAME
public String getLoginUrl()
protected void clientInit()
clientInit
in class org.pac4j.core.client.IndirectClient<PasswordCredentials>
protected Optional<PasswordCredentials> retrieveCredentials(org.pac4j.core.context.WebContext context)
retrieveCredentials
in class org.pac4j.core.client.BaseClient<PasswordCredentials>
protected org.pac4j.core.exception.http.HttpAction handleInvalidCredentials(org.pac4j.core.context.WebContext context, String message, String errorMessage)
protected String computeErrorMessage(Exception e)
e
- the technical exceptionpublic String toString()
toString
in class org.pac4j.core.client.IndirectClient<PasswordCredentials>
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.