• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 1998, 2012, 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 
29 @SuppressWarnings({"unchecked", "deprecation", "all"})
30 class DerIndefLenConverter {
31 
32     @android.compat.annotation.UnsupportedAppUsage
DerIndefLenConverter()33     DerIndefLenConverter() {
34         throw new RuntimeException("Stub!");
35     }
36 
isEOC(int tag)37     private boolean isEOC(int tag) {
38         throw new RuntimeException("Stub!");
39     }
40 
isLongForm(int lengthByte)41     static boolean isLongForm(int lengthByte) {
42         throw new RuntimeException("Stub!");
43     }
44 
45     @android.compat.annotation.UnsupportedAppUsage
isIndefinite(int lengthByte)46     static boolean isIndefinite(int lengthByte) {
47         throw new RuntimeException("Stub!");
48     }
49 
50     @android.compat.annotation.UnsupportedAppUsage
parseTag()51     private void parseTag() throws java.io.IOException {
52         throw new RuntimeException("Stub!");
53     }
54 
55     @android.compat.annotation.UnsupportedAppUsage
writeTag()56     private void writeTag() {
57         throw new RuntimeException("Stub!");
58     }
59 
60     @android.compat.annotation.UnsupportedAppUsage
parseLength()61     private int parseLength() throws java.io.IOException {
62         throw new RuntimeException("Stub!");
63     }
64 
65     @android.compat.annotation.UnsupportedAppUsage
writeLengthAndValue()66     private void writeLengthAndValue() throws java.io.IOException {
67         throw new RuntimeException("Stub!");
68     }
69 
writeLength(int curLen)70     private void writeLength(int curLen) {
71         throw new RuntimeException("Stub!");
72     }
73 
getLengthBytes(int curLen)74     private byte[] getLengthBytes(int curLen) {
75         throw new RuntimeException("Stub!");
76     }
77 
getNumOfLenBytes(int len)78     private int getNumOfLenBytes(int len) {
79         throw new RuntimeException("Stub!");
80     }
81 
82     @android.compat.annotation.UnsupportedAppUsage
parseValue(int curLen)83     private void parseValue(int curLen) {
84         throw new RuntimeException("Stub!");
85     }
86 
writeValue(int curLen)87     private void writeValue(int curLen) {
88         throw new RuntimeException("Stub!");
89     }
90 
91     @android.compat.annotation.UnsupportedAppUsage
convert(byte[] indefData)92     byte[] convert(byte[] indefData) throws java.io.IOException {
93         throw new RuntimeException("Stub!");
94     }
95 
96     private static final int CLASS_MASK = 192; // 0xc0
97 
98     private static final int FORM_MASK = 32; // 0x20
99 
100     private static final int LEN_LONG = 128; // 0x80
101 
102     private static final int LEN_MASK = 127; // 0x7f
103 
104     private static final int SKIP_EOC_BYTES = 2; // 0x2
105 
106     private static final int TAG_MASK = 31; // 0x1f
107 
108     @android.compat.annotation.UnsupportedAppUsage private byte[] data;
109 
110     @android.compat.annotation.UnsupportedAppUsage private int dataPos;
111 
112     @android.compat.annotation.UnsupportedAppUsage private int dataSize;
113 
114     private int index;
115 
116     private java.util.ArrayList<java.lang.Object> ndefsList;
117 
118     @android.compat.annotation.UnsupportedAppUsage private byte[] newData;
119 
120     private int newDataPos;
121 
122     @android.compat.annotation.UnsupportedAppUsage private int numOfTotalLenBytes = 0; // 0x0
123 
124     private int unresolved = 0; // 0x0
125 }
126