This repository has been archived on 2021-12-05. You can view files and clone it, but cannot push or open issues or pull requests.
envoy/src/main/java/envoy/event/HandshakeRejectionEvent.java

43 lines
1.2 KiB
Java
Raw Normal View History

package envoy.event;
/**
* Signifies to the client that the handshake failed for the attached
* reason.<br>
* <br>
* Project: <strong>envoy-common</strong><br>
* File: <strong>HandshakeRejectionEvent.java</strong><br>
* Created: <strong>28 Jan 2020</strong><br>
*
* @author Kai S. K. Engelbart
* @since Envoy Common v0.3-alpha
*/
public class HandshakeRejectionEvent extends Event<String> {
/**
2020-04-10 15:42:00 +02:00
* Select this value if a given password hash or user was incorrect.
2020-02-08 09:17:11 +01:00
*/
2020-04-10 15:42:00 +02:00
public static final String WRONG_PASSWORD_OR_USER = "password or user were entered incorrectly";
2020-02-08 09:17:11 +01:00
/**
2020-04-10 15:42:00 +02:00
* Select this value if the handshake could not be completed for some reason.
*/
2020-04-10 15:42:00 +02:00
public static final String INTERNAL_ERROR = "the process could not be finished as an internal error occurred";
private static final long serialVersionUID = 0L;
/**
* Creates an instance of {@link HandshakeRejectionEvent} with an empty reason.
*
* @since Envoy Common v0.3-alpha
*/
public HandshakeRejectionEvent() { super(""); }
/**
* Creates an instance of {@link HandshakeRejectionEvent}.
*
* @param reason the reason why the handshake was rejected
* @since Envoy Common v0.3-alpha
*/
public HandshakeRejectionEvent(String reason) { super(reason); }
}