1 13 14 package org.ejbca.core.model.ca.crl; 15 16 import java.math.BigInteger ; 17 import java.util.Date ; 18 19 25 public class RevokedCertInfo extends java.lang.Object implements java.io.Serializable { 26 27 28 public static final int NOT_REVOKED = -1; 29 public static final int REVOKATION_REASON_UNSPECIFIED = 0; 30 public static final int REVOKATION_REASON_KEYCOMPROMISE = 1; 31 public static final int REVOKATION_REASON_CACOMPROMISE = 2; 32 public static final int REVOKATION_REASON_AFFILIATIONCHANGED = 3; 33 public static final int REVOKATION_REASON_SUPERSEDED = 4; 34 public static final int REVOKATION_REASON_CESSATIONOFOPERATION = 5; 35 public static final int REVOKATION_REASON_CERTIFICATEHOLD = 6; 36 public static final int REVOKATION_REASON_REMOVEFROMCRL = 8; 37 public static final int REVOKATION_REASON_PRIVILEGESWITHDRAWN = 9; 38 public static final int REVOKATION_REASON_AACOMPROMISE = 10; 39 40 41 private BigInteger userCertificate; 42 private Date revocationDate; 43 private int reason; 44 45 49 public RevokedCertInfo(BigInteger serno, Date date, int reason) 50 { 51 this.userCertificate = serno; 52 this.revocationDate = date; 53 this.reason = reason; 54 } 55 56 59 public BigInteger getUserCertificate() { 60 return this.userCertificate; 61 } 62 63 66 public void setUserCertificate( BigInteger serno ) { 67 this.userCertificate = serno; 68 } 69 70 73 public Date getRevocationDate() { 74 return this.revocationDate; 75 } 76 77 80 public void setRevocationDate( Date date ) { 81 this.revocationDate = date; 82 } 83 84 85 102 public int getReason() { 103 return this.reason; 104 } 105 106 109 public void setReason( int reason ) { 110 this.reason = reason; 111 } 112 113 public String toString() { 114 return this.userCertificate == null ? "null" : this.userCertificate.toString(); 115 } 116 } 117 | Popular Tags |