Advertisement
Guest User

TokenConstants.class

a guest
Apr 11th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. package com.bmwgroup.connected.util.token;
  2.  
  3. import android.util.Base64;
  4. import java.io.UnsupportedEncodingException;
  5.  
  6. public class TokenConstants
  7. {
  8. public static final String HERE_INTEGRATION_SERVER = "https://int-b2vapi.bmwgroup.com";
  9. public static final String HERE_PRODUCTION_SERVER = "https://b2vapi.bmwgroup.com";
  10. public static final String HERE_TOKEN_PATH = "/nlp/oauth/token";
  11. public static final String ID_CE_CA_MINI_ONLINESEARCH_CLIENT_ID_INT = "db1343ac-ecba-40da-9673-7095a0f2a5d2";
  12. public static final String ID_CE_CA_MINI_ONLINESEARCH_CLIENT_ID_PROD = "db1343ac-ecba-40da-9673-7095a0f2a5d2";
  13. public static final String ID_CE_CA_MINI_ONLINESEARCH_CLIENT_SECRET_INT = "a626a9b5-2bf1-407e-ad03-bed37c8dcf3a";
  14. public static final String ID_CE_CA_MINI_ONLINESEARCH_CLIENT_SECRET_PROD = "d26c1c8b-264d-4790-9237-497479bb7b95";
  15.  
  16. public static String getBase64Authorization()
  17. {
  18. try
  19. {
  20. String str = Base64.encodeToString("db1343ac-ecba-40da-9673-7095a0f2a5d2:d26c1c8b-264d-4790-9237-497479bb7b95".getBytes("UTF-8"), 2);
  21. return str;
  22. }
  23. catch (UnsupportedEncodingException localUnsupportedEncodingException)
  24. {
  25. for (;;) {}
  26. }
  27. return null;
  28. }
  29.  
  30. public static String getServerUrl()
  31. {
  32. return "https://b2vapi.bmwgroup.com";
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement