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 @SuppressWarnings({"unchecked", "deprecation", "all"}) 30 public class X500Name implements sun.security.x509.GeneralNameInterface, java.security.Principal { 31 32 @android.compat.annotation.UnsupportedAppUsage X500Name(java.lang.String dname)33 public X500Name(java.lang.String dname) throws java.io.IOException { 34 throw new RuntimeException("Stub!"); 35 } 36 X500Name( java.lang.String dname, java.util.Map<java.lang.String, java.lang.String> keywordMap)37 public X500Name( 38 java.lang.String dname, java.util.Map<java.lang.String, java.lang.String> keywordMap) 39 throws java.io.IOException { 40 throw new RuntimeException("Stub!"); 41 } 42 43 @android.compat.annotation.UnsupportedAppUsage X500Name(java.lang.String dname, java.lang.String format)44 public X500Name(java.lang.String dname, java.lang.String format) throws java.io.IOException { 45 throw new RuntimeException("Stub!"); 46 } 47 48 @android.compat.annotation.UnsupportedAppUsage X500Name( java.lang.String commonName, java.lang.String organizationUnit, java.lang.String organizationName, java.lang.String country)49 public X500Name( 50 java.lang.String commonName, 51 java.lang.String organizationUnit, 52 java.lang.String organizationName, 53 java.lang.String country) 54 throws java.io.IOException { 55 throw new RuntimeException("Stub!"); 56 } 57 58 @android.compat.annotation.UnsupportedAppUsage X500Name( java.lang.String commonName, java.lang.String organizationUnit, java.lang.String organizationName, java.lang.String localityName, java.lang.String stateName, java.lang.String country)59 public X500Name( 60 java.lang.String commonName, 61 java.lang.String organizationUnit, 62 java.lang.String organizationName, 63 java.lang.String localityName, 64 java.lang.String stateName, 65 java.lang.String country) 66 throws java.io.IOException { 67 throw new RuntimeException("Stub!"); 68 } 69 X500Name(sun.security.x509.RDN[] rdnArray)70 public X500Name(sun.security.x509.RDN[] rdnArray) throws java.io.IOException { 71 throw new RuntimeException("Stub!"); 72 } 73 74 @android.compat.annotation.UnsupportedAppUsage X500Name(sun.security.util.DerValue value)75 public X500Name(sun.security.util.DerValue value) throws java.io.IOException { 76 throw new RuntimeException("Stub!"); 77 } 78 79 @android.compat.annotation.UnsupportedAppUsage X500Name(sun.security.util.DerInputStream in)80 public X500Name(sun.security.util.DerInputStream in) throws java.io.IOException { 81 throw new RuntimeException("Stub!"); 82 } 83 84 @android.compat.annotation.UnsupportedAppUsage X500Name(byte[] name)85 public X500Name(byte[] name) throws java.io.IOException { 86 throw new RuntimeException("Stub!"); 87 } 88 rdns()89 public java.util.List<sun.security.x509.RDN> rdns() { 90 throw new RuntimeException("Stub!"); 91 } 92 size()93 public int size() { 94 throw new RuntimeException("Stub!"); 95 } 96 97 @android.compat.annotation.UnsupportedAppUsage allAvas()98 public java.util.List<sun.security.x509.AVA> allAvas() { 99 throw new RuntimeException("Stub!"); 100 } 101 avaSize()102 public int avaSize() { 103 throw new RuntimeException("Stub!"); 104 } 105 106 @android.compat.annotation.UnsupportedAppUsage isEmpty()107 public boolean isEmpty() { 108 throw new RuntimeException("Stub!"); 109 } 110 hashCode()111 public int hashCode() { 112 throw new RuntimeException("Stub!"); 113 } 114 equals(java.lang.Object obj)115 public boolean equals(java.lang.Object obj) { 116 throw new RuntimeException("Stub!"); 117 } 118 getString(sun.security.util.DerValue attribute)119 private java.lang.String getString(sun.security.util.DerValue attribute) 120 throws java.io.IOException { 121 throw new RuntimeException("Stub!"); 122 } 123 getType()124 public int getType() { 125 throw new RuntimeException("Stub!"); 126 } 127 getCountry()128 public java.lang.String getCountry() throws java.io.IOException { 129 throw new RuntimeException("Stub!"); 130 } 131 getOrganization()132 public java.lang.String getOrganization() throws java.io.IOException { 133 throw new RuntimeException("Stub!"); 134 } 135 getOrganizationalUnit()136 public java.lang.String getOrganizationalUnit() throws java.io.IOException { 137 throw new RuntimeException("Stub!"); 138 } 139 140 @android.compat.annotation.UnsupportedAppUsage getCommonName()141 public java.lang.String getCommonName() throws java.io.IOException { 142 throw new RuntimeException("Stub!"); 143 } 144 getLocality()145 public java.lang.String getLocality() throws java.io.IOException { 146 throw new RuntimeException("Stub!"); 147 } 148 getState()149 public java.lang.String getState() throws java.io.IOException { 150 throw new RuntimeException("Stub!"); 151 } 152 getDomain()153 public java.lang.String getDomain() throws java.io.IOException { 154 throw new RuntimeException("Stub!"); 155 } 156 getDNQualifier()157 public java.lang.String getDNQualifier() throws java.io.IOException { 158 throw new RuntimeException("Stub!"); 159 } 160 getSurname()161 public java.lang.String getSurname() throws java.io.IOException { 162 throw new RuntimeException("Stub!"); 163 } 164 getGivenName()165 public java.lang.String getGivenName() throws java.io.IOException { 166 throw new RuntimeException("Stub!"); 167 } 168 getInitials()169 public java.lang.String getInitials() throws java.io.IOException { 170 throw new RuntimeException("Stub!"); 171 } 172 getGeneration()173 public java.lang.String getGeneration() throws java.io.IOException { 174 throw new RuntimeException("Stub!"); 175 } 176 getIP()177 public java.lang.String getIP() throws java.io.IOException { 178 throw new RuntimeException("Stub!"); 179 } 180 toString()181 public java.lang.String toString() { 182 throw new RuntimeException("Stub!"); 183 } 184 getRFC1779Name()185 public java.lang.String getRFC1779Name() { 186 throw new RuntimeException("Stub!"); 187 } 188 getRFC1779Name(java.util.Map<java.lang.String, java.lang.String> oidMap)189 public java.lang.String getRFC1779Name(java.util.Map<java.lang.String, java.lang.String> oidMap) 190 throws java.lang.IllegalArgumentException { 191 throw new RuntimeException("Stub!"); 192 } 193 getRFC2253Name()194 public java.lang.String getRFC2253Name() { 195 throw new RuntimeException("Stub!"); 196 } 197 getRFC2253Name( java.util.Map<java.lang.String, java.lang.String> oidMap)198 public java.lang.String getRFC2253Name( 199 java.util.Map<java.lang.String, java.lang.String> oidMap) { 200 throw new RuntimeException("Stub!"); 201 } 202 generateRFC2253DN( java.util.Map<java.lang.String, java.lang.String> oidMap)203 private java.lang.String generateRFC2253DN( 204 java.util.Map<java.lang.String, java.lang.String> oidMap) { 205 throw new RuntimeException("Stub!"); 206 } 207 getRFC2253CanonicalName()208 public java.lang.String getRFC2253CanonicalName() { 209 throw new RuntimeException("Stub!"); 210 } 211 getName()212 public java.lang.String getName() { 213 throw new RuntimeException("Stub!"); 214 } 215 findAttribute(sun.security.util.ObjectIdentifier attribute)216 private sun.security.util.DerValue findAttribute(sun.security.util.ObjectIdentifier attribute) { 217 throw new RuntimeException("Stub!"); 218 } 219 findMostSpecificAttribute( sun.security.util.ObjectIdentifier attribute)220 public sun.security.util.DerValue findMostSpecificAttribute( 221 sun.security.util.ObjectIdentifier attribute) { 222 throw new RuntimeException("Stub!"); 223 } 224 parseDER(sun.security.util.DerInputStream in)225 private void parseDER(sun.security.util.DerInputStream in) throws java.io.IOException { 226 throw new RuntimeException("Stub!"); 227 } 228 229 @Deprecated emit(sun.security.util.DerOutputStream out)230 public void emit(sun.security.util.DerOutputStream out) throws java.io.IOException { 231 throw new RuntimeException("Stub!"); 232 } 233 234 @android.compat.annotation.UnsupportedAppUsage encode(sun.security.util.DerOutputStream out)235 public void encode(sun.security.util.DerOutputStream out) throws java.io.IOException { 236 throw new RuntimeException("Stub!"); 237 } 238 getEncodedInternal()239 public byte[] getEncodedInternal() throws java.io.IOException { 240 throw new RuntimeException("Stub!"); 241 } 242 getEncoded()243 public byte[] getEncoded() throws java.io.IOException { 244 throw new RuntimeException("Stub!"); 245 } 246 parseDN( java.lang.String input, java.util.Map<java.lang.String, java.lang.String> keywordMap)247 private void parseDN( 248 java.lang.String input, java.util.Map<java.lang.String, java.lang.String> keywordMap) 249 throws java.io.IOException { 250 throw new RuntimeException("Stub!"); 251 } 252 checkNoNewLinesNorTabsAtBeginningOfDN(java.lang.String input)253 private void checkNoNewLinesNorTabsAtBeginningOfDN(java.lang.String input) { 254 throw new RuntimeException("Stub!"); 255 } 256 parseRFC2253DN(java.lang.String dnString)257 private void parseRFC2253DN(java.lang.String dnString) throws java.io.IOException { 258 throw new RuntimeException("Stub!"); 259 } 260 countQuotes(java.lang.String string, int from, int to)261 static int countQuotes(java.lang.String string, int from, int to) { 262 throw new RuntimeException("Stub!"); 263 } 264 escaped(int rdnEnd, int searchOffset, java.lang.String dnString)265 private static boolean escaped(int rdnEnd, int searchOffset, java.lang.String dnString) { 266 throw new RuntimeException("Stub!"); 267 } 268 generateDN()269 private void generateDN() { 270 throw new RuntimeException("Stub!"); 271 } 272 generateRFC1779DN( java.util.Map<java.lang.String, java.lang.String> oidMap)273 private java.lang.String generateRFC1779DN( 274 java.util.Map<java.lang.String, java.lang.String> oidMap) { 275 throw new RuntimeException("Stub!"); 276 } 277 intern(sun.security.util.ObjectIdentifier oid)278 static sun.security.util.ObjectIdentifier intern(sun.security.util.ObjectIdentifier oid) { 279 throw new RuntimeException("Stub!"); 280 } 281 constrains(sun.security.x509.GeneralNameInterface inputName)282 public int constrains(sun.security.x509.GeneralNameInterface inputName) 283 throws java.lang.UnsupportedOperationException { 284 throw new RuntimeException("Stub!"); 285 } 286 isWithinSubtree(sun.security.x509.X500Name other)287 private boolean isWithinSubtree(sun.security.x509.X500Name other) { 288 throw new RuntimeException("Stub!"); 289 } 290 subtreeDepth()291 public int subtreeDepth() throws java.lang.UnsupportedOperationException { 292 throw new RuntimeException("Stub!"); 293 } 294 commonAncestor(sun.security.x509.X500Name other)295 public sun.security.x509.X500Name commonAncestor(sun.security.x509.X500Name other) { 296 throw new RuntimeException("Stub!"); 297 } 298 299 @android.compat.annotation.UnsupportedAppUsage asX500Principal()300 public javax.security.auth.x500.X500Principal asX500Principal() { 301 throw new RuntimeException("Stub!"); 302 } 303 304 @android.compat.annotation.UnsupportedAppUsage asX500Name(javax.security.auth.x500.X500Principal p)305 public static sun.security.x509.X500Name asX500Name(javax.security.auth.x500.X500Principal p) { 306 throw new RuntimeException("Stub!"); 307 } 308 309 private static final int[] DNQUALIFIER_DATA; 310 311 static { 312 DNQUALIFIER_DATA = new int[0]; 313 } 314 315 @android.compat.annotation.UnsupportedAppUsage 316 public static final sun.security.util.ObjectIdentifier DNQUALIFIER_OID; 317 318 static { 319 DNQUALIFIER_OID = null; 320 } 321 322 private static final int[] DOMAIN_COMPONENT_DATA; 323 324 static { 325 DOMAIN_COMPONENT_DATA = new int[0]; 326 } 327 328 @android.compat.annotation.UnsupportedAppUsage 329 public static final sun.security.util.ObjectIdentifier DOMAIN_COMPONENT_OID; 330 331 static { 332 DOMAIN_COMPONENT_OID = null; 333 } 334 335 private static final int[] GENERATIONQUALIFIER_DATA; 336 337 static { 338 GENERATIONQUALIFIER_DATA = new int[0]; 339 } 340 341 @android.compat.annotation.UnsupportedAppUsage 342 public static final sun.security.util.ObjectIdentifier GENERATIONQUALIFIER_OID; 343 344 static { 345 GENERATIONQUALIFIER_OID = null; 346 } 347 348 private static final int[] GIVENNAME_DATA; 349 350 static { 351 GIVENNAME_DATA = new int[0]; 352 } 353 354 @android.compat.annotation.UnsupportedAppUsage 355 public static final sun.security.util.ObjectIdentifier GIVENNAME_OID; 356 357 static { 358 GIVENNAME_OID = null; 359 } 360 361 private static final int[] INITIALS_DATA; 362 363 static { 364 INITIALS_DATA = new int[0]; 365 } 366 367 @android.compat.annotation.UnsupportedAppUsage 368 public static final sun.security.util.ObjectIdentifier INITIALS_OID; 369 370 static { 371 INITIALS_OID = null; 372 } 373 374 private static final int[] SERIALNUMBER_DATA; 375 376 static { 377 SERIALNUMBER_DATA = new int[0]; 378 } 379 380 @android.compat.annotation.UnsupportedAppUsage 381 public static final sun.security.util.ObjectIdentifier SERIALNUMBER_OID; 382 383 static { 384 SERIALNUMBER_OID = null; 385 } 386 387 private static final int[] SURNAME_DATA; 388 389 static { 390 SURNAME_DATA = new int[0]; 391 } 392 393 @android.compat.annotation.UnsupportedAppUsage 394 public static final sun.security.util.ObjectIdentifier SURNAME_OID; 395 396 static { 397 SURNAME_OID = null; 398 } 399 400 private volatile java.util.List<sun.security.x509.AVA> allAvaList; 401 402 private java.lang.String canonicalDn; 403 404 private static final int[] commonName_data; 405 406 static { 407 commonName_data = new int[0]; 408 } 409 410 @android.compat.annotation.UnsupportedAppUsage 411 public static final sun.security.util.ObjectIdentifier commonName_oid; 412 413 static { 414 commonName_oid = null; 415 } 416 417 private static final int[] countryName_data; 418 419 static { 420 countryName_data = new int[0]; 421 } 422 423 @android.compat.annotation.UnsupportedAppUsage 424 public static final sun.security.util.ObjectIdentifier countryName_oid; 425 426 static { 427 countryName_oid = null; 428 } 429 430 private java.lang.String dn; 431 432 private byte[] encoded; 433 434 private static final java.util.Map< 435 sun.security.util.ObjectIdentifier, sun.security.util.ObjectIdentifier> 436 internedOIDs; 437 438 static { 439 internedOIDs = null; 440 } 441 442 private static final int[] ipAddress_data; 443 444 static { 445 ipAddress_data = new int[0]; 446 } 447 448 @android.compat.annotation.UnsupportedAppUsage 449 public static final sun.security.util.ObjectIdentifier ipAddress_oid; 450 451 static { 452 ipAddress_oid = null; 453 } 454 455 private static final int[] localityName_data; 456 457 static { 458 localityName_data = new int[0]; 459 } 460 461 @android.compat.annotation.UnsupportedAppUsage 462 public static final sun.security.util.ObjectIdentifier localityName_oid; 463 464 static { 465 localityName_oid = null; 466 } 467 468 private sun.security.x509.RDN[] names; 469 470 private static final int[] orgName_data; 471 472 static { 473 orgName_data = new int[0]; 474 } 475 476 @android.compat.annotation.UnsupportedAppUsage 477 public static final sun.security.util.ObjectIdentifier orgName_oid; 478 479 static { 480 orgName_oid = null; 481 } 482 483 private static final int[] orgUnitName_data; 484 485 static { 486 orgUnitName_data = new int[0]; 487 } 488 489 @android.compat.annotation.UnsupportedAppUsage 490 public static final sun.security.util.ObjectIdentifier orgUnitName_oid; 491 492 static { 493 orgUnitName_oid = null; 494 } 495 496 private static final java.lang.reflect.Constructor<javax.security.auth.x500.X500Principal> 497 principalConstructor; 498 499 static { 500 principalConstructor = null; 501 } 502 503 private static final java.lang.reflect.Field principalField; 504 505 static { 506 principalField = null; 507 } 508 509 private volatile java.util.List<sun.security.x509.RDN> rdnList; 510 511 private java.lang.String rfc1779Dn; 512 513 private java.lang.String rfc2253Dn; 514 515 private static final int[] stateName_data; 516 517 static { 518 stateName_data = new int[0]; 519 } 520 521 @android.compat.annotation.UnsupportedAppUsage 522 public static final sun.security.util.ObjectIdentifier stateName_oid; 523 524 static { 525 stateName_oid = null; 526 } 527 528 private static final int[] streetAddress_data; 529 530 static { 531 streetAddress_data = new int[0]; 532 } 533 534 @android.compat.annotation.UnsupportedAppUsage 535 public static final sun.security.util.ObjectIdentifier streetAddress_oid; 536 537 static { 538 streetAddress_oid = null; 539 } 540 541 private static final int[] title_data; 542 543 static { 544 title_data = new int[0]; 545 } 546 547 @android.compat.annotation.UnsupportedAppUsage 548 public static final sun.security.util.ObjectIdentifier title_oid; 549 550 static { 551 title_oid = null; 552 } 553 554 private static final int[] userid_data; 555 556 static { 557 userid_data = new int[0]; 558 } 559 560 @android.compat.annotation.UnsupportedAppUsage 561 public static final sun.security.util.ObjectIdentifier userid_oid; 562 563 static { 564 userid_oid = null; 565 } 566 567 private javax.security.auth.x500.X500Principal x500Principal; 568 } 569