Skip to main content

com.eruces.teagent.CookieAuthenticationContext

The CookieAuthenticationContext class is used for Token authentication.

Inheritance

Public Member Functions

MemberDescription
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

MemberDescription
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

ParameterDescription
objSecThe object of secret.

The setCookie method sets a Token with a string.

Parameters

ParameterDescription
cookieA 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.

The setCookie method sets a Token with a byte array.

Parameters

ParameterDescription
cookieA 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