Class MerkleTreeCertificateValidator.RevokedRange
java.lang.Object
org.bouncycastle.cert.plants.MerkleTreeCertificateValidator.RevokedRange
- Enclosing class:
MerkleTreeCertificateValidator
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbefore(BigInteger endExclusive) The range[0, endExclusive)— the shape of the CA's publishedminSerialfloor (Section 7.1).booleancontains(BigInteger serial) from(BigInteger startInclusive) The range[startInclusive, 2^64)— distrust everything from a serial onwards, the analogue of the SCTNotAfter mechanism cited in Section 7.5.getEnd()getStart()ofIndices(long logNumber, long startIndex, long endIndex) Indices[startIndex, endIndex)of issuance loglogNumber.ofLog(long logNumber) Every serial of issuance loglogNumber:[logNumber << 48, (logNumber + 1) << 48).single(BigInteger serial) The single serial[serial, serial + 1).
-
Constructor Details
-
RevokedRange
- Parameters:
startInclusive- first revoked serialendExclusive- first serial past the range (at most 2^64)
-
-
Method Details
-
before
The range[0, endExclusive)— the shape of the CA's publishedminSerialfloor (Section 7.1). -
from
The range[startInclusive, 2^64)— distrust everything from a serial onwards, the analogue of the SCTNotAfter mechanism cited in Section 7.5. -
ofLog
Every serial of issuance loglogNumber:[logNumber << 48, (logNumber + 1) << 48). -
ofIndices
public static MerkleTreeCertificateValidator.RevokedRange ofIndices(long logNumber, long startIndex, long endIndex) Indices[startIndex, endIndex)of issuance loglogNumber.- Parameters:
startIndex- first revoked index (0 <= startIndex < 2^48)endIndex- first index past the range (startIndex < endIndex <= 2^48)
-
single
The single serial[serial, serial + 1). -
getStart
-
getEnd
-
contains
-