aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/spongycastle/core/src/main/java/org/spongycastle/crypto/tls/CertChainType.java
blob: 85749615871a6dd430eec7b797901e527ede44ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package org.spongycastle.crypto.tls;

/*
 * RFC 3546 3.3.
 */
public class CertChainType
{
    public static final short individual_certs = 0;
    public static final short pkipath = 1;

    public static boolean isValid(short certChainType)
    {
        return certChainType >= individual_certs && certChainType <= pkipath;
    }
}