24. Security constants (#2 Section 4: Security)

This commit is contained in:
Art
2021-09-04 15:45:38 +03:00
parent e83540de09
commit e63fb7f5e7

View File

@ -0,0 +1,15 @@
package net.shyshkin.study.fullstack.supportportal.backend.constant;
public class SecurityConstants {
public static final long EXPIRATION_TIME = 432_000_000; // 5 days expressed in milliseconds
public static final String TOKEN_PREFIX = "Bearer ";
public static final String JWT_TOKEN_HEADER = "Jwt-Token";
public static final String TOKEN_CANNOT_BE_VERIFIED = "Token cannot be verified";
public static final String GET_ARRAYS_LLC = "Get Arrays, LLC";
public static final String GET_ARRAYS_ADMINISTRATION = "User Management Portal";
public static final String AUTHORITIES = "authorities";
public static final String FORBIDDEN_MESSAGE = "You need to log in to access this page";
public static final String ACCESS_DENIED_MESSAGE = "You do not have permission to access this page";
public static final String OPTIONS_HTTP_METHOD = "OPTIONS";
public static final String[] PUBLIC_URLS = { "/user/login", "/user/register", "/user/image/**" };
}