From c3c546acfc698b56bc9c2ae447ebaf0b946dfce4 Mon Sep 17 00:00:00 2001 From: alberto Date: Tue, 16 Jul 2019 14:54:32 +0000 Subject: [PATCH] =?UTF-8?q?Seguran=C3=A7a=20Comunica=C3=A7=C3=A3o=20bug#15?= =?UTF-8?q?023=20dev:trevezani=20qua:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@95778 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../ventaboletos/rest/SecurityInterceptor.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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");