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 import java.util.*; 29 import sun.security.util.*; 30 31 @SuppressWarnings({"unchecked", "deprecation", "all"}) 32 public class X509CRLImpl extends java.security.cert.X509CRL 33 implements sun.security.util.DerEncoder { 34 X509CRLImpl()35 private X509CRLImpl() { 36 throw new RuntimeException("Stub!"); 37 } 38 39 @dalvik.annotation.compat.UnsupportedAppUsage X509CRLImpl(byte[] crlData)40 public X509CRLImpl(byte[] crlData) throws java.security.cert.CRLException { 41 throw new RuntimeException("Stub!"); 42 } 43 44 @dalvik.annotation.compat.UnsupportedAppUsage X509CRLImpl(sun.security.util.DerValue val)45 public X509CRLImpl(sun.security.util.DerValue val) throws java.security.cert.CRLException { 46 throw new RuntimeException("Stub!"); 47 } 48 49 @dalvik.annotation.compat.UnsupportedAppUsage X509CRLImpl(java.io.InputStream inStrm)50 public X509CRLImpl(java.io.InputStream inStrm) throws java.security.cert.CRLException { 51 throw new RuntimeException("Stub!"); 52 } 53 X509CRLImpl( sun.security.x509.X500Name issuer, java.util.Date thisDate, java.util.Date nextDate)54 public X509CRLImpl( 55 sun.security.x509.X500Name issuer, java.util.Date thisDate, java.util.Date nextDate) { 56 throw new RuntimeException("Stub!"); 57 } 58 X509CRLImpl( sun.security.x509.X500Name issuer, java.util.Date thisDate, java.util.Date nextDate, java.security.cert.X509CRLEntry[] badCerts)59 public X509CRLImpl( 60 sun.security.x509.X500Name issuer, 61 java.util.Date thisDate, 62 java.util.Date nextDate, 63 java.security.cert.X509CRLEntry[] badCerts) 64 throws java.security.cert.CRLException { 65 throw new RuntimeException("Stub!"); 66 } 67 X509CRLImpl( sun.security.x509.X500Name issuer, java.util.Date thisDate, java.util.Date nextDate, java.security.cert.X509CRLEntry[] badCerts, sun.security.x509.CRLExtensions crlExts)68 public X509CRLImpl( 69 sun.security.x509.X500Name issuer, 70 java.util.Date thisDate, 71 java.util.Date nextDate, 72 java.security.cert.X509CRLEntry[] badCerts, 73 sun.security.x509.CRLExtensions crlExts) 74 throws java.security.cert.CRLException { 75 throw new RuntimeException("Stub!"); 76 } 77 78 @dalvik.annotation.compat.UnsupportedAppUsage getEncodedInternal()79 public byte[] getEncodedInternal() throws java.security.cert.CRLException { 80 throw new RuntimeException("Stub!"); 81 } 82 getEncoded()83 public byte[] getEncoded() throws java.security.cert.CRLException { 84 throw new RuntimeException("Stub!"); 85 } 86 encodeInfo(java.io.OutputStream out)87 public void encodeInfo(java.io.OutputStream out) throws java.security.cert.CRLException { 88 throw new RuntimeException("Stub!"); 89 } 90 verify(java.security.PublicKey key)91 public void verify(java.security.PublicKey key) 92 throws java.security.cert.CRLException, java.security.InvalidKeyException, 93 java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, 94 java.security.SignatureException { 95 throw new RuntimeException("Stub!"); 96 } 97 verify(java.security.PublicKey key, java.lang.String sigProvider)98 public synchronized void verify(java.security.PublicKey key, java.lang.String sigProvider) 99 throws java.security.cert.CRLException, java.security.InvalidKeyException, 100 java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, 101 java.security.SignatureException { 102 throw new RuntimeException("Stub!"); 103 } 104 verify(java.security.PublicKey key, java.security.Provider sigProvider)105 public synchronized void verify(java.security.PublicKey key, java.security.Provider sigProvider) 106 throws java.security.cert.CRLException, java.security.InvalidKeyException, 107 java.security.NoSuchAlgorithmException, java.security.SignatureException { 108 throw new RuntimeException("Stub!"); 109 } 110 sign(java.security.PrivateKey key, java.lang.String algorithm)111 public void sign(java.security.PrivateKey key, java.lang.String algorithm) 112 throws java.security.cert.CRLException, java.security.InvalidKeyException, 113 java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, 114 java.security.SignatureException { 115 throw new RuntimeException("Stub!"); 116 } 117 sign( java.security.PrivateKey key, java.lang.String algorithm, java.lang.String provider)118 public void sign( 119 java.security.PrivateKey key, java.lang.String algorithm, java.lang.String provider) 120 throws java.security.cert.CRLException, java.security.InvalidKeyException, 121 java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, 122 java.security.SignatureException { 123 throw new RuntimeException("Stub!"); 124 } 125 toString()126 public java.lang.String toString() { 127 throw new RuntimeException("Stub!"); 128 } 129 isRevoked(java.security.cert.Certificate cert)130 public boolean isRevoked(java.security.cert.Certificate cert) { 131 throw new RuntimeException("Stub!"); 132 } 133 getVersion()134 public int getVersion() { 135 throw new RuntimeException("Stub!"); 136 } 137 getIssuerDN()138 public java.security.Principal getIssuerDN() { 139 throw new RuntimeException("Stub!"); 140 } 141 getIssuerX500Principal()142 public javax.security.auth.x500.X500Principal getIssuerX500Principal() { 143 throw new RuntimeException("Stub!"); 144 } 145 getThisUpdate()146 public java.util.Date getThisUpdate() { 147 throw new RuntimeException("Stub!"); 148 } 149 getNextUpdate()150 public java.util.Date getNextUpdate() { 151 throw new RuntimeException("Stub!"); 152 } 153 getRevokedCertificate( java.math.BigInteger serialNumber)154 public java.security.cert.X509CRLEntry getRevokedCertificate( 155 java.math.BigInteger serialNumber) { 156 throw new RuntimeException("Stub!"); 157 } 158 getRevokedCertificate( java.security.cert.X509Certificate cert)159 public java.security.cert.X509CRLEntry getRevokedCertificate( 160 java.security.cert.X509Certificate cert) { 161 throw new RuntimeException("Stub!"); 162 } 163 getRevokedCertificates()164 public java.util.Set<java.security.cert.X509CRLEntry> getRevokedCertificates() { 165 throw new RuntimeException("Stub!"); 166 } 167 getTBSCertList()168 public byte[] getTBSCertList() throws java.security.cert.CRLException { 169 throw new RuntimeException("Stub!"); 170 } 171 getSignature()172 public byte[] getSignature() { 173 throw new RuntimeException("Stub!"); 174 } 175 getSigAlgName()176 public java.lang.String getSigAlgName() { 177 throw new RuntimeException("Stub!"); 178 } 179 getSigAlgOID()180 public java.lang.String getSigAlgOID() { 181 throw new RuntimeException("Stub!"); 182 } 183 getSigAlgParams()184 public byte[] getSigAlgParams() { 185 throw new RuntimeException("Stub!"); 186 } 187 getSigAlgId()188 public sun.security.x509.AlgorithmId getSigAlgId() { 189 throw new RuntimeException("Stub!"); 190 } 191 getAuthKeyId()192 public sun.security.x509.KeyIdentifier getAuthKeyId() throws java.io.IOException { 193 throw new RuntimeException("Stub!"); 194 } 195 getAuthKeyIdExtension()196 public sun.security.x509.AuthorityKeyIdentifierExtension getAuthKeyIdExtension() 197 throws java.io.IOException { 198 throw new RuntimeException("Stub!"); 199 } 200 getCRLNumberExtension()201 public sun.security.x509.CRLNumberExtension getCRLNumberExtension() throws java.io.IOException { 202 throw new RuntimeException("Stub!"); 203 } 204 getCRLNumber()205 public java.math.BigInteger getCRLNumber() throws java.io.IOException { 206 throw new RuntimeException("Stub!"); 207 } 208 getDeltaCRLIndicatorExtension()209 public sun.security.x509.DeltaCRLIndicatorExtension getDeltaCRLIndicatorExtension() 210 throws java.io.IOException { 211 throw new RuntimeException("Stub!"); 212 } 213 getBaseCRLNumber()214 public java.math.BigInteger getBaseCRLNumber() throws java.io.IOException { 215 throw new RuntimeException("Stub!"); 216 } 217 getIssuerAltNameExtension()218 public sun.security.x509.IssuerAlternativeNameExtension getIssuerAltNameExtension() 219 throws java.io.IOException { 220 throw new RuntimeException("Stub!"); 221 } 222 223 public sun.security.x509.IssuingDistributionPointExtension getIssuingDistributionPointExtension()224 getIssuingDistributionPointExtension() throws java.io.IOException { 225 throw new RuntimeException("Stub!"); 226 } 227 hasUnsupportedCriticalExtension()228 public boolean hasUnsupportedCriticalExtension() { 229 throw new RuntimeException("Stub!"); 230 } 231 getCriticalExtensionOIDs()232 public java.util.Set<java.lang.String> getCriticalExtensionOIDs() { 233 throw new RuntimeException("Stub!"); 234 } 235 getNonCriticalExtensionOIDs()236 public java.util.Set<java.lang.String> getNonCriticalExtensionOIDs() { 237 throw new RuntimeException("Stub!"); 238 } 239 getExtensionValue(java.lang.String oid)240 public byte[] getExtensionValue(java.lang.String oid) { 241 throw new RuntimeException("Stub!"); 242 } 243 getExtension(sun.security.util.ObjectIdentifier oid)244 public java.lang.Object getExtension(sun.security.util.ObjectIdentifier oid) { 245 throw new RuntimeException("Stub!"); 246 } 247 parse(sun.security.util.DerValue val)248 private void parse(sun.security.util.DerValue val) 249 throws java.security.cert.CRLException, java.io.IOException { 250 throw new RuntimeException("Stub!"); 251 } 252 getIssuerX500Principal( java.security.cert.X509CRL crl)253 public static javax.security.auth.x500.X500Principal getIssuerX500Principal( 254 java.security.cert.X509CRL crl) { 255 throw new RuntimeException("Stub!"); 256 } 257 getEncodedInternal(java.security.cert.X509CRL crl)258 public static byte[] getEncodedInternal(java.security.cert.X509CRL crl) 259 throws java.security.cert.CRLException { 260 throw new RuntimeException("Stub!"); 261 } 262 toImpl(java.security.cert.X509CRL crl)263 public static sun.security.x509.X509CRLImpl toImpl(java.security.cert.X509CRL crl) 264 throws java.security.cert.CRLException { 265 throw new RuntimeException("Stub!"); 266 } 267 getCertIssuer( sun.security.x509.X509CRLEntryImpl entry, javax.security.auth.x500.X500Principal prevCertIssuer)268 private javax.security.auth.x500.X500Principal getCertIssuer( 269 sun.security.x509.X509CRLEntryImpl entry, 270 javax.security.auth.x500.X500Principal prevCertIssuer) 271 throws java.io.IOException { 272 throw new RuntimeException("Stub!"); 273 } 274 derEncode(java.io.OutputStream out)275 public void derEncode(java.io.OutputStream out) throws java.io.IOException { 276 throw new RuntimeException("Stub!"); 277 } 278 279 private static final long YR_2050 = 2524636800000L; // 0x24bd0146400L 280 281 private sun.security.x509.CRLExtensions extensions; 282 283 private sun.security.x509.AlgorithmId infoSigAlgId; 284 285 private static final boolean isExplicit = true; 286 287 private sun.security.x509.X500Name issuer; 288 289 private javax.security.auth.x500.X500Principal issuerPrincipal; 290 291 private java.util.Date nextUpdate; 292 293 private boolean readOnly = false; 294 295 private java.util.List<java.security.cert.X509CRLEntry> revokedList; 296 297 private java.util.Map< 298 sun.security.x509.X509CRLImpl.X509IssuerSerial, java.security.cert.X509CRLEntry> 299 revokedMap; 300 301 private sun.security.x509.AlgorithmId sigAlgId; 302 303 private byte[] signature; 304 305 private byte[] signedCRL; 306 307 private byte[] tbsCertList; 308 309 private java.util.Date thisUpdate; 310 311 private java.lang.String verifiedProvider; 312 313 private java.security.PublicKey verifiedPublicKey; 314 315 private int version; 316 317 @SuppressWarnings({"unchecked", "deprecation", "all"}) 318 private static final class X509IssuerSerial 319 implements java.lang.Comparable<sun.security.x509.X509CRLImpl.X509IssuerSerial> { 320 X509IssuerSerial( javax.security.auth.x500.X500Principal issuer, java.math.BigInteger serial)321 X509IssuerSerial( 322 javax.security.auth.x500.X500Principal issuer, java.math.BigInteger serial) { 323 throw new RuntimeException("Stub!"); 324 } 325 X509IssuerSerial(java.security.cert.X509Certificate cert)326 X509IssuerSerial(java.security.cert.X509Certificate cert) { 327 throw new RuntimeException("Stub!"); 328 } 329 getIssuer()330 javax.security.auth.x500.X500Principal getIssuer() { 331 throw new RuntimeException("Stub!"); 332 } 333 getSerial()334 java.math.BigInteger getSerial() { 335 throw new RuntimeException("Stub!"); 336 } 337 equals(java.lang.Object o)338 public boolean equals(java.lang.Object o) { 339 throw new RuntimeException("Stub!"); 340 } 341 hashCode()342 public int hashCode() { 343 throw new RuntimeException("Stub!"); 344 } 345 compareTo(sun.security.x509.X509CRLImpl.X509IssuerSerial another)346 public int compareTo(sun.security.x509.X509CRLImpl.X509IssuerSerial another) { 347 throw new RuntimeException("Stub!"); 348 } 349 350 volatile int hashcode = 0; // 0x0 351 352 final javax.security.auth.x500.X500Principal issuer; 353 354 { 355 issuer = null; 356 } 357 358 final java.math.BigInteger serial; 359 360 { 361 serial = null; 362 } 363 } 364 } 365