24. Security constants (#2 Section 4: Security)
This commit is contained in:
@ -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/**" };
|
||||
}
|
||||
Reference in New Issue
Block a user