Package com.ibm.websphere.security.web
Class WebSecurityHelper
- java.lang.Object
- 
- com.ibm.websphere.security.web.WebSecurityHelper
 
- 
 public class WebSecurityHelper extends java.lang.ObjectProvides methods to perform security functions for web applications.- Since:
- WAS 8.0
 
- 
- 
Constructor SummaryConstructors Constructor Description WebSecurityHelper()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetJwtCookieName()Extracts the JWT cookie name for use on downstream web invocations.static javax.servlet.http.CookiegetSSOCookieFromSSOToken()Extracts the SSO token from the subject of current thread and builds an SSO cookie out of it for use on downstream web invocations.static java.lang.StringgetSSOCookieName()Extracts the SSO cookie name for use on downstream web invocations.
 
- 
- 
- 
Method Detail- 
getSSOCookieFromSSOTokenpublic static javax.servlet.http.Cookie getSSOCookieFromSSOToken() throws java.lang.ExceptionExtracts the SSO token from the subject of current thread and builds an SSO cookie out of it for use on downstream web invocations. The caller must check for null return value.When the returned value is not null use Cookie methods getName() and getValue() to set the Cookie header on an HTTP request with header value of Cookie.getName()=Cookie.getValue() - Returns:
- an object of type javax.servlet.http.Cookie. May return null.
- Throws:
- java.lang.Exception
 
 - 
getSSOCookieNamepublic static java.lang.String getSSOCookieName() throws java.lang.ExceptionExtracts the SSO cookie name for use on downstream web invocations. Return null when the service is not started or activated.- Returns:
- a String.
- Throws:
- java.lang.Exception
 
 - 
getJwtCookieNamepublic static java.lang.String getJwtCookieName() Extracts the JWT cookie name for use on downstream web invocations. Return null when the service is not started or activated.- Returns:
- a String.
 
 
- 
 
-