1 /*
2  * Copyright (C) 2014 The Android Open Source Project
3  * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5  *
6  * This code is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 only, as
8  * published by the Free Software Foundation.  Oracle designates this
9  * particular file as subject to the "Classpath" exception as provided
10  * by Oracle in the LICENSE file that accompanied this code.
11  *
12  * This code is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15  * version 2 for more details (a copy is included in the LICENSE file that
16  * accompanied this code).
17  *
18  * You should have received a copy of the GNU General Public License version
19  * 2 along with this work; if not, write to the Free Software Foundation,
20  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21  *
22  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23  * or visit www.oracle.com if you need additional information or have any
24  * questions.
25  */
26 
27 package sun.security.x509;
28 
29 import java.util.*;
30 import sun.security.util.*;
31 
32 @SuppressWarnings({"unchecked", "deprecation", "all"})
33 public class OIDMap {
34 
OIDMap()35     private OIDMap() {
36         throw new RuntimeException("Stub!");
37     }
38 
addInternal( java.lang.String name, sun.security.util.ObjectIdentifier oid, java.lang.Class clazz)39     private static void addInternal(
40             java.lang.String name, sun.security.util.ObjectIdentifier oid, java.lang.Class clazz) {
41         throw new RuntimeException("Stub!");
42     }
43 
addAttribute( java.lang.String name, java.lang.String oid, java.lang.Class<?> clazz)44     public static void addAttribute(
45             java.lang.String name, java.lang.String oid, java.lang.Class<?> clazz)
46             throws java.security.cert.CertificateException {
47         throw new RuntimeException("Stub!");
48     }
49 
getName(sun.security.util.ObjectIdentifier oid)50     public static java.lang.String getName(sun.security.util.ObjectIdentifier oid) {
51         throw new RuntimeException("Stub!");
52     }
53 
getOID(java.lang.String name)54     public static sun.security.util.ObjectIdentifier getOID(java.lang.String name) {
55         throw new RuntimeException("Stub!");
56     }
57 
getClass(java.lang.String name)58     public static java.lang.Class<?> getClass(java.lang.String name)
59             throws java.security.cert.CertificateException {
60         throw new RuntimeException("Stub!");
61     }
62 
63     @android.compat.annotation.UnsupportedAppUsage
getClass(sun.security.util.ObjectIdentifier oid)64     public static java.lang.Class<?> getClass(sun.security.util.ObjectIdentifier oid)
65             throws java.security.cert.CertificateException {
66         throw new RuntimeException("Stub!");
67     }
68 
69     private static final java.lang.String AUTH_INFO_ACCESS =
70             "x509.info.extensions.AuthorityInfoAccess";
71 
72     private static final java.lang.String AUTH_KEY_IDENTIFIER =
73             "x509.info.extensions.AuthorityKeyIdentifier";
74 
75     private static final java.lang.String BASIC_CONSTRAINTS =
76             "x509.info.extensions.BasicConstraints";
77 
78     private static final java.lang.String CERT_ISSUER = "x509.info.extensions.CertificateIssuer";
79 
80     private static final java.lang.String CERT_POLICIES =
81             "x509.info.extensions.CertificatePolicies";
82 
83     private static final java.lang.String CRL_DIST_POINTS =
84             "x509.info.extensions.CRLDistributionPoints";
85 
86     private static final java.lang.String CRL_NUMBER = "x509.info.extensions.CRLNumber";
87 
88     private static final java.lang.String CRL_REASON = "x509.info.extensions.CRLReasonCode";
89 
90     private static final java.lang.String DELTA_CRL_INDICATOR =
91             "x509.info.extensions.DeltaCRLIndicator";
92 
93     private static final java.lang.String EXT_KEY_USAGE = "x509.info.extensions.ExtendedKeyUsage";
94 
95     private static final java.lang.String FRESHEST_CRL = "x509.info.extensions.FreshestCRL";
96 
97     private static final java.lang.String INHIBIT_ANY_POLICY =
98             "x509.info.extensions.InhibitAnyPolicy";
99 
100     private static final java.lang.String ISSUER_ALT_NAME =
101             "x509.info.extensions.IssuerAlternativeName";
102 
103     private static final java.lang.String ISSUING_DIST_POINT =
104             "x509.info.extensions.IssuingDistributionPoint";
105 
106     private static final java.lang.String KEY_USAGE = "x509.info.extensions.KeyUsage";
107 
108     private static final java.lang.String NAME_CONSTRAINTS = "x509.info.extensions.NameConstraints";
109 
110     private static final java.lang.String NETSCAPE_CERT = "x509.info.extensions.NetscapeCertType";
111 
112     private static final int[] NetscapeCertType_data;
113 
114     static {
115         NetscapeCertType_data = new int[0];
116     }
117 
118     private static final java.lang.String OCSPNOCHECK = "x509.info.extensions.OCSPNoCheck";
119 
120     private static final java.lang.String POLICY_CONSTRAINTS =
121             "x509.info.extensions.PolicyConstraints";
122 
123     private static final java.lang.String POLICY_MAPPINGS = "x509.info.extensions.PolicyMappings";
124 
125     private static final java.lang.String PRIVATE_KEY_USAGE =
126             "x509.info.extensions.PrivateKeyUsage";
127 
128     private static final java.lang.String ROOT = "x509.info.extensions";
129 
130     private static final java.lang.String SUBJECT_INFO_ACCESS =
131             "x509.info.extensions.SubjectInfoAccess";
132 
133     private static final java.lang.String SUB_ALT_NAME =
134             "x509.info.extensions.SubjectAlternativeName";
135 
136     private static final java.lang.String SUB_KEY_IDENTIFIER =
137             "x509.info.extensions.SubjectKeyIdentifier";
138 
139     @android.compat.annotation.UnsupportedAppUsage
140     private static final java.util.Map<java.lang.String, sun.security.x509.OIDMap.OIDInfo> nameMap;
141 
142     static {
143         nameMap = null;
144     }
145 
146     @android.compat.annotation.UnsupportedAppUsage
147     private static final java.util.Map<
148                     sun.security.util.ObjectIdentifier, sun.security.x509.OIDMap.OIDInfo>
149             oidMap;
150 
151     static {
152         oidMap = null;
153     }
154 
155     @SuppressWarnings({"unchecked", "deprecation", "all"})
156     private static class OIDInfo {
157 
OIDInfo( java.lang.String name, sun.security.util.ObjectIdentifier oid, java.lang.Class<?> clazz)158         OIDInfo(
159                 java.lang.String name,
160                 sun.security.util.ObjectIdentifier oid,
161                 java.lang.Class<?> clazz) {
162             throw new RuntimeException("Stub!");
163         }
164 
getClazz()165         java.lang.Class<?> getClazz() throws java.security.cert.CertificateException {
166             throw new RuntimeException("Stub!");
167         }
168 
169         @android.compat.annotation.UnsupportedAppUsage private volatile java.lang.Class<?> clazz;
170 
171         final java.lang.String name;
172 
173         {
174             name = null;
175         }
176 
177         final sun.security.util.ObjectIdentifier oid;
178 
179         {
180             oid = null;
181         }
182     }
183 }
184