此規則會標示下列方法: com.ibm.websphere.security.WSSecurityHelper 類別:
此方法在 WebSphere Application Server Traditional 8.5 版中已淘汰,並可能在未來版本中移除。 在 Liberty 中沒有此方法。
提供的功能 WSSecurityHelper.getLTPACookieFromSSOToken() 由新方法取代 com.ibm.websphere.security.web.WebSecurityHelper.getSSOCookieFromSSOToken(). 請注意,這個新方法是在類別中 com.ibm.websphere.security.web.WebSecurityHelper, 不 com.ibm.websphere.security.WSSecurityHelper. 此方法會從現行執行緒的主題中擷取 SSO 記號,且會從中建置 SSO Cookie,以用於下游的 Web 呼叫。
請使用新的方法,以便在 WebSphere Application Server Traditional 及 Liberty 中皆相容。 另請注意,使用 getSSOCookieFromSSOToken() 使用中的方法,應用程式需要 WebSphere Application Server V8.0 或更新版本。
自動修正取代了呼叫 WSSecurityHelper.getLTPACookieFromSSOToken() with calls to the WebSecurityHelper.getSSOCookieFromSSOToken() 方法。 的 import 陳述式 com.ibm.websphere.security.web.WebSecurityHelper 已新增 (必要的話)。 比方說,下列程式碼
會取代為
此規則具有自動化修正程式。 將自訂配置複製到應用程式建置檔以啟用它。
如需相關資訊,請參閱