public class LegacySessionIDExtensions extends Object implements SessionIDExtensions
Modifier and Type | Field and Description |
---|---|
static String |
PRIMARY_ID |
static String |
SITE_ID |
static String |
STORAGE_KEY |
Constructor and Description |
---|
LegacySessionIDExtensions() |
LegacySessionIDExtensions(Map<String,String> extensionsMap) |
LegacySessionIDExtensions(String extensionPart)
Given a SessionID encoded extension string, parse the contents and generate
the extension map.
|
LegacySessionIDExtensions(String primary,
String site,
String storage) |
Modifier and Type | Method and Description |
---|---|
void |
add(String key,
String value) |
Map<String,String> |
asMap() |
String |
get(String key) |
String |
getPrimaryID()
See
SessionID.validate() for an explanation of this value. |
String |
getSiteID()
See
SessionID.validate() for an explanation of this value. |
String |
getStorageKey()
Storage key is used primarily in Internal Request Routing.
|
String |
toString() |
public static final String PRIMARY_ID
public static final String STORAGE_KEY
public static final String SITE_ID
public LegacySessionIDExtensions(String primary, String site, String storage)
public LegacySessionIDExtensions()
public LegacySessionIDExtensions(String extensionPart) throws IOException
extensionPart
- the encoded extension map part of SessionID.IOException
- if there is an error decoding the extensionspublic String getPrimaryID()
SessionID.validate()
for an explanation of this value.getPrimaryID
in interface SessionIDExtensions
public String getSiteID()
SessionID.validate()
for an explanation of this value.getSiteID
in interface SessionIDExtensions
public String getStorageKey()
getStorageKey
in interface SessionIDExtensions
public String get(String key)
get
in interface SessionIDExtensions
key
- Non null keypublic void add(String key, String value)
add
in interface SessionIDExtensions
key
- Key to store in extensions map.value
- Value to store in extensions map.public Map<String,String> asMap()
asMap
in interface SessionIDExtensions
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.