避免使用已淘汰的安全鑑別 WSPrincipal getCredential 方法

此規則會標示下列已淘汰的方法:

此方法在 WebSphere Application Server 5.1 版中已淘汰,並可能在將來的版本移除。

您應該使用 com.ibm.websphere.security.auth.WSSubject.getRunAsSubject() com.ibm.websphere.security.auth.WSSubject.getCallerSubject() 方法。

如需其他類別資訊,請參閱: