1 /* 2 * Copyright (c) 1996, 2010, 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 public class DerOutputStream extends java.io.ByteArrayOutputStream 31 implements sun.security.util.DerEncoder { 32 33 @android.compat.annotation.UnsupportedAppUsage DerOutputStream(int size)34 public DerOutputStream(int size) { 35 throw new RuntimeException("Stub!"); 36 } 37 38 @android.compat.annotation.UnsupportedAppUsage DerOutputStream()39 public DerOutputStream() { 40 throw new RuntimeException("Stub!"); 41 } 42 43 @android.compat.annotation.UnsupportedAppUsage write(byte tag, byte[] buf)44 public void write(byte tag, byte[] buf) throws java.io.IOException { 45 throw new RuntimeException("Stub!"); 46 } 47 48 @android.compat.annotation.UnsupportedAppUsage write(byte tag, sun.security.util.DerOutputStream out)49 public void write(byte tag, sun.security.util.DerOutputStream out) throws java.io.IOException { 50 throw new RuntimeException("Stub!"); 51 } 52 writeImplicit(byte tag, sun.security.util.DerOutputStream value)53 public void writeImplicit(byte tag, sun.security.util.DerOutputStream value) 54 throws java.io.IOException { 55 throw new RuntimeException("Stub!"); 56 } 57 58 @android.compat.annotation.UnsupportedAppUsage putDerValue(sun.security.util.DerValue val)59 public void putDerValue(sun.security.util.DerValue val) throws java.io.IOException { 60 throw new RuntimeException("Stub!"); 61 } 62 63 @android.compat.annotation.UnsupportedAppUsage putBoolean(boolean val)64 public void putBoolean(boolean val) throws java.io.IOException { 65 throw new RuntimeException("Stub!"); 66 } 67 putEnumerated(int i)68 public void putEnumerated(int i) throws java.io.IOException { 69 throw new RuntimeException("Stub!"); 70 } 71 72 @android.compat.annotation.UnsupportedAppUsage putInteger(java.math.BigInteger i)73 public void putInteger(java.math.BigInteger i) throws java.io.IOException { 74 throw new RuntimeException("Stub!"); 75 } 76 putInteger(java.lang.Integer i)77 public void putInteger(java.lang.Integer i) throws java.io.IOException { 78 throw new RuntimeException("Stub!"); 79 } 80 81 @android.compat.annotation.UnsupportedAppUsage putInteger(int i)82 public void putInteger(int i) throws java.io.IOException { 83 throw new RuntimeException("Stub!"); 84 } 85 putIntegerContents(int i)86 private void putIntegerContents(int i) throws java.io.IOException { 87 throw new RuntimeException("Stub!"); 88 } 89 90 @android.compat.annotation.UnsupportedAppUsage putBitString(byte[] bits)91 public void putBitString(byte[] bits) throws java.io.IOException { 92 throw new RuntimeException("Stub!"); 93 } 94 putUnalignedBitString(sun.security.util.BitArray ba)95 public void putUnalignedBitString(sun.security.util.BitArray ba) throws java.io.IOException { 96 throw new RuntimeException("Stub!"); 97 } 98 putTruncatedUnalignedBitString(sun.security.util.BitArray ba)99 public void putTruncatedUnalignedBitString(sun.security.util.BitArray ba) 100 throws java.io.IOException { 101 throw new RuntimeException("Stub!"); 102 } 103 104 @android.compat.annotation.UnsupportedAppUsage putOctetString(byte[] octets)105 public void putOctetString(byte[] octets) throws java.io.IOException { 106 throw new RuntimeException("Stub!"); 107 } 108 109 @android.compat.annotation.UnsupportedAppUsage putNull()110 public void putNull() throws java.io.IOException { 111 throw new RuntimeException("Stub!"); 112 } 113 114 @android.compat.annotation.UnsupportedAppUsage putOID(sun.security.util.ObjectIdentifier oid)115 public void putOID(sun.security.util.ObjectIdentifier oid) throws java.io.IOException { 116 throw new RuntimeException("Stub!"); 117 } 118 119 @android.compat.annotation.UnsupportedAppUsage putSequence(sun.security.util.DerValue[] seq)120 public void putSequence(sun.security.util.DerValue[] seq) throws java.io.IOException { 121 throw new RuntimeException("Stub!"); 122 } 123 putSet(sun.security.util.DerValue[] set)124 public void putSet(sun.security.util.DerValue[] set) throws java.io.IOException { 125 throw new RuntimeException("Stub!"); 126 } 127 128 @android.compat.annotation.UnsupportedAppUsage putOrderedSetOf(byte tag, sun.security.util.DerEncoder[] set)129 public void putOrderedSetOf(byte tag, sun.security.util.DerEncoder[] set) 130 throws java.io.IOException { 131 throw new RuntimeException("Stub!"); 132 } 133 putOrderedSet(byte tag, sun.security.util.DerEncoder[] set)134 public void putOrderedSet(byte tag, sun.security.util.DerEncoder[] set) 135 throws java.io.IOException { 136 throw new RuntimeException("Stub!"); 137 } 138 putOrderedSet( byte tag, sun.security.util.DerEncoder[] set, java.util.Comparator<byte[]> order)139 private void putOrderedSet( 140 byte tag, sun.security.util.DerEncoder[] set, java.util.Comparator<byte[]> order) 141 throws java.io.IOException { 142 throw new RuntimeException("Stub!"); 143 } 144 145 @android.compat.annotation.UnsupportedAppUsage putUTF8String(java.lang.String s)146 public void putUTF8String(java.lang.String s) throws java.io.IOException { 147 throw new RuntimeException("Stub!"); 148 } 149 150 @android.compat.annotation.UnsupportedAppUsage putPrintableString(java.lang.String s)151 public void putPrintableString(java.lang.String s) throws java.io.IOException { 152 throw new RuntimeException("Stub!"); 153 } 154 putT61String(java.lang.String s)155 public void putT61String(java.lang.String s) throws java.io.IOException { 156 throw new RuntimeException("Stub!"); 157 } 158 159 @android.compat.annotation.UnsupportedAppUsage putIA5String(java.lang.String s)160 public void putIA5String(java.lang.String s) throws java.io.IOException { 161 throw new RuntimeException("Stub!"); 162 } 163 putBMPString(java.lang.String s)164 public void putBMPString(java.lang.String s) throws java.io.IOException { 165 throw new RuntimeException("Stub!"); 166 } 167 putGeneralString(java.lang.String s)168 public void putGeneralString(java.lang.String s) throws java.io.IOException { 169 throw new RuntimeException("Stub!"); 170 } 171 writeString(java.lang.String s, byte stringTag, java.lang.String enc)172 private void writeString(java.lang.String s, byte stringTag, java.lang.String enc) 173 throws java.io.IOException { 174 throw new RuntimeException("Stub!"); 175 } 176 177 @android.compat.annotation.UnsupportedAppUsage putUTCTime(java.util.Date d)178 public void putUTCTime(java.util.Date d) throws java.io.IOException { 179 throw new RuntimeException("Stub!"); 180 } 181 putGeneralizedTime(java.util.Date d)182 public void putGeneralizedTime(java.util.Date d) throws java.io.IOException { 183 throw new RuntimeException("Stub!"); 184 } 185 putTime(java.util.Date d, byte tag)186 private void putTime(java.util.Date d, byte tag) throws java.io.IOException { 187 throw new RuntimeException("Stub!"); 188 } 189 putLength(int len)190 public void putLength(int len) throws java.io.IOException { 191 throw new RuntimeException("Stub!"); 192 } 193 putTag(byte tagClass, boolean form, byte val)194 public void putTag(byte tagClass, boolean form, byte val) { 195 throw new RuntimeException("Stub!"); 196 } 197 derEncode(java.io.OutputStream out)198 public void derEncode(java.io.OutputStream out) throws java.io.IOException { 199 throw new RuntimeException("Stub!"); 200 } 201 202 private static sun.security.util.ByteArrayLexOrder lexOrder; 203 204 private static sun.security.util.ByteArrayTagOrder tagOrder; 205 } 206