public class MockBaseClient<C extends org.pac4j.core.credentials.Credentials> extends org.pac4j.core.client.IndirectClient<C,org.pac4j.core.profile.CommonProfile> implements TestsConstants
ATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver, NEEDS_CLIENT_REDIRECTION_PARAMETERBAD_JSON, BAD_USERNAME, CALLBACK_URL, CLIENT_NAME, CODE, ELEMENT, ELEMENT2, FAKE_VALUE, FIELDS, FIRSTNAME, FIRSTNAME_VALUE, GOOD_USERNAME, GOOD_USERNAME2, GOOGLE_URL, HEADER_NAME, ID, INT_ID, KEY, LIMIT, LOGIN_URL, MILLIS_BETWEEN_CLEANUPS, MULTIPLE_USERNAME, NAME, NAMESPACE, PAC4J_BASE_URL, PAC4J_URL, PARAMETER_NAME, PASSWORD, PATH, PREFIX_HEADER, REALM_NAME, ROLE, SALT, SCOPE, SECRET, STRING_ID, TITLE, TOKEN, TYPE, USERNAME, VALUE, VERIFIER| Constructor and Description |
|---|
MockBaseClient(String name) |
MockBaseClient(String name,
boolean isDirect) |
| Modifier and Type | Method and Description |
|---|---|
org.pac4j.core.client.ClientType |
getClientType() |
protected void |
internalInit(org.pac4j.core.context.WebContext context) |
protected boolean |
isDirectRedirection() |
protected org.pac4j.core.client.IndirectClient<C,org.pac4j.core.profile.CommonProfile> |
newClient() |
protected C |
retrieveCredentials(org.pac4j.core.context.WebContext context) |
protected org.pac4j.core.client.RedirectAction |
retrieveRedirectAction(org.pac4j.core.context.WebContext context) |
protected org.pac4j.core.profile.CommonProfile |
retrieveUserProfile(C credentials,
org.pac4j.core.context.WebContext context) |
computeFinalCallbackUrl, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getRedirectAction, getRedirectionUrl, getStateParameter, isIncludeClientNameInCallbackUrl, redirect, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setIncludeClientNameInCallbackUrlpublic MockBaseClient(String name)
public MockBaseClient(String name, boolean isDirect)
protected org.pac4j.core.client.IndirectClient<C,org.pac4j.core.profile.CommonProfile> newClient()
newClient in class org.pac4j.core.client.BaseClient<C extends org.pac4j.core.credentials.Credentials,org.pac4j.core.profile.CommonProfile>protected void internalInit(org.pac4j.core.context.WebContext context)
internalInit in class org.pac4j.core.util.InitializableWebObjectprotected org.pac4j.core.profile.CommonProfile retrieveUserProfile(C credentials, org.pac4j.core.context.WebContext context)
retrieveUserProfile in class org.pac4j.core.client.BaseClient<C extends org.pac4j.core.credentials.Credentials,org.pac4j.core.profile.CommonProfile>protected boolean isDirectRedirection()
isDirectRedirection in class org.pac4j.core.client.IndirectClient<C extends org.pac4j.core.credentials.Credentials,org.pac4j.core.profile.CommonProfile>protected org.pac4j.core.client.RedirectAction retrieveRedirectAction(org.pac4j.core.context.WebContext context)
retrieveRedirectAction in class org.pac4j.core.client.IndirectClient<C extends org.pac4j.core.credentials.Credentials,org.pac4j.core.profile.CommonProfile>protected C retrieveCredentials(org.pac4j.core.context.WebContext context) throws org.pac4j.core.exception.RequiresHttpAction
retrieveCredentials in class org.pac4j.core.client.IndirectClient<C extends org.pac4j.core.credentials.Credentials,org.pac4j.core.profile.CommonProfile>org.pac4j.core.exception.RequiresHttpActionpublic org.pac4j.core.client.ClientType getClientType()
getClientType in class org.pac4j.core.client.BaseClient<C extends org.pac4j.core.credentials.Credentials,org.pac4j.core.profile.CommonProfile>Copyright © 2016. All Rights Reserved.