com.ibm.websphere.security.web

Class WebSecurityHelper

  1. java.lang.Object
  2. extended bycom.ibm.websphere.security.web.WebSecurityHelper

  1. public class WebSecurityHelper
  2. extends java.lang.Object
Provides methods to perform security functions for web applications.
Since:
WAS 8.0
Version:
WAS 8.0

Constructor Summary

Constructor and Description
WebSecurityHelper()

Method Summary

Modifier and Type Method and Description
  1. static
  2. javax.servlet.http.Cookie
getSSOCookieFromSSOToken()
Extracts the SSO token from the subject of current thread and builds an SSO cookie out of it for use on downstream web invocations.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

WebSecurityHelper

  1. public WebSecurityHelper()

Method Detail

getSSOCookieFromSSOToken

  1. public static javax.servlet.http.Cookie getSSOCookieFromSSOToken( )
  2. throws java.lang.Exception
Extracts 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