public class SessionIDCorrector extends Object
SessionID.parseSessionString()
.
SessionIDCorrector will resolve these discrepancies by adding in or removing the
Site ID reference accordingly. This logic depends heavily on the assumptions about how
these two fields are used.
This class balances two competing requirements. The need to be accurate with
the Server>Site mapping, and the need to be performant as this code will
be triggered on every invocation of SessionID
.Constructor and Description |
---|
SessionIDCorrector(Map<String,String> serverToSite) |
Modifier and Type | Method and Description |
---|---|
static SessionIDCorrector |
create()
Factory method to generate an instance of SessionIDCorrector based on the current
WebtopNaming Settings.
|
String |
toString() |
String |
translatePrimaryID(String primaryID,
String siteID)
Performs a possible translation of the Primary ID (S1) field based on the state
of OpenAM Server/Site configuration.
|
String |
translateSiteID(String primaryID,
String siteID)
Performs a possible translation of the Site ID (SI) field based on the state
of OpenAM Server/Site configuration.
|
public static final String HEADER
public static SessionIDCorrector create()
public String translatePrimaryID(String primaryID, String siteID)
primaryID
- Non null, possibly empty field.siteID
- Non null, possibly empty field.public String translateSiteID(String primaryID, String siteID)
primaryID
- Non null, possibly empty field.siteID
- Non null, possibly empty field.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.