1 17 18 package org.apache.geronimo.util.asn1.x509; 19 20 import org.apache.geronimo.util.asn1.DERObjectIdentifier; 21 22 28 public class KeyPurposeId 29 extends DERObjectIdentifier 30 { 31 private static final String id_kp = "1.3.6.1.5.5.7.3"; 32 33 private KeyPurposeId( 34 String id) 35 { 36 super(id); 37 } 38 39 public static final KeyPurposeId anyExtendedKeyUsage = new KeyPurposeId(X509Extensions.ExtendedKeyUsage.getId() + ".0"); 40 public static final KeyPurposeId id_kp_serverAuth = new KeyPurposeId(id_kp + ".1"); 41 public static final KeyPurposeId id_kp_clientAuth = new KeyPurposeId(id_kp + ".2"); 42 public static final KeyPurposeId id_kp_codeSigning = new KeyPurposeId(id_kp + ".3"); 43 public static final KeyPurposeId id_kp_emailProtection = new KeyPurposeId(id_kp + ".4"); 44 public static final KeyPurposeId id_kp_ipsecEndSystem = new KeyPurposeId(id_kp + ".5"); 45 public static final KeyPurposeId id_kp_ipsecTunnel = new KeyPurposeId(id_kp + ".6"); 46 public static final KeyPurposeId id_kp_ipsecUser = new KeyPurposeId(id_kp + ".7"); 47 public static final KeyPurposeId id_kp_timeStamping = new KeyPurposeId(id_kp + ".8"); 48 public static final KeyPurposeId id_kp_OCSPSigning = new KeyPurposeId(id_kp + ".9"); 49 50 public static final KeyPurposeId id_kp_smartcardlogon = new KeyPurposeId("1.3.6.1.4.1.311.20.2.2"); 54 } 55 | Popular Tags |