1 17 18 package org.apache.geronimo.util.asn1.x509; 19 20 import org.apache.geronimo.util.asn1.DERBitString; 21 22 37 public class ReasonFlags 38 extends DERBitString 39 { 40 43 public static final int UNUSED = (1 << 7); 44 47 public static final int KEY_COMPROMISE = (1 << 6); 48 51 public static final int CA_COMPROMISE = (1 << 5); 52 55 public static final int AFFILIATION_CHANGED = (1 << 4); 56 59 public static final int SUPERSEDED = (1 << 3); 60 63 public static final int CESSATION_OF_OPERATION = (1 << 2); 64 67 public static final int CERTIFICATE_HOLD = (1 << 1); 68 71 public static final int PRIVILEGE_WITHDRAWN = (1 << 0); 72 75 public static final int AA_COMPROMISE = (1 << 15); 76 77 public static final int unused = (1 << 7); 78 public static final int keyCompromise = (1 << 6); 79 public static final int cACompromise = (1 << 5); 80 public static final int affiliationChanged = (1 << 4); 81 public static final int superseded = (1 << 3); 82 public static final int cessationOfOperation = (1 << 2); 83 public static final int certificateHold = (1 << 1); 84 public static final int privilegeWithdrawn = (1 << 0); 85 public static final int aACompromise = (1 << 15); 86 87 91 public ReasonFlags( 92 int reasons) 93 { 94 super(getBytes(reasons), getPadBits(reasons)); 95 } 96 97 public ReasonFlags( 98 DERBitString reasons) 99 { 100 super(reasons.getBytes(), reasons.getPadBits()); 101 } 102 } 103 | Popular Tags |