Package org.keycloak.sessions
Class DisabledStickySessionEncoderProvider
- java.lang.Object
- 
- org.keycloak.sessions.DisabledStickySessionEncoderProvider
 
- 
- All Implemented Interfaces:
- EnvironmentDependentProviderFactory,- Provider,- ProviderFactory<StickySessionEncoderProvider>,- StickySessionEncoderProvider,- StickySessionEncoderProviderFactory
 
 public class DisabledStickySessionEncoderProvider extends Object implements StickySessionEncoderProviderFactory, StickySessionEncoderProvider, EnvironmentDependentProviderFactory 
- 
- 
Constructor SummaryConstructors Constructor Description DisabledStickySessionEncoderProvider()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()This is called when the server shuts down.StickySessionEncoderProvidercreate(KeycloakSession session)StringdecodeSessionId(String encodedSessionId)StringencodeSessionId(String sessionId)StringgetId()voidinit(Config.Scope config)Only called once when the factory is first created.booleanisSupported()voidpostInit(KeycloakSessionFactory factory)Called after all provider factories have been initializedbooleanshouldAttachRoute()- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.provider.EnvironmentDependentProviderFactoryisSupported
 - 
Methods inherited from interface org.keycloak.provider.ProviderFactorygetConfigMetadata, order
 
- 
 
- 
- 
- 
Method Detail- 
createpublic StickySessionEncoderProvider create(KeycloakSession session) - Specified by:
- createin interface- ProviderFactory<StickySessionEncoderProvider>
 
 - 
encodeSessionIdpublic String encodeSessionId(String sessionId) - Specified by:
- encodeSessionIdin interface- StickySessionEncoderProvider
- Returns:
- Encoded value to be used as the value of sticky session cookie (AUTH_SESSION_ID cookie)
 
 - 
decodeSessionIdpublic String decodeSessionId(String encodedSessionId) - Specified by:
- decodeSessionIdin interface- StickySessionEncoderProvider
- Parameters:
- encodedSessionId- value of the sticky session cookie
- Returns:
- decoded value, which represents the actual ID of the AuthenticationSessionModel
 
 - 
shouldAttachRoutepublic boolean shouldAttachRoute() - Specified by:
- shouldAttachRoutein interface- StickySessionEncoderProvider
- Returns:
- true if information about route should be attached to the sticky session cookie by Keycloak. Otherwise it may be attached by loadbalancer.
 
 - 
initpublic void init(Config.Scope config) Description copied from interface:ProviderFactoryOnly called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
- initin interface- ProviderFactory<StickySessionEncoderProvider>
 
 - 
postInitpublic void postInit(KeycloakSessionFactory factory) Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
- postInitin interface- ProviderFactory<StickySessionEncoderProvider>
 
 - 
closepublic void close() Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
- closein interface- Provider
- Specified by:
- closein interface- ProviderFactory<StickySessionEncoderProvider>
 
 - 
getIdpublic String getId() - Specified by:
- getIdin interface- ProviderFactory<StickySessionEncoderProvider>
 
 - 
isSupportedpublic boolean isSupported() - Specified by:
- isSupportedin interface- EnvironmentDependentProviderFactory
- Returns:
- trueif the provider is supported and should be available,- falseotherwise
 
 
- 
 
-