com.sun.ts.lib.porting
Interface TSPortletAuthCookieInterface
- public interface TSPortletAuthCookieInterface
Some Portlet TCK tests might require
an authenticated user. The TCK configuration file
TCK_HOME/bin/authTestList.txt can be edited to specify the
tests requiring such support.If TCK framework is configured
to use the Java interface mechanism for authentication,
the value obtained from the specified interface implementation
will be sent as a Cookie HTTP header with request of the test case.
TCK would read and supply value of properties authuser and authpassword
in ts.jte file to
indicate the name and password of the authenticated user.
|
Method Summary |
java.lang.String |
authenticate(java.lang.String user,
java.lang.String password)
This method is called by TCK only for tests requiring the
authenticated user. |
authenticate
public java.lang.String authenticate(java.lang.String user,
java.lang.String password)
- This method is called by TCK only for tests requiring the
authenticated user.
The value returned is sent as a Cookie HTTP Header with each
request for the test.
The Domain and Path to be set in the cookies is extracted
from the portal URL provided in ts.jte file.
Multiple cookies can be specified separated by comma. e.g.
"MYCOOKIE1=A589D24E56BAB6065293937C8A7327B6, MYCOOKIE2=YY;";
- Parameters:
user - indicates the name of the authenticated user, read as value of property authuser.password - indicates the name of the authenticated user, read as value of property authpassword.
mechanism TCK will use.