public static class MerkleTreeCertificateValidator.RevokedRange
extends java.lang.Object
[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 and Description |
|---|
RevokedRange(java.math.BigInteger startInclusive,
java.math.BigInteger endExclusive) |
| Modifier and Type | Method and Description |
|---|---|
static MerkleTreeCertificateValidator.RevokedRange |
before(java.math.BigInteger endExclusive)
The range
[0, endExclusive) — the shape of the CA's
published minSerial floor (Section 7.1). |
boolean |
contains(java.math.BigInteger serial) |
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. |
java.math.BigInteger |
getEnd() |
java.math.BigInteger |
getStart() |
static MerkleTreeCertificateValidator.RevokedRange |
ofIndices(long logNumber,
long startIndex,
long endIndex)
Indices
[startIndex, endIndex) of issuance log
logNumber. |
static MerkleTreeCertificateValidator.RevokedRange |
ofLog(long logNumber)
Every serial of issuance log
logNumber:
[logNumber << 48, (logNumber + 1) << 48). |
static MerkleTreeCertificateValidator.RevokedRange |
single(java.math.BigInteger serial)
The single serial
[serial, serial + 1). |
public RevokedRange(java.math.BigInteger startInclusive,
java.math.BigInteger endExclusive)
startInclusive - first revoked serialendExclusive - first serial past the range (at most 2^64)public static MerkleTreeCertificateValidator.RevokedRange before(java.math.BigInteger endExclusive)
[0, endExclusive) — the shape of the CA's
published minSerial floor (Section 7.1).public static MerkleTreeCertificateValidator.RevokedRange from(java.math.BigInteger startInclusive)
[startInclusive, 2^64) — distrust everything
from a serial onwards, the analogue of the SCTNotAfter mechanism
cited in Section 7.5.public static MerkleTreeCertificateValidator.RevokedRange ofLog(long logNumber)
logNumber:
[logNumber << 48, (logNumber + 1) << 48).public static MerkleTreeCertificateValidator.RevokedRange ofIndices(long logNumber, long startIndex, long endIndex)
[startIndex, endIndex) of issuance log
logNumber.startIndex - first revoked index (0 <= startIndex < 2^48)endIndex - first index past the range (startIndex < endIndex <= 2^48)public static MerkleTreeCertificateValidator.RevokedRange single(java.math.BigInteger serial)
[serial, serial + 1).public java.math.BigInteger getStart()
public java.math.BigInteger getEnd()
public boolean contains(java.math.BigInteger serial)