1 /* 2 * Copyright (c) 1997, 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.x509; 27 28 @SuppressWarnings({"unchecked", "deprecation", "all"}) 29 public class X509CertInfo implements sun.security.x509.CertAttrSet<java.lang.String> { 30 31 @android.compat.annotation.UnsupportedAppUsage X509CertInfo()32 public X509CertInfo() { 33 throw new RuntimeException("Stub!"); 34 } 35 36 @android.compat.annotation.UnsupportedAppUsage X509CertInfo(byte[] cert)37 public X509CertInfo(byte[] cert) throws java.security.cert.CertificateParsingException { 38 throw new RuntimeException("Stub!"); 39 } 40 X509CertInfo(sun.security.util.DerValue derVal)41 public X509CertInfo(sun.security.util.DerValue derVal) 42 throws java.security.cert.CertificateParsingException { 43 throw new RuntimeException("Stub!"); 44 } 45 encode(java.io.OutputStream out)46 public void encode(java.io.OutputStream out) 47 throws java.security.cert.CertificateException, java.io.IOException { 48 throw new RuntimeException("Stub!"); 49 } 50 getElements()51 public java.util.Enumeration<java.lang.String> getElements() { 52 throw new RuntimeException("Stub!"); 53 } 54 getName()55 public java.lang.String getName() { 56 throw new RuntimeException("Stub!"); 57 } 58 getEncodedInfo()59 public byte[] getEncodedInfo() throws java.security.cert.CertificateEncodingException { 60 throw new RuntimeException("Stub!"); 61 } 62 equals(java.lang.Object other)63 public boolean equals(java.lang.Object other) { 64 throw new RuntimeException("Stub!"); 65 } 66 equals(sun.security.x509.X509CertInfo other)67 public boolean equals(sun.security.x509.X509CertInfo other) { 68 throw new RuntimeException("Stub!"); 69 } 70 hashCode()71 public int hashCode() { 72 throw new RuntimeException("Stub!"); 73 } 74 toString()75 public java.lang.String toString() { 76 throw new RuntimeException("Stub!"); 77 } 78 79 @android.compat.annotation.UnsupportedAppUsage set(java.lang.String name, java.lang.Object val)80 public void set(java.lang.String name, java.lang.Object val) 81 throws java.security.cert.CertificateException, java.io.IOException { 82 throw new RuntimeException("Stub!"); 83 } 84 delete(java.lang.String name)85 public void delete(java.lang.String name) 86 throws java.security.cert.CertificateException, java.io.IOException { 87 throw new RuntimeException("Stub!"); 88 } 89 90 @android.compat.annotation.UnsupportedAppUsage get(java.lang.String name)91 public java.lang.Object get(java.lang.String name) 92 throws java.security.cert.CertificateException, java.io.IOException { 93 throw new RuntimeException("Stub!"); 94 } 95 getX500Name(java.lang.String name, boolean getIssuer)96 private java.lang.Object getX500Name(java.lang.String name, boolean getIssuer) 97 throws java.io.IOException { 98 throw new RuntimeException("Stub!"); 99 } 100 parse(sun.security.util.DerValue val)101 private void parse(sun.security.util.DerValue val) 102 throws java.security.cert.CertificateParsingException, java.io.IOException { 103 throw new RuntimeException("Stub!"); 104 } 105 verifyCert( sun.security.x509.X500Name subject, sun.security.x509.CertificateExtensions extensions)106 private void verifyCert( 107 sun.security.x509.X500Name subject, sun.security.x509.CertificateExtensions extensions) 108 throws java.security.cert.CertificateParsingException, java.io.IOException { 109 throw new RuntimeException("Stub!"); 110 } 111 emit(sun.security.util.DerOutputStream out)112 private void emit(sun.security.util.DerOutputStream out) 113 throws java.security.cert.CertificateException, java.io.IOException { 114 throw new RuntimeException("Stub!"); 115 } 116 attributeMap(java.lang.String name)117 private int attributeMap(java.lang.String name) { 118 throw new RuntimeException("Stub!"); 119 } 120 setVersion(java.lang.Object val)121 private void setVersion(java.lang.Object val) throws java.security.cert.CertificateException { 122 throw new RuntimeException("Stub!"); 123 } 124 setSerialNumber(java.lang.Object val)125 private void setSerialNumber(java.lang.Object val) 126 throws java.security.cert.CertificateException { 127 throw new RuntimeException("Stub!"); 128 } 129 setAlgorithmId(java.lang.Object val)130 private void setAlgorithmId(java.lang.Object val) 131 throws java.security.cert.CertificateException { 132 throw new RuntimeException("Stub!"); 133 } 134 setIssuer(java.lang.Object val)135 private void setIssuer(java.lang.Object val) throws java.security.cert.CertificateException { 136 throw new RuntimeException("Stub!"); 137 } 138 setValidity(java.lang.Object val)139 private void setValidity(java.lang.Object val) throws java.security.cert.CertificateException { 140 throw new RuntimeException("Stub!"); 141 } 142 setSubject(java.lang.Object val)143 private void setSubject(java.lang.Object val) throws java.security.cert.CertificateException { 144 throw new RuntimeException("Stub!"); 145 } 146 setKey(java.lang.Object val)147 private void setKey(java.lang.Object val) throws java.security.cert.CertificateException { 148 throw new RuntimeException("Stub!"); 149 } 150 setIssuerUniqueId(java.lang.Object val)151 private void setIssuerUniqueId(java.lang.Object val) 152 throws java.security.cert.CertificateException { 153 throw new RuntimeException("Stub!"); 154 } 155 setSubjectUniqueId(java.lang.Object val)156 private void setSubjectUniqueId(java.lang.Object val) 157 throws java.security.cert.CertificateException { 158 throw new RuntimeException("Stub!"); 159 } 160 setExtensions(java.lang.Object val)161 private void setExtensions(java.lang.Object val) 162 throws java.security.cert.CertificateException { 163 throw new RuntimeException("Stub!"); 164 } 165 166 public static final java.lang.String ALGORITHM_ID = "algorithmID"; 167 168 private static final int ATTR_ALGORITHM = 3; // 0x3 169 170 private static final int ATTR_EXTENSIONS = 10; // 0xa 171 172 private static final int ATTR_ISSUER = 4; // 0x4 173 174 private static final int ATTR_ISSUER_ID = 8; // 0x8 175 176 private static final int ATTR_KEY = 7; // 0x7 177 178 private static final int ATTR_SERIAL = 2; // 0x2 179 180 private static final int ATTR_SUBJECT = 6; // 0x6 181 182 private static final int ATTR_SUBJECT_ID = 9; // 0x9 183 184 private static final int ATTR_VALIDITY = 5; // 0x5 185 186 private static final int ATTR_VERSION = 1; // 0x1 187 188 public static final java.lang.String DN_NAME = "dname"; 189 190 public static final java.lang.String EXTENSIONS = "extensions"; 191 192 public static final java.lang.String IDENT = "x509.info"; 193 194 public static final java.lang.String ISSUER = "issuer"; 195 196 public static final java.lang.String ISSUER_ID = "issuerID"; 197 198 public static final java.lang.String KEY = "key"; 199 200 public static final java.lang.String NAME = "info"; 201 202 public static final java.lang.String SERIAL_NUMBER = "serialNumber"; 203 204 public static final java.lang.String SUBJECT = "subject"; 205 206 public static final java.lang.String SUBJECT_ID = "subjectID"; 207 208 public static final java.lang.String VALIDITY = "validity"; 209 210 public static final java.lang.String VERSION = "version"; 211 212 protected sun.security.x509.CertificateAlgorithmId algId; 213 214 protected sun.security.x509.CertificateExtensions extensions; 215 216 protected sun.security.x509.CertificateValidity interval; 217 218 protected sun.security.x509.X500Name issuer; 219 220 protected sun.security.x509.UniqueIdentity issuerUniqueId; 221 222 private static final java.util.Map<java.lang.String, java.lang.Integer> map; 223 224 static { 225 map = null; 226 } 227 228 protected sun.security.x509.CertificateX509Key pubKey; 229 230 private byte[] rawCertInfo; 231 232 protected sun.security.x509.CertificateSerialNumber serialNum; 233 234 protected sun.security.x509.X500Name subject; 235 236 protected sun.security.x509.UniqueIdentity subjectUniqueId; 237 238 protected sun.security.x509.CertificateVersion version; 239 } 240