1 /*
2  * Copyright (c) 1996, 2006, Oracle and/or its affiliates. All rights reserved.
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * This code is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License version 2 only, as
7  * published by the Free Software Foundation.  Oracle designates this
8  * particular file as subject to the "Classpath" exception as provided
9  * by Oracle in the LICENSE file that accompanied this code.
10  *
11  * This code is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14  * version 2 for more details (a copy is included in the LICENSE file that
15  * accompanied this code).
16  *
17  * You should have received a copy of the GNU General Public License version
18  * 2 along with this work; if not, write to the Free Software Foundation,
19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20  *
21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22  * or visit www.oracle.com if you need additional information or have any
23  * questions.
24  */
25 
26 package sun.security.util;
27 
28 import java.io.*;
29 
30 @SuppressWarnings({"unchecked", "deprecation", "all"})
31 public final class ObjectIdentifier implements java.io.Serializable {
32 
33     @android.compat.annotation.UnsupportedAppUsage
ObjectIdentifier(java.lang.String oid)34     public ObjectIdentifier(java.lang.String oid) throws java.io.IOException {
35         throw new RuntimeException("Stub!");
36     }
37 
38     @android.compat.annotation.UnsupportedAppUsage
ObjectIdentifier(int[] values)39     public ObjectIdentifier(int[] values) throws java.io.IOException {
40         throw new RuntimeException("Stub!");
41     }
42 
ObjectIdentifier(sun.security.util.DerInputStream in)43     public ObjectIdentifier(sun.security.util.DerInputStream in) throws java.io.IOException {
44         throw new RuntimeException("Stub!");
45     }
46 
ObjectIdentifier(sun.security.util.DerInputBuffer buf)47     ObjectIdentifier(sun.security.util.DerInputBuffer buf) throws java.io.IOException {
48         throw new RuntimeException("Stub!");
49     }
50 
readObject(java.io.ObjectInputStream is)51     private void readObject(java.io.ObjectInputStream is)
52             throws java.lang.ClassNotFoundException, java.io.IOException {
53         throw new RuntimeException("Stub!");
54     }
55 
writeObject(java.io.ObjectOutputStream os)56     private void writeObject(java.io.ObjectOutputStream os) throws java.io.IOException {
57         throw new RuntimeException("Stub!");
58     }
59 
init(int[] components, int length)60     private void init(int[] components, int length) {
61         throw new RuntimeException("Stub!");
62     }
63 
64     @android.compat.annotation.UnsupportedAppUsage
newInternal(int[] values)65     public static sun.security.util.ObjectIdentifier newInternal(int[] values) {
66         throw new RuntimeException("Stub!");
67     }
68 
encode(sun.security.util.DerOutputStream out)69     void encode(sun.security.util.DerOutputStream out) throws java.io.IOException {
70         throw new RuntimeException("Stub!");
71     }
72 
73     @Deprecated
74     @android.compat.annotation.UnsupportedAppUsage
equals(sun.security.util.ObjectIdentifier other)75     public boolean equals(sun.security.util.ObjectIdentifier other) {
76         throw new RuntimeException("Stub!");
77     }
78 
equals(java.lang.Object obj)79     public boolean equals(java.lang.Object obj) {
80         throw new RuntimeException("Stub!");
81     }
82 
hashCode()83     public int hashCode() {
84         throw new RuntimeException("Stub!");
85     }
86 
toIntArray()87     public int[] toIntArray() {
88         throw new RuntimeException("Stub!");
89     }
90 
toString()91     public java.lang.String toString() {
92         throw new RuntimeException("Stub!");
93     }
94 
pack(byte[] in, int ioffset, int ilength, int iw, int ow)95     private static byte[] pack(byte[] in, int ioffset, int ilength, int iw, int ow) {
96         throw new RuntimeException("Stub!");
97     }
98 
pack7Oid(byte[] in, int ioffset, int ilength, byte[] out, int ooffset)99     private static int pack7Oid(byte[] in, int ioffset, int ilength, byte[] out, int ooffset) {
100         throw new RuntimeException("Stub!");
101     }
102 
pack8(byte[] in, int ioffset, int ilength, byte[] out, int ooffset)103     private static int pack8(byte[] in, int ioffset, int ilength, byte[] out, int ooffset) {
104         throw new RuntimeException("Stub!");
105     }
106 
pack7Oid(int input, byte[] out, int ooffset)107     private static int pack7Oid(int input, byte[] out, int ooffset) {
108         throw new RuntimeException("Stub!");
109     }
110 
pack7Oid(java.math.BigInteger input, byte[] out, int ooffset)111     private static int pack7Oid(java.math.BigInteger input, byte[] out, int ooffset) {
112         throw new RuntimeException("Stub!");
113     }
114 
check(byte[] encoding)115     private static void check(byte[] encoding) throws java.io.IOException {
116         throw new RuntimeException("Stub!");
117     }
118 
checkCount(int count)119     private static void checkCount(int count) throws java.io.IOException {
120         throw new RuntimeException("Stub!");
121     }
122 
checkFirstComponent(int first)123     private static void checkFirstComponent(int first) throws java.io.IOException {
124         throw new RuntimeException("Stub!");
125     }
126 
checkFirstComponent(java.math.BigInteger first)127     private static void checkFirstComponent(java.math.BigInteger first) throws java.io.IOException {
128         throw new RuntimeException("Stub!");
129     }
130 
checkSecondComponent(int first, int second)131     private static void checkSecondComponent(int first, int second) throws java.io.IOException {
132         throw new RuntimeException("Stub!");
133     }
134 
checkSecondComponent(int first, java.math.BigInteger second)135     private static void checkSecondComponent(int first, java.math.BigInteger second)
136             throws java.io.IOException {
137         throw new RuntimeException("Stub!");
138     }
139 
checkOtherComponent(int i, int num)140     private static void checkOtherComponent(int i, int num) throws java.io.IOException {
141         throw new RuntimeException("Stub!");
142     }
143 
checkOtherComponent(int i, java.math.BigInteger num)144     private static void checkOtherComponent(int i, java.math.BigInteger num)
145             throws java.io.IOException {
146         throw new RuntimeException("Stub!");
147     }
148 
149     private int componentLen = -1; // 0xffffffff
150 
151     private java.lang.Object components;
152 
153     private transient boolean componentsCalculated = false;
154 
155     private byte[] encoding;
156 
157     private static final long serialVersionUID = 8697030238860181294L; // 0x78b20eec64177f2eL
158 
159     private transient volatile java.lang.String stringForm;
160 
161     @SuppressWarnings({"unchecked", "deprecation", "all"})
162     static class HugeOidNotSupportedByOldJDK implements java.io.Serializable {
163 
HugeOidNotSupportedByOldJDK()164         HugeOidNotSupportedByOldJDK() {
165             throw new RuntimeException("Stub!");
166         }
167 
168         private static final long serialVersionUID = 1L; // 0x1L
169 
170         static sun.security.util.ObjectIdentifier.HugeOidNotSupportedByOldJDK theOne;
171     }
172 }
173