package com.github.ibole.infrastructure.common.utils;

import java.util.regex.Pattern;

/**
 * Global common constants.
 * @author bwang
 *
 */
public final class Constants {

  public static final String COMMA_SEPARATOR = ",";

  public static final Pattern COMMA_SEPERATOR_PATTERN = Pattern.compile("\\s*[,]+\\s*");
  
  public static final String APPLICATION_NAME = "toprank.application.name";
  
  public static final String PROPERTY_HTTP_SERVER_DOCS = "http.server.docs";
  
  public static final String CACHE_REDIS_SERVER = "redis.host";

  public static final String CACHE_REDIS_PORT = "redis.port";
  
  public static final String CACHE_REDIS_PASSWORD = "redis.password";
  
  public static final String SMS_RANDCODE_REGISTER_PREFIX = "sms.randcode.register.prefix";
  
  public static final String SMS_RANDCODE_VALIDATE_PREFIX = "sms.randcode.validate.prefix"; 
  
  public static final String SMS_SENDER_URL = "sms.sender.url"; 
  //client and user identifier: loginId and clientId
  public static final String USER_PRINCINPAL = "user.principal";
  
  public static final String MINI_DEVICE_INFO = "mini.device.info";

  public static final String AUTH_ID = "loginId";
  
  public static final String CLIENT_ID = "ClientId";
  
  public static final String ANONYMOUS_ID = "Anonymous";
  
  public static final String REFRESH_TOKEN_KEY_PREFIX = "auth.refresh.token.";
  
  public static final String ACCESS_TOKEN_KEY_PREFIX = "auth.access.token.";
  
  public static final String REFRESH_TOKEN = "RefreshToken";
  
  public static final String ACCESS_TOKEN = "AccessToken";
  
  public static final String REFRESH_TOKEN_TTL = "auth.refreshToken.ttl";
  
  public static final String ACCESS_TOKEN_TTL = "auth.accessToken.ttl";
  
  public static final String SENDER_JWK_PATH = "/certs/jwt/senderJWK.json";
  
  public static final String RECEIVER_JWK_PATH = "/certs/jwt/receiverJWK.json";

  
  private Constants() {
    throw new IllegalAccessError("Utility class");
  }
}

@@ -1948,16 +1948,334 @@
 on%22;%0D%0A%0D%0A
+  public static final String SYSTEM_ENCODING = %22utf-8%22;%0D%0A  //%E5%AE%A2%E6%88%B7%E7%AB%AF%E7%94%9F%E6%88%90%E7%9A%84%E6%B6%88%E6%81%AF%E6%91%98%E8%A6%81%0D%0A  public static final String STATELESS_PARAM_DIGEST = %22stateless.param.digest%22;%0D%0A  //%0D%0A  public static final String STATELESS_PARAM_USERNAME = %22stateless.param.userName%22;%0D%0A  public static final String WS_PARAM_PASSWORD = %22ws.param.password%22;%0D%0A%0D%0A
   %0D%0A  pr

Update - add jwt lib -> auth0