All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bouncycastle.crypto.tls.HeartbeatMessageType Maven / Gradle / Ivy

package org.bouncycastle.crypto.tls;

/*
 * RFC 6520 3.
 */
public class HeartbeatMessageType
{
    public static final short heartbeat_request = 1;
    public static final short heartbeat_response = 2;

    public static boolean isValid(short heartbeatMessageType)
    {
        return heartbeatMessageType >= heartbeat_request && heartbeatMessageType <= heartbeat_response;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy