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