Class TcssToken

java.lang.Object
com.polarion.platform.security.TcssToken

public final class TcssToken extends Object
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 Details

    • TcssToken

      public TcssToken()
  • Method Details

    • create

      @NotNull public static String create(@NotNull String username, @NotNull String token)
      Encodes the username and token to Base64 for use with the ISecurityService.loginWithToken(String, String) method.
      Parameters:
      username -
      token -
      Returns:
      encoded token
    • createForApi

      @NotNull public static String createForApi(@NotNull String username, @NotNull String token)
      Encodes the username and token to Base64 for use with REST API.
      Parameters:
      username -
      token -
      Returns:
      encoded token
      Since:
      3.25.6