Package com.polarion.platform.security
Class TcssToken
java.lang.Object
com.polarion.platform.security.TcssToken
The factory used to create a Teamcenter Security Services (TCSS) token that can
then be passed directly to the
ISecurityService.loginWithToken(String, String)
method
and used for token logins.- Since:
- 3.17.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Encodes the username and token to Base64 for use with theISecurityService.loginWithToken(String, String)
method.static String
createForApi
(String username, String token) Encodes the username and token to Base64 for use with REST API.
-
Constructor Details
-
TcssToken
public TcssToken()
-
-
Method Details
-
create
Encodes the username and token to Base64 for use with theISecurityService.loginWithToken(String, String)
method.- Parameters:
username
-token
-- Returns:
- encoded token
-
createForApi
Encodes the username and token to Base64 for use with REST API.- Parameters:
username
-token
-- Returns:
- encoded token
- Since:
- 3.25.6
-