1 /* 2 * Copyright (C) 2014 The Android Open Source Project 3 * Copyright (c) 1996, 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 android.compat.annotation.UnsupportedAppUsage; 30 31 @SuppressWarnings({"unchecked", "deprecation", "all"}) 32 public class AVA implements sun.security.util.DerEncoder { 33 34 @UnsupportedAppUsage AVA(sun.security.util.ObjectIdentifier type, sun.security.util.DerValue val)35 public AVA(sun.security.util.ObjectIdentifier type, sun.security.util.DerValue val) { 36 throw new RuntimeException("Stub!"); 37 } 38 AVA(java.io.Reader in)39 AVA(java.io.Reader in) throws java.io.IOException { 40 throw new RuntimeException("Stub!"); 41 } 42 AVA(java.io.Reader in, java.util.Map<java.lang.String, java.lang.String> keywordMap)43 AVA(java.io.Reader in, java.util.Map<java.lang.String, java.lang.String> keywordMap) 44 throws java.io.IOException { 45 throw new RuntimeException("Stub!"); 46 } 47 AVA(java.io.Reader in, int format)48 AVA(java.io.Reader in, int format) throws java.io.IOException { 49 throw new RuntimeException("Stub!"); 50 } 51 AVA(java.io.Reader in, int format, java.util.Map<java.lang.String, java.lang.String> keywordMap)52 AVA(java.io.Reader in, int format, java.util.Map<java.lang.String, java.lang.String> keywordMap) 53 throws java.io.IOException { 54 throw new RuntimeException("Stub!"); 55 } 56 AVA(sun.security.util.DerValue derval)57 AVA(sun.security.util.DerValue derval) throws java.io.IOException { 58 throw new RuntimeException("Stub!"); 59 } 60 AVA(sun.security.util.DerInputStream in)61 AVA(sun.security.util.DerInputStream in) throws java.io.IOException { 62 throw new RuntimeException("Stub!"); 63 } 64 65 @UnsupportedAppUsage getObjectIdentifier()66 public sun.security.util.ObjectIdentifier getObjectIdentifier() { 67 throw new RuntimeException("Stub!"); 68 } 69 70 @UnsupportedAppUsage getDerValue()71 public sun.security.util.DerValue getDerValue() { 72 throw new RuntimeException("Stub!"); 73 } 74 75 @UnsupportedAppUsage getValueString()76 public java.lang.String getValueString() { 77 throw new RuntimeException("Stub!"); 78 } 79 parseHexString(java.io.Reader in, int format)80 private static sun.security.util.DerValue parseHexString(java.io.Reader in, int format) 81 throws java.io.IOException { 82 throw new RuntimeException("Stub!"); 83 } 84 parseQuotedString( java.io.Reader in, java.lang.StringBuilder temp)85 private sun.security.util.DerValue parseQuotedString( 86 java.io.Reader in, java.lang.StringBuilder temp) throws java.io.IOException { 87 throw new RuntimeException("Stub!"); 88 } 89 parseString( java.io.Reader in, int c, int format, java.lang.StringBuilder temp)90 private sun.security.util.DerValue parseString( 91 java.io.Reader in, int c, int format, java.lang.StringBuilder temp) 92 throws java.io.IOException { 93 throw new RuntimeException("Stub!"); 94 } 95 getEmbeddedHexPair(int c1, java.io.Reader in)96 private static java.lang.Byte getEmbeddedHexPair(int c1, java.io.Reader in) 97 throws java.io.IOException { 98 throw new RuntimeException("Stub!"); 99 } 100 getEmbeddedHexString(java.util.List<java.lang.Byte> hexList)101 private static java.lang.String getEmbeddedHexString(java.util.List<java.lang.Byte> hexList) 102 throws java.io.IOException { 103 throw new RuntimeException("Stub!"); 104 } 105 isTerminator(int ch, int format)106 private static boolean isTerminator(int ch, int format) { 107 throw new RuntimeException("Stub!"); 108 } 109 readChar(java.io.Reader in, java.lang.String errMsg)110 private static int readChar(java.io.Reader in, java.lang.String errMsg) 111 throws java.io.IOException { 112 throw new RuntimeException("Stub!"); 113 } 114 trailingSpace(java.io.Reader in)115 private static boolean trailingSpace(java.io.Reader in) throws java.io.IOException { 116 throw new RuntimeException("Stub!"); 117 } 118 equals(java.lang.Object obj)119 public boolean equals(java.lang.Object obj) { 120 throw new RuntimeException("Stub!"); 121 } 122 hashCode()123 public int hashCode() { 124 throw new RuntimeException("Stub!"); 125 } 126 encode(sun.security.util.DerOutputStream out)127 public void encode(sun.security.util.DerOutputStream out) throws java.io.IOException { 128 throw new RuntimeException("Stub!"); 129 } 130 derEncode(java.io.OutputStream out)131 public void derEncode(java.io.OutputStream out) throws java.io.IOException { 132 throw new RuntimeException("Stub!"); 133 } 134 toKeyword( int format, java.util.Map<java.lang.String, java.lang.String> oidMap)135 private java.lang.String toKeyword( 136 int format, java.util.Map<java.lang.String, java.lang.String> oidMap) { 137 throw new RuntimeException("Stub!"); 138 } 139 toString()140 public java.lang.String toString() { 141 throw new RuntimeException("Stub!"); 142 } 143 toRFC1779String()144 public java.lang.String toRFC1779String() { 145 throw new RuntimeException("Stub!"); 146 } 147 toRFC1779String( java.util.Map<java.lang.String, java.lang.String> oidMap)148 public java.lang.String toRFC1779String( 149 java.util.Map<java.lang.String, java.lang.String> oidMap) { 150 throw new RuntimeException("Stub!"); 151 } 152 toRFC2253String()153 public java.lang.String toRFC2253String() { 154 throw new RuntimeException("Stub!"); 155 } 156 toRFC2253String( java.util.Map<java.lang.String, java.lang.String> oidMap)157 public java.lang.String toRFC2253String( 158 java.util.Map<java.lang.String, java.lang.String> oidMap) { 159 throw new RuntimeException("Stub!"); 160 } 161 162 @UnsupportedAppUsage toRFC2253CanonicalString()163 public java.lang.String toRFC2253CanonicalString() { 164 throw new RuntimeException("Stub!"); 165 } 166 isDerString(sun.security.util.DerValue value, boolean canonical)167 private static boolean isDerString(sun.security.util.DerValue value, boolean canonical) { 168 throw new RuntimeException("Stub!"); 169 } 170 171 @UnsupportedAppUsage hasRFC2253Keyword()172 boolean hasRFC2253Keyword() { 173 throw new RuntimeException("Stub!"); 174 } 175 toKeywordValueString(java.lang.String keyword)176 private java.lang.String toKeywordValueString(java.lang.String keyword) { 177 throw new RuntimeException("Stub!"); 178 } 179 180 static final int DEFAULT = 1; // 0x1 181 182 private static final boolean PRESERVE_OLD_DC_ENCODING; 183 184 static { 185 PRESERVE_OLD_DC_ENCODING = false; 186 } 187 188 static final int RFC1779 = 2; // 0x2 189 190 static final int RFC2253 = 3; // 0x3 191 192 private static final sun.security.util.Debug debug; 193 194 static { 195 debug = null; 196 } 197 198 private static final java.lang.String escapedDefault = ",+<>;\""; 199 200 private static final java.lang.String hexDigits = "0123456789ABCDEF"; 201 202 final sun.security.util.ObjectIdentifier oid; 203 204 { 205 oid = null; 206 } 207 208 private static final java.lang.String specialChars1779 = ",=\n+<>#;\\\""; 209 210 private static final java.lang.String specialChars2253 = ",=+<>#;\\\""; 211 212 private static final java.lang.String specialCharsDefault = ",=\n+<>#;\\\" "; 213 214 final sun.security.util.DerValue value; 215 216 { 217 value = null; 218 } 219 } 220