code: private AuthenticationData createAuthenticationData(HttpServletRequest req, HttpServletResponse res, String token, String oid) {
          AuthenticationData authenticationData = new WSAuthenticationData();
          authenticationData.set(AuthenticationData.HTTP_SERVLET_REQUEST, req);
          authenticationData.set(AuthenticationData.HTTP_SERVLET_RESPONSE, res);
          if (oid.equals(LTPA_OID)) {
              authenticationData.set(AuthenticationData.TOKEN64, token);
          } else {
              authenticationData.set(AuthenticationData.JWT_TOKEN, token);
          }
  
          authenticationData.set(AuthenticationData.AUTHENTICATION_MECH_OID, oid);
          return authenticationData;
      }
docs: Create an authentication data for ltpaToken
  
  @param ssoToken
  @return authenticationData