Nouvelles Regex : FFE_SIGN_ERROR validée

This commit is contained in:
Maximilien LEDOUX 2022-03-19 13:57:25 +01:00
parent 8718d9c4ea
commit b5db3d91ea

View File

@ -1,13 +1,16 @@
package lightcontainer.protocol.rules.writer; package lightcontainer.protocol.rules.writer;
import lightcontainer.protocol.ProtocolWriter; import lightcontainer.protocol.ProtocolWriter;
import lightcontainer.protocol.StandardizedDefinitions;
import static lightcontainer.protocol.StandardizedDefinitions.FFE_SIGN_ERROR;
/** /**
* Règle renvoyée au client lorsque l'authentification a échoué. * Règle renvoyée au client lorsque l'authentification a échoué.
*/ */
public class SignErrorRule extends ProtocolWriter { public class SignErrorRule extends ProtocolWriter {
//"^SIGN_ERROR\r\n$" //"^SIGN_ERROR\r\n$"
private static final String PATTERN = "^SIGN_ERROR\r\n$"; private static final String PATTERN = FFE_SIGN_ERROR;
public static final String NAME = "SIGN_ERROR"; public static final String NAME = "SIGN_ERROR";