Class InfinispanStickySessionEncoderProvider
- java.lang.Object
- 
- org.keycloak.models.sessions.infinispan.InfinispanStickySessionEncoderProvider
 
- 
- All Implemented Interfaces:
- Provider,- StickySessionEncoderProvider
 
 public class InfinispanStickySessionEncoderProvider extends Object implements StickySessionEncoderProvider - Author:
- Marek Posolda
 
- 
- 
Constructor SummaryConstructors Constructor Description InfinispanStickySessionEncoderProvider(KeycloakSession session, boolean shouldAttachRoute)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()StringdecodeSessionId(String encodedSessionId)StringencodeSessionId(String sessionId)booleanshouldAttachRoute()
 
- 
- 
- 
Constructor Detail- 
InfinispanStickySessionEncoderProviderpublic InfinispanStickySessionEncoderProvider(KeycloakSession session, boolean shouldAttachRoute) 
 
- 
 - 
Method Detail- 
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.
 
 
- 
 
-