com.eruces.teagent.CookieAuthenticationContext
The CookieAuthenticationContext class is used for Token authentication.
Inheritance
Public Member Functions
| Member | Description |
|---|---|
CookieAuthenticationContext() | The CookieAuthenticationContext default constructor. |
void setSecret(Object objSec) | The setSecret method sets a Token in byte array. |
void setCookie(String cookie) | The setCookie method sets a Token with a string. |
String getEncodedCookie() | The getEncodedCookie method gets a Token in a byte array. |
void setCookie(byte[] cookie) | The setCookie method sets a Token with a byte array. |
byte[] getCookie() | The getCookie method gets a Token with a byte array. |
Static Public Member Functions
| Member | Description |
|---|---|
CookieAuthenticationContext getInstance() | The getInstance method gets an instance of the class. |
Member Function Documentation
CookieAuthenticationContext()
The CookieAuthenticationContext default constructor.
void setSecret(Object objSec)
The setSecret method sets a Token in byte array.
Parameters
| Parameter | Description |
|---|---|
objSec | The object of secret. |
void setCookie(String cookie)
The setCookie method sets a Token with a string.
Parameters
| Parameter | Description |
|---|---|
cookie | A string representing the Token. |
String getEncodedCookie()
The getEncodedCookie method gets a Token in a byte array.
Returns: Returns a base64 encoded string representing the Token.
void setCookie(byte[] cookie)
The setCookie method sets a Token with a byte array.
Parameters
| Parameter | Description |
|---|---|
cookie | A byte array representing the Token. |
byte[] getCookie()
The getCookie method gets a Token with a byte array.
Returns: A byte array representing the Token.
CookieAuthenticationContext getInstance()
The getInstance method gets an instance of the class.
Returns: cookie authentication context object