1 /**
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one or more
4 * contributor license agreements. See the NOTICE file distributed with
5 * this work for additional information regarding copyright ownership.
6 * The ASF licenses this file to You under the Apache License, Version 2.0
7 * (the "License"); you may not use this file except in compliance with
8 * the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19 package org.apache.geronimo.util.asn1.x509;
20
21 import org.apache.geronimo.util.asn1.DERObjectIdentifier;
22
23 /**
24 * The KeyPurposeId object.
25 * <pre>
26 * KeyPurposeId ::= OBJECT IDENTIFIER
27 * </pre>
28 */
29 public class KeyPurposeId
30 extends DERObjectIdentifier
31 {
32 private static final String id_kp = "1.3.6.1.5.5.7.3";
33
34 private KeyPurposeId(
35 String id)
36 {
37 super(id);
38 }
39
40 public static final KeyPurposeId anyExtendedKeyUsage = new KeyPurposeId(X509Extensions.ExtendedKeyUsage.getId() + ".0");
41 public static final KeyPurposeId id_kp_serverAuth = new KeyPurposeId(id_kp + ".1");
42 public static final KeyPurposeId id_kp_clientAuth = new KeyPurposeId(id_kp + ".2");
43 public static final KeyPurposeId id_kp_codeSigning = new KeyPurposeId(id_kp + ".3");
44 public static final KeyPurposeId id_kp_emailProtection = new KeyPurposeId(id_kp + ".4");
45 public static final KeyPurposeId id_kp_ipsecEndSystem = new KeyPurposeId(id_kp + ".5");
46 public static final KeyPurposeId id_kp_ipsecTunnel = new KeyPurposeId(id_kp + ".6");
47 public static final KeyPurposeId id_kp_ipsecUser = new KeyPurposeId(id_kp + ".7");
48 public static final KeyPurposeId id_kp_timeStamping = new KeyPurposeId(id_kp + ".8");
49 public static final KeyPurposeId id_kp_OCSPSigning = new KeyPurposeId(id_kp + ".9");
50
51
52
53
54 public static final KeyPurposeId id_kp_smartcardlogon = new KeyPurposeId("1.3.6.1.4.1.311.20.2.2");
55 }