diff --git a/src/java/com/rjconsultores/ventaboletos/rest/SecurityInterceptor.java b/src/java/com/rjconsultores/ventaboletos/rest/SecurityInterceptor.java index b4d874972..b187f61de 100644 --- a/src/java/com/rjconsultores/ventaboletos/rest/SecurityInterceptor.java +++ b/src/java/com/rjconsultores/ventaboletos/rest/SecurityInterceptor.java @@ -26,13 +26,13 @@ import org.mindrot.jbcrypt.BCrypt; @Provider @ServerInterceptor public class SecurityInterceptor implements PreProcessInterceptor { - private static final String AUTHORIZATION_PROPERTY = "AuthorizationEmbarcada"; + private static final String AUTHORIZATION_PROPERTY = "AuthorizationSecurity"; private static final String AUTHENTICATION_SCHEME = "Basic"; private static final String ROLE_CHECK = "EMBARCADA"; private static final ServerResponse ACCESS_DENIED = new ServerResponse("Access denied for this resource", 401, new Headers()); - private static final ServerResponse SERVER_ERROR = new ServerResponse("INTERNAL SERVER ERROR", 500, new Headers()); - private static final ServerResponse ACCESS_FORBIDDEN = new ServerResponse("Nobody can access this resource", 403, new Headers()); + private static final ServerResponse SERVER_ERROR = new ServerResponse("Internal Server Error", 500, new Headers()); + private static final ServerResponse ACCESS_FORBIDDEN = new ServerResponse("Access forbidden for this resource", 403, new Headers()); private static final SimpleDateFormat sdf = new SimpleDateFormat("ddyyyyMM");