Welcome to mirror list, hosted at ThFree Co, Russian Federation.

HeartbeatMode.java « tls « crypto « spongycastle « org « java « main « src « core - gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1c9472b26c5fe3027d0550ad34251dfe39a2153e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package org.spongycastle.crypto.tls;

/*
 * RFC 6520
 */
public class HeartbeatMode
{
    public static final short peer_allowed_to_send = 1;
    public static final short peer_not_allowed_to_send = 2;

    public static boolean isValid(short heartbeatMode)
    {
        return heartbeatMode >= peer_allowed_to_send && heartbeatMode <= peer_not_allowed_to_send;
    }
}