Package org.silverpeas.core.web.token
Class TokenSettingTemplate
- java.lang.Object
-
- org.silverpeas.core.web.token.TokenSettingTemplate
-
public class TokenSettingTemplate extends Object
A template from which a Javascript script is generated for setting the synchronizer tokens in the context of a web page.- Author:
- mmoquillon
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TokenSettingTemplate.Parameter
-
Field Summary
Fields Modifier and Type Field Description static String
CREATION_MENU_CONTAINER_ID
The name of the parameter that set the name of the creation menu item container id.static String
EXPIRATION_TIMESTAMP_PARAMETER
The name of the parameter that set the expiration timestamp of the cookies in which is stored the token.static String
NAVIGATION_TOKEN_NAME_PARAMETER
The name of the parameter that set the name of the navigation token in the HTTP requests.static String
NAVIGATION_TOKEN_VALUE_PARAMETER
The name of the parameter that set the value of the navigation token in the HTTP requests.static String
SECURED_COOKIE_PARAMETER
The name of the parameter that set the cookie in which is stored the token as secured.static String
SESSION_TOKEN_NAME_PARAMETER
The name of the parameter that set the name of the session token in the HTTP requests.static String
SESSION_TOKEN_VALUE_PARAMETER
The name of the parameter that set the value of the session token in the HTTP requests.
-
Constructor Summary
Constructors Constructor Description TokenSettingTemplate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
apply(List<TokenSettingTemplate.Parameter> parameters)
String
apply(TokenSettingTemplate.Parameter... parameters)
-
-
-
Field Detail
-
CREATION_MENU_CONTAINER_ID
public static final String CREATION_MENU_CONTAINER_ID
The name of the parameter that set the name of the creation menu item container id.- See Also:
- Constant Field Values
-
SESSION_TOKEN_NAME_PARAMETER
public static final String SESSION_TOKEN_NAME_PARAMETER
The name of the parameter that set the name of the session token in the HTTP requests.- See Also:
- Constant Field Values
-
SESSION_TOKEN_VALUE_PARAMETER
public static final String SESSION_TOKEN_VALUE_PARAMETER
The name of the parameter that set the value of the session token in the HTTP requests.- See Also:
- Constant Field Values
-
NAVIGATION_TOKEN_NAME_PARAMETER
public static final String NAVIGATION_TOKEN_NAME_PARAMETER
The name of the parameter that set the name of the navigation token in the HTTP requests.- See Also:
- Constant Field Values
-
NAVIGATION_TOKEN_VALUE_PARAMETER
public static final String NAVIGATION_TOKEN_VALUE_PARAMETER
The name of the parameter that set the value of the navigation token in the HTTP requests.- See Also:
- Constant Field Values
-
EXPIRATION_TIMESTAMP_PARAMETER
public static final String EXPIRATION_TIMESTAMP_PARAMETER
The name of the parameter that set the expiration timestamp of the cookies in which is stored the token.- See Also:
- Constant Field Values
-
SECURED_COOKIE_PARAMETER
public static final String SECURED_COOKIE_PARAMETER
The name of the parameter that set the cookie in which is stored the token as secured.- See Also:
- Constant Field Values
-
-
Method Detail
-
apply
public String apply(TokenSettingTemplate.Parameter... parameters)
-
apply
public String apply(List<TokenSettingTemplate.Parameter> parameters)
-
-