Package org.pac4j.http.client.direct
Class CookieClient
- java.lang.Object
-
- org.pac4j.core.util.InitializableObject
-
- org.pac4j.core.client.BaseClient<C>
-
- org.pac4j.core.client.DirectClient<TokenCredentials>
-
- org.pac4j.http.client.direct.CookieClient
-
- All Implemented Interfaces:
Client<TokenCredentials>
public class CookieClient extends DirectClient<TokenCredentials>
Allows direct authentication based on a cookie.- Since:
- 1.8.0
- Author:
- Misagh Moayyed
-
-
Field Summary
-
Fields inherited from class org.pac4j.core.client.BaseClient
logger
-
-
Constructor Summary
Constructors Constructor Description CookieClient()
CookieClient(String cookieName, Authenticator cookieAuthenticator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clientInit()
String
getCookieName()
void
setCookieName(String cookieName)
-
Methods inherited from class org.pac4j.core.client.DirectClient
getCredentials, getLogoutAction, getRedirectionAction, internalInit
-
Methods inherited from class org.pac4j.core.client.BaseClient
addAuthorizationGenerator, addAuthorizationGenerators, defaultAuthenticator, defaultCredentialsExtractor, defaultProfileCreator, getAuthenticator, getAuthorizationGenerators, getCredentialsExtractor, getCustomProperties, getName, getProfileCreator, getProfileFactoryWhenNotAuthenticated, getUserProfile, notifySessionRenewal, renewUserProfile, retrieveCredentials, retrieveUserProfile, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setCredentialsExtractor, setCustomProperties, setName, setProfileCreator, setProfileFactoryWhenNotAuthenticated, toString
-
Methods inherited from class org.pac4j.core.util.InitializableObject
init, isInitialized
-
-
-
-
Constructor Detail
-
CookieClient
public CookieClient()
-
CookieClient
public CookieClient(String cookieName, Authenticator cookieAuthenticator)
-
-
Method Detail
-
clientInit
protected void clientInit()
- Specified by:
clientInit
in classDirectClient<TokenCredentials>
-
getCookieName
public String getCookieName()
-
setCookieName
public void setCookieName(String cookieName)
-
-