01: package org.bouncycastle.asn1.x509;
02:
03: import org.bouncycastle.asn1.DERObjectIdentifier;
04:
05: /**
06: * The KeyPurposeId object.
07: * <pre>
08: * KeyPurposeId ::= OBJECT IDENTIFIER
09: * </pre>
10: */
11: public class KeyPurposeId extends DERObjectIdentifier {
12: private static final String id_kp = "1.3.6.1.5.5.7.3";
13:
14: private KeyPurposeId(String id) {
15: super (id);
16: }
17:
18: public static final KeyPurposeId anyExtendedKeyUsage = new KeyPurposeId(
19: X509Extensions.ExtendedKeyUsage.getId() + ".0");
20: public static final KeyPurposeId id_kp_serverAuth = new KeyPurposeId(
21: id_kp + ".1");
22: public static final KeyPurposeId id_kp_clientAuth = new KeyPurposeId(
23: id_kp + ".2");
24: public static final KeyPurposeId id_kp_codeSigning = new KeyPurposeId(
25: id_kp + ".3");
26: public static final KeyPurposeId id_kp_emailProtection = new KeyPurposeId(
27: id_kp + ".4");
28: public static final KeyPurposeId id_kp_ipsecEndSystem = new KeyPurposeId(
29: id_kp + ".5");
30: public static final KeyPurposeId id_kp_ipsecTunnel = new KeyPurposeId(
31: id_kp + ".6");
32: public static final KeyPurposeId id_kp_ipsecUser = new KeyPurposeId(
33: id_kp + ".7");
34: public static final KeyPurposeId id_kp_timeStamping = new KeyPurposeId(
35: id_kp + ".8");
36: public static final KeyPurposeId id_kp_OCSPSigning = new KeyPurposeId(
37: id_kp + ".9");
38:
39: //
40: // microsoft key purpose ids
41: //
42: public static final KeyPurposeId id_kp_smartcardlogon = new KeyPurposeId(
43: "1.3.6.1.4.1.311.20.2.2");
44: }
|