From f7b92a3d6ae51cce4e6bbdcc25148cb951e986d1 Mon Sep 17 00:00:00 2001 From: rpseng Date: Tue, 23 Apr 2024 21:41:24 -0300 Subject: [PATCH] Recommended by 1.6 spec is a 20 byte (40 chars) key. --- OCPP-J/src/main/java/eu/chargetime/ocpp/WebSocketListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OCPP-J/src/main/java/eu/chargetime/ocpp/WebSocketListener.java b/OCPP-J/src/main/java/eu/chargetime/ocpp/WebSocketListener.java index 5eb06e66..346936cd 100644 --- a/OCPP-J/src/main/java/eu/chargetime/ocpp/WebSocketListener.java +++ b/OCPP-J/src/main/java/eu/chargetime/ocpp/WebSocketListener.java @@ -51,7 +51,7 @@ public class WebSocketListener implements Listener { private static final int TIMEOUT_IN_MILLIS = 10000; private static final int OCPPJ_CP_MIN_PASSWORD_LENGTH = 16; - private static final int OCPPJ_CP_MAX_PASSWORD_LENGTH = 20; + private static final int OCPPJ_CP_MAX_PASSWORD_LENGTH = 40; private static final String HTTP_HEADER_PROXIED_ADDRESS = "X-Forwarded-For";