Package org.xipki.ca.server
Class CertRevInfoWithSerial
- java.lang.Object
-
- org.xipki.ca.server.CertRevInfoWithSerial
-
- All Implemented Interfaces:
Comparable<CertRevInfoWithSerial>
public class CertRevInfoWithSerial extends Object implements Comparable<CertRevInfoWithSerial>
Certificate revocation information with serial number and database table id.- Since:
- 2.0.0
- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description CertRevInfoWithSerial(long id, BigInteger serial, int reasonCode, Instant revocationTime, Instant invalidityTime)CertRevInfoWithSerial(long id, BigInteger serial, org.xipki.security.CrlReason reason, Instant revocationTime, Instant invalidityTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(CertRevInfoWithSerial other)booleanequals(Object obj)longgetId()InstantgetInvalidityTime()Get the invalidity time.org.xipki.security.CrlReasongetReason()InstantgetRevocationTime()Gets the revocation time.BigIntegergetSerial()inthashCode()
-
-
-
Constructor Detail
-
CertRevInfoWithSerial
public CertRevInfoWithSerial(long id, BigInteger serial, org.xipki.security.CrlReason reason, Instant revocationTime, Instant invalidityTime)
-
CertRevInfoWithSerial
public CertRevInfoWithSerial(long id, BigInteger serial, int reasonCode, Instant revocationTime, Instant invalidityTime)
-
-
Method Detail
-
getSerial
public BigInteger getSerial()
-
getId
public long getId()
-
getReason
public org.xipki.security.CrlReason getReason()
-
getRevocationTime
public Instant getRevocationTime()
Gets the revocation time.- Returns:
- revocation time, never be null
-
getInvalidityTime
public Instant getInvalidityTime()
Get the invalidity time.- Returns:
- invalidity time, may be null
-
compareTo
public int compareTo(CertRevInfoWithSerial other)
- Specified by:
compareToin interfaceComparable<CertRevInfoWithSerial>
-
-