Class MerkleTreeCertificateValidator.RevokedRange

  • Enclosing class:
    MerkleTreeCertificateValidator

    public static class MerkleTreeCertificateValidator.RevokedRange
    extends java.lang.Object
    A half-open range [start, end) of revoked certificate serial numbers, per Section 7.5 of the draft. The serial packs the log number into the upper 16 bits and the entry index into the lower 48 (Section 6.1), so ranges can revoke spans of entries within one log, whole logs, or spans of logs. The relying party's list of ranges is checked against the full serial before it is decomposed (Section 7.2 step 4).

    Serial numbers are unsigned 64-bit values, so bounds are BigIntegers; 0 <= start < end <= 2^64.

    • Constructor Detail

      • RevokedRange

        public RevokedRange​(java.math.BigInteger startInclusive,
                            java.math.BigInteger endExclusive)
        Parameters:
        startInclusive - first revoked serial
        endExclusive - first serial past the range (at most 2^64)
    • Method Detail

      • from

        public static MerkleTreeCertificateValidator.RevokedRange from​(java.math.BigInteger startInclusive)
        The range [startInclusive, 2^64) — distrust everything from a serial onwards, the analogue of the SCTNotAfter mechanism cited in Section 7.5.
      • ofIndices

        public static MerkleTreeCertificateValidator.RevokedRange ofIndices​(long logNumber,
                                                                            long startIndex,
                                                                            long endIndex)
        Indices [startIndex, endIndex) of issuance log logNumber.
        Parameters:
        startIndex - first revoked index (0 <= startIndex < 2^48)
        endIndex - first index past the range (startIndex < endIndex <= 2^48)
      • getStart

        public java.math.BigInteger getStart()
      • getEnd

        public java.math.BigInteger getEnd()
      • contains

        public boolean contains​(java.math.BigInteger serial)