Package org.keycloak.sessions
Interface StickySessionEncoderProvider
- 
- All Superinterfaces:
- Provider
 - All Known Implementing Classes:
- DisabledStickySessionEncoderProvider,- InfinispanStickySessionEncoderProvider
 
 public interface StickySessionEncoderProvider extends Provider - Author:
- Marek Posolda
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description StringdecodeSessionId(String encodedSessionId)StringencodeSessionId(String sessionId)booleanshouldAttachRoute()
 
- 
- 
- 
Method Detail- 
encodeSessionIdString encodeSessionId(String sessionId) - Parameters:
- sessionId-
- Returns:
- Encoded value to be used as the value of sticky session cookie (AUTH_SESSION_ID cookie)
 
 - 
decodeSessionIdString decodeSessionId(String encodedSessionId) - Parameters:
- encodedSessionId- value of the sticky session cookie
- Returns:
- decoded value, which represents the actual ID of the AuthenticationSessionModel
 
 - 
shouldAttachRouteboolean shouldAttachRoute() - Returns:
- true if information about route should be attached to the sticky session cookie by Keycloak. Otherwise it may be attached by loadbalancer.
 
 
- 
 
-