1 19 20 package com.maverick.crypto.asn1.x509; 21 22 29 30 public class CertificateException extends Exception { 31 32 public static final int CERTIFICATE_EXPIRED = 1; 33 public static final int CERTIFICATE_NOT_YET_VALID = 2; 34 public static final int CERTIFICATE_ENCODING_ERROR = 3; 35 public static final int CERTIFICATE_GENERAL_ERROR = 4; 36 public static final int CERTIFICATE_UNSUPPORTED_ALGORITHM = 5; 37 38 int status; 39 40 public CertificateException(int status, String msg) { 41 super(msg); 42 this.status = status; 43 } 44 45 public int getStatus() { 46 return status; 47 } 48 49 } | Popular Tags |