public class sun.security.util.HostnameChecker
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: sun.security.util.HostnameChecker
  super_class: java.lang.Object
{
  public static final byte TYPE_TLS;
    descriptor: B
    flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
    ConstantValue: 1

  private static final sun.security.util.HostnameChecker INSTANCE_TLS;
    descriptor: Lsun/security/util/HostnameChecker;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  public static final byte TYPE_LDAP;
    descriptor: B
    flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
    ConstantValue: 2

  private static final sun.security.util.HostnameChecker INSTANCE_LDAP;
    descriptor: Lsun/security/util/HostnameChecker;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private static final int ALTNAME_DNS;
    descriptor: I
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 2

  private static final int ALTNAME_IP;
    descriptor: I
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 7

  private final byte checkType;
    descriptor: B
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=3, locals=0, args_size=0
         0: .line 54
            new sun.security.util.HostnameChecker
            dup
            iconst_1
            invokespecial sun.security.util.HostnameChecker.<init>:(B)V
         1: .line 53
            putstatic sun.security.util.HostnameChecker.INSTANCE_TLS:Lsun/security/util/HostnameChecker;
         2: .line 59
            new sun.security.util.HostnameChecker
            dup
            iconst_2
            invokespecial sun.security.util.HostnameChecker.<init>:(B)V
         3: .line 58
            putstatic sun.security.util.HostnameChecker.INSTANCE_LDAP:Lsun/security/util/HostnameChecker;
         4: .line 63
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  private void <init>(byte);
    descriptor: (B)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // sun.security.util.HostnameChecker this
        start local 1 // byte checkType
         0: .line 68
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 69
            aload 0 /* this */
            iload 1 /* checkType */
            putfield sun.security.util.HostnameChecker.checkType:B
         2: .line 70
            return
        end local 1 // byte checkType
        end local 0 // sun.security.util.HostnameChecker this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    3     0       this  Lsun/security/util/HostnameChecker;
            0    3     1  checkType  B
    MethodParameters:
           Name  Flags
      checkType  

  public static sun.security.util.HostnameChecker getInstance(byte);
    descriptor: (B)Lsun/security/util/HostnameChecker;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=5, locals=1, args_size=1
        start local 0 // byte checkType
         0: .line 77
            iload 0 /* checkType */
            iconst_1
            if_icmpne 2
         1: .line 78
            getstatic sun.security.util.HostnameChecker.INSTANCE_TLS:Lsun/security/util/HostnameChecker;
            areturn
         2: .line 79
      StackMap locals:
      StackMap stack:
            iload 0 /* checkType */
            iconst_2
            if_icmpne 4
         3: .line 80
            getstatic sun.security.util.HostnameChecker.INSTANCE_LDAP:Lsun/security/util/HostnameChecker;
            areturn
         4: .line 82
      StackMap locals:
      StackMap stack:
            new java.lang.IllegalArgumentException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Unknown check type: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            iload 0 /* checkType */
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
        end local 0 // byte checkType
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    5     0  checkType  B
    MethodParameters:
           Name  Flags
      checkType  

  public void match(java.lang.String, java.security.cert.X509Certificate);
    descriptor: (Ljava/lang/String;Ljava/security/cert/X509Certificate;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=3
        start local 0 // sun.security.util.HostnameChecker this
        start local 1 // java.lang.String expectedName
        start local 2 // java.security.cert.X509Certificate cert
         0: .line 93
            aload 1 /* expectedName */
            invokestatic sun.security.util.HostnameChecker.isIpAddress:(Ljava/lang/String;)Z
            ifeq 3
         1: .line 94
            aload 1 /* expectedName */
            aload 2 /* cert */
            invokestatic sun.security.util.HostnameChecker.matchIP:(Ljava/lang/String;Ljava/security/cert/X509Certificate;)V
         2: .line 95
            goto 4
         3: .line 96
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* expectedName */
            aload 2 /* cert */
            invokevirtual sun.security.util.HostnameChecker.matchDNS:(Ljava/lang/String;Ljava/security/cert/X509Certificate;)V
         4: .line 98
      StackMap locals:
      StackMap stack:
            return
        end local 2 // java.security.cert.X509Certificate cert
        end local 1 // java.lang.String expectedName
        end local 0 // sun.security.util.HostnameChecker this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0    5     0          this  Lsun/security/util/HostnameChecker;
            0    5     1  expectedName  Ljava/lang/String;
            0    5     2          cert  Ljava/security/cert/X509Certificate;
    Exceptions:
      throws java.security.cert.CertificateException
    MethodParameters:
              Name  Flags
      expectedName  
      cert          

  public static boolean match(java.lang.String, javax.security.auth.kerberos.KerberosPrincipal);
    descriptor: (Ljava/lang/String;Ljavax/security/auth/kerberos/KerberosPrincipal;)Z
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=3, args_size=2
        start local 0 // java.lang.String expectedName
        start local 1 // javax.security.auth.kerberos.KerberosPrincipal principal
         0: .line 105
            aload 1 /* principal */
            invokestatic sun.security.util.HostnameChecker.getServerName:(Ljavax/security/auth/kerberos/KerberosPrincipal;)Ljava/lang/String;
            astore 2 /* hostName */
        start local 2 // java.lang.String hostName
         1: .line 106
            aload 0 /* expectedName */
            aload 2 /* hostName */
            invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
            ireturn
        end local 2 // java.lang.String hostName
        end local 1 // javax.security.auth.kerberos.KerberosPrincipal principal
        end local 0 // java.lang.String expectedName
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0    2     0  expectedName  Ljava/lang/String;
            0    2     1     principal  Ljavax/security/auth/kerberos/KerberosPrincipal;
            1    2     2      hostName  Ljava/lang/String;
    MethodParameters:
              Name  Flags
      expectedName  
      principal     

  public static java.lang.String getServerName(javax.security.auth.kerberos.KerberosPrincipal);
    descriptor: (Ljavax/security/auth/kerberos/KerberosPrincipal;)Ljava/lang/String;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=4, locals=4, args_size=1
        start local 0 // javax.security.auth.kerberos.KerberosPrincipal principal
         0: .line 113
            aload 0 /* principal */
            ifnonnull 2
         1: .line 114
            aconst_null
            areturn
         2: .line 116
      StackMap locals:
      StackMap stack:
            aconst_null
            astore 1 /* hostName */
        start local 1 // java.lang.String hostName
         3: .line 119
            new sun.security.krb5.PrincipalName
            dup
            aload 0 /* principal */
            invokevirtual javax.security.auth.kerberos.KerberosPrincipal.getName:()Ljava/lang/String;
         4: .line 120
            iconst_3
         5: .line 119
            invokespecial sun.security.krb5.PrincipalName.<init>:(Ljava/lang/String;I)V
         6: .line 118
            astore 2 /* princName */
        start local 2 // sun.security.krb5.PrincipalName princName
         7: .line 121
            aload 2 /* princName */
            invokevirtual sun.security.krb5.PrincipalName.getNameStrings:()[Ljava/lang/String;
            astore 3 /* nameParts */
        start local 3 // java.lang.String[] nameParts
         8: .line 122
            aload 3 /* nameParts */
            arraylength
            iconst_2
            if_icmplt 12
         9: .line 123
            aload 3 /* nameParts */
            iconst_1
            aaload
            astore 1 /* hostName */
        end local 3 // java.lang.String[] nameParts
        end local 2 // sun.security.krb5.PrincipalName princName
        10: .line 125
            goto 12
      StackMap locals: javax.security.auth.kerberos.KerberosPrincipal java.lang.String
      StackMap stack: java.lang.Exception
        11: pop
        12: .line 128
      StackMap locals:
      StackMap stack:
            aload 1 /* hostName */
            areturn
        end local 1 // java.lang.String hostName
        end local 0 // javax.security.auth.kerberos.KerberosPrincipal principal
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   13     0  principal  Ljavax/security/auth/kerberos/KerberosPrincipal;
            3   13     1   hostName  Ljava/lang/String;
            7   10     2  princName  Lsun/security/krb5/PrincipalName;
            8   10     3  nameParts  [Ljava/lang/String;
      Exception table:
        from    to  target  type
           3    10      11  Class java.lang.Exception
    MethodParameters:
           Name  Flags
      principal  

  private static boolean isIpAddress(java.lang.String);
    descriptor: (Ljava/lang/String;)Z
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // java.lang.String name
         0: .line 141
            aload 0 /* name */
            invokestatic sun.net.util.IPAddressUtil.isIPv4LiteralAddress:(Ljava/lang/String;)Z
            ifne 2
         1: .line 142
            aload 0 /* name */
            invokestatic sun.net.util.IPAddressUtil.isIPv6LiteralAddress:(Ljava/lang/String;)Z
            ifeq 3
         2: .line 143
      StackMap locals:
      StackMap stack:
            iconst_1
            ireturn
         3: .line 145
      StackMap locals:
      StackMap stack:
            iconst_0
            ireturn
        end local 0 // java.lang.String name
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  name  Ljava/lang/String;
    MethodParameters:
      Name  Flags
      name  

  private static void matchIP(java.lang.String, java.security.cert.X509Certificate);
    descriptor: (Ljava/lang/String;Ljava/security/cert/X509Certificate;)V
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=5, locals=6, args_size=2
        start local 0 // java.lang.String expectedIP
        start local 1 // java.security.cert.X509Certificate cert
         0: .line 159
            aload 1 /* cert */
            invokevirtual java.security.cert.X509Certificate.getSubjectAlternativeNames:()Ljava/util/Collection;
            astore 2 /* subjAltNames */
        start local 2 // java.util.Collection subjAltNames
         1: .line 160
            aload 2 /* subjAltNames */
            ifnonnull 5
         2: .line 161
            new java.security.cert.CertificateException
            dup
         3: .line 162
            ldc "No subject alternative names present"
         4: .line 161
            invokespecial java.security.cert.CertificateException.<init>:(Ljava/lang/String;)V
            athrow
         5: .line 164
      StackMap locals: java.util.Collection
      StackMap stack:
            aload 2 /* subjAltNames */
            invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
            astore 4
            goto 11
      StackMap locals: java.lang.String java.security.cert.X509Certificate java.util.Collection top java.util.Iterator
      StackMap stack:
         6: aload 4
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast java.util.List
            astore 3 /* next */
        start local 3 // java.util.List next
         7: .line 166
            aload 3 /* next */
            iconst_0
            invokeinterface java.util.List.get:(I)Ljava/lang/Object;
            checkcast java.lang.Integer
            invokevirtual java.lang.Integer.intValue:()I
            bipush 7
            if_icmpne 11
         8: .line 167
            aload 3 /* next */
            iconst_1
            invokeinterface java.util.List.get:(I)Ljava/lang/Object;
            checkcast java.lang.String
            astore 5 /* ipAddress */
        start local 5 // java.lang.String ipAddress
         9: .line 168
            aload 0 /* expectedIP */
            aload 5 /* ipAddress */
            invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
            ifeq 11
        10: .line 169
            return
        end local 5 // java.lang.String ipAddress
        end local 3 // java.util.List next
        11: .line 164
      StackMap locals:
      StackMap stack:
            aload 4
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 6
        12: .line 173
            new java.security.cert.CertificateException
            dup
            new java.lang.StringBuilder
            dup
            ldc "No subject alternative names matching IP address "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
        13: .line 175
            aload 0 /* expectedIP */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            ldc " found"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
        14: .line 173
            invokespecial java.security.cert.CertificateException.<init>:(Ljava/lang/String;)V
            athrow
        end local 2 // java.util.Collection subjAltNames
        end local 1 // java.security.cert.X509Certificate cert
        end local 0 // java.lang.String expectedIP
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0   15     0    expectedIP  Ljava/lang/String;
            0   15     1          cert  Ljava/security/cert/X509Certificate;
            1   15     2  subjAltNames  Ljava/util/Collection<Ljava/util/List<*>;>;
            7   11     3          next  Ljava/util/List<*>;
            9   11     5     ipAddress  Ljava/lang/String;
    Exceptions:
      throws java.security.cert.CertificateException
    MethodParameters:
            Name  Flags
      expectedIP  
      cert        

  private static void checkHostName(java.lang.String);
    descriptor: (Ljava/lang/String;)V
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=3, locals=2, args_size=1
        start local 0 // java.lang.String hostname
         0: .line 184
            aload 0 /* hostname */
            ifnonnull 2
         1: .line 185
            new java.lang.NullPointerException
            dup
            ldc "Server name value of host_name cannot be null"
            invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 188
      StackMap locals:
      StackMap stack:
            aload 0 /* hostname */
            iconst_2
            invokestatic java.net.IDN.toASCII:(Ljava/lang/String;I)Ljava/lang/String;
            astore 0 /* hostname */
         3: .line 190
            aload 0 /* hostname */
            ldc "US-ASCII"
            invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
            invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
            astore 1 /* encoded */
        start local 1 // byte[] encoded
         4: .line 191
            aload 1 /* encoded */
            ifnonnull 8
         5: .line 192
            new java.lang.NullPointerException
            dup
         6: .line 193
            ldc "Server name encoded value cannot be null"
         7: .line 192
            invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
            athrow
         8: .line 197
      StackMap locals: byte[]
      StackMap stack:
            aload 0 /* hostname */
            invokevirtual java.lang.String.isEmpty:()Z
            ifeq 12
         9: .line 198
            new java.lang.IllegalArgumentException
            dup
        10: .line 199
            ldc "Server name value of host_name cannot be empty"
        11: .line 198
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
        12: .line 202
      StackMap locals:
      StackMap stack:
            aload 0 /* hostname */
            ldc "."
            invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
            ifeq 16
        13: .line 203
            new java.lang.IllegalArgumentException
            dup
        14: .line 204
            ldc "Server name value of host_name cannot have the trailing dot"
        15: .line 203
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
        16: .line 206
      StackMap locals:
      StackMap stack:
            return
        end local 1 // byte[] encoded
        end local 0 // java.lang.String hostname
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   17     0  hostname  Ljava/lang/String;
            4   17     1   encoded  [B
    Exceptions:
      throws java.lang.IllegalArgumentException
    MethodParameters:
          Name  Flags
      hostname  

  private void matchDNS(java.lang.String, java.security.cert.X509Certificate);
    descriptor: (Ljava/lang/String;Ljava/security/cert/X509Certificate;)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=5, locals=8, args_size=3
        start local 0 // sun.security.util.HostnameChecker this
        start local 1 // java.lang.String expectedName
        start local 2 // java.security.cert.X509Certificate cert
         0: .line 228
            aload 1 /* expectedName */
            invokestatic sun.security.util.HostnameChecker.checkHostName:(Ljava/lang/String;)V
         1: .line 229
            goto 6
      StackMap locals:
      StackMap stack: java.lang.IllegalArgumentException
         2: astore 3 /* iae */
        start local 3 // java.lang.IllegalArgumentException iae
         3: .line 230
            new java.security.cert.CertificateException
            dup
         4: .line 231
            new java.lang.StringBuilder
            dup
            ldc "Illegal given domain name: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 1 /* expectedName */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            aload 3 /* iae */
         5: .line 230
            invokespecial java.security.cert.CertificateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 3 // java.lang.IllegalArgumentException iae
         6: .line 234
      StackMap locals:
      StackMap stack:
            aload 2 /* cert */
            invokevirtual java.security.cert.X509Certificate.getSubjectAlternativeNames:()Ljava/util/Collection;
            astore 3 /* subjAltNames */
        start local 3 // java.util.Collection subjAltNames
         7: .line 235
            aload 3 /* subjAltNames */
            ifnull 21
         8: .line 236
            iconst_0
            istore 4 /* foundDNS */
        start local 4 // boolean foundDNS
         9: .line 237
            aload 3 /* subjAltNames */
            invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
            astore 6
            goto 16
      StackMap locals: sun.security.util.HostnameChecker java.lang.String java.security.cert.X509Certificate java.util.Collection int top java.util.Iterator
      StackMap stack:
        10: aload 6
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast java.util.List
            astore 5 /* next */
        start local 5 // java.util.List next
        11: .line 238
            aload 5 /* next */
            iconst_0
            invokeinterface java.util.List.get:(I)Ljava/lang/Object;
            checkcast java.lang.Integer
            invokevirtual java.lang.Integer.intValue:()I
            iconst_2
            if_icmpne 16
        12: .line 239
            iconst_1
            istore 4 /* foundDNS */
        13: .line 240
            aload 5 /* next */
            iconst_1
            invokeinterface java.util.List.get:(I)Ljava/lang/Object;
            checkcast java.lang.String
            astore 7 /* dnsName */
        start local 7 // java.lang.String dnsName
        14: .line 241
            aload 0 /* this */
            aload 1 /* expectedName */
            aload 7 /* dnsName */
            invokevirtual sun.security.util.HostnameChecker.isMatched:(Ljava/lang/String;Ljava/lang/String;)Z
            ifeq 16
        15: .line 242
            return
        end local 7 // java.lang.String dnsName
        end local 5 // java.util.List next
        16: .line 237
      StackMap locals:
      StackMap stack:
            aload 6
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 10
        17: .line 246
            iload 4 /* foundDNS */
            ifeq 21
        18: .line 249
            new java.security.cert.CertificateException
            dup
            new java.lang.StringBuilder
            dup
            ldc "No subject alternative DNS name matching "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
        19: .line 250
            aload 1 /* expectedName */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            ldc " found."
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
        20: .line 249
            invokespecial java.security.cert.CertificateException.<init>:(Ljava/lang/String;)V
            athrow
        end local 4 // boolean foundDNS
        21: .line 253
      StackMap locals: sun.security.util.HostnameChecker java.lang.String java.security.cert.X509Certificate java.util.Collection
      StackMap stack:
            aload 2 /* cert */
            invokestatic sun.security.util.HostnameChecker.getSubjectX500Name:(Ljava/security/cert/X509Certificate;)Lsun/security/x509/X500Name;
            astore 4 /* subjectName */
        start local 4 // sun.security.x509.X500Name subjectName
        22: .line 254
            aload 4 /* subjectName */
        23: .line 255
            getstatic sun.security.x509.X500Name.commonName_oid:Lsun/security/util/ObjectIdentifier;
        24: .line 254
            invokevirtual sun.security.x509.X500Name.findMostSpecificAttribute:(Lsun/security/util/ObjectIdentifier;)Lsun/security/util/DerValue;
            astore 5 /* derValue */
        start local 5 // sun.security.util.DerValue derValue
        25: .line 256
            aload 5 /* derValue */
            ifnull 29
        26: .line 258
            aload 0 /* this */
            aload 1 /* expectedName */
            aload 5 /* derValue */
            invokevirtual sun.security.util.DerValue.getAsString:()Ljava/lang/String;
            invokevirtual sun.security.util.HostnameChecker.isMatched:(Ljava/lang/String;Ljava/lang/String;)Z
            ifeq 29
        27: .line 259
            return
        28: .line 261
      StackMap locals: sun.security.util.HostnameChecker java.lang.String java.security.cert.X509Certificate java.util.Collection sun.security.x509.X500Name sun.security.util.DerValue
      StackMap stack: java.io.IOException
            pop
        29: .line 265
      StackMap locals:
      StackMap stack:
            new java.lang.StringBuilder
            dup
            ldc "No name matching "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 1 /* expectedName */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            ldc " found"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            astore 6 /* msg */
        start local 6 // java.lang.String msg
        30: .line 266
            new java.security.cert.CertificateException
            dup
            aload 6 /* msg */
            invokespecial java.security.cert.CertificateException.<init>:(Ljava/lang/String;)V
            athrow
        end local 6 // java.lang.String msg
        end local 5 // sun.security.util.DerValue derValue
        end local 4 // sun.security.x509.X500Name subjectName
        end local 3 // java.util.Collection subjAltNames
        end local 2 // java.security.cert.X509Certificate cert
        end local 1 // java.lang.String expectedName
        end local 0 // sun.security.util.HostnameChecker this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0   31     0          this  Lsun/security/util/HostnameChecker;
            0   31     1  expectedName  Ljava/lang/String;
            0   31     2          cert  Ljava/security/cert/X509Certificate;
            3    6     3           iae  Ljava/lang/IllegalArgumentException;
            7   31     3  subjAltNames  Ljava/util/Collection<Ljava/util/List<*>;>;
            9   21     4      foundDNS  Z
           11   16     5          next  Ljava/util/List<*>;
           14   16     7       dnsName  Ljava/lang/String;
           22   31     4   subjectName  Lsun/security/x509/X500Name;
           25   31     5      derValue  Lsun/security/util/DerValue;
           30   31     6           msg  Ljava/lang/String;
      Exception table:
        from    to  target  type
           0     1       2  Class java.lang.IllegalArgumentException
          26    27      28  Class java.io.IOException
    Exceptions:
      throws java.security.cert.CertificateException
    MethodParameters:
              Name  Flags
      expectedName  
      cert          

  public static sun.security.x509.X500Name getSubjectX500Name(java.security.cert.X509Certificate);
    descriptor: (Ljava/security/cert/X509Certificate;)Lsun/security/x509/X500Name;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=3, args_size=1
        start local 0 // java.security.cert.X509Certificate cert
         0: .line 280
            aload 0 /* cert */
            invokevirtual java.security.cert.X509Certificate.getSubjectDN:()Ljava/security/Principal;
            astore 1 /* subjectDN */
        start local 1 // java.security.Principal subjectDN
         1: .line 281
            aload 1 /* subjectDN */
            instanceof sun.security.x509.X500Name
            ifeq 4
         2: .line 282
            aload 1 /* subjectDN */
            checkcast sun.security.x509.X500Name
         3: areturn
         4: .line 284
      StackMap locals: java.security.Principal
      StackMap stack:
            aload 0 /* cert */
            invokevirtual java.security.cert.X509Certificate.getSubjectX500Principal:()Ljavax/security/auth/x500/X500Principal;
            astore 2 /* subjectX500 */
        start local 2 // javax.security.auth.x500.X500Principal subjectX500
         5: .line 285
            new sun.security.x509.X500Name
            dup
            aload 2 /* subjectX500 */
            invokevirtual javax.security.auth.x500.X500Principal.getEncoded:()[B
            invokespecial sun.security.x509.X500Name.<init>:([B)V
         6: areturn
        end local 2 // javax.security.auth.x500.X500Principal subjectX500
        end local 1 // java.security.Principal subjectDN
         7: .line 287
      StackMap locals: java.security.cert.X509Certificate
      StackMap stack: java.io.IOException
            astore 1 /* e */
        start local 1 // java.io.IOException e
         8: .line 289
            new java.security.cert.CertificateParsingException
            dup
            invokespecial java.security.cert.CertificateParsingException.<init>:()V
            aload 1 /* e */
            invokevirtual java.security.cert.CertificateParsingException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
         9: .line 288
            checkcast java.security.cert.CertificateParsingException
            athrow
        end local 1 // java.io.IOException e
        end local 0 // java.security.cert.X509Certificate cert
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0   10     0         cert  Ljava/security/cert/X509Certificate;
            1    7     1    subjectDN  Ljava/security/Principal;
            5    7     2  subjectX500  Ljavax/security/auth/x500/X500Principal;
            8   10     1            e  Ljava/io/IOException;
      Exception table:
        from    to  target  type
           0     3       7  Class java.io.IOException
           4     6       7  Class java.io.IOException
    Exceptions:
      throws java.security.cert.CertificateParsingException
    MethodParameters:
      Name  Flags
      cert  

  private boolean isMatched(java.lang.String, java.lang.String);
    descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=3, args_size=3
        start local 0 // sun.security.util.HostnameChecker this
        start local 1 // java.lang.String name
        start local 2 // java.lang.String template
         0: .line 311
            aload 2 /* template */
            bipush 42
            bipush 120
            invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
            invokestatic sun.security.util.HostnameChecker.checkHostName:(Ljava/lang/String;)V
         1: .line 312
            goto 4
      StackMap locals:
      StackMap stack: java.lang.IllegalArgumentException
         2: pop
         3: .line 314
            iconst_0
            ireturn
         4: .line 317
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.security.util.HostnameChecker.checkType:B
            iconst_1
            if_icmpne 6
         5: .line 318
            aload 1 /* name */
            aload 2 /* template */
            invokestatic sun.security.util.HostnameChecker.matchAllWildcards:(Ljava/lang/String;Ljava/lang/String;)Z
            ireturn
         6: .line 319
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.security.util.HostnameChecker.checkType:B
            iconst_2
            if_icmpne 8
         7: .line 320
            aload 1 /* name */
            aload 2 /* template */
            invokestatic sun.security.util.HostnameChecker.matchLeftmostWildcard:(Ljava/lang/String;Ljava/lang/String;)Z
            ireturn
         8: .line 322
      StackMap locals:
      StackMap stack:
            iconst_0
            ireturn
        end local 2 // java.lang.String template
        end local 1 // java.lang.String name
        end local 0 // sun.security.util.HostnameChecker this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    9     0      this  Lsun/security/util/HostnameChecker;
            0    9     1      name  Ljava/lang/String;
            0    9     2  template  Ljava/lang/String;
      Exception table:
        from    to  target  type
           0     1       2  Class java.lang.IllegalArgumentException
    MethodParameters:
          Name  Flags
      name      
      template  

  private static boolean matchAllWildcards(java.lang.String, java.lang.String);
    descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=4, args_size=2
        start local 0 // java.lang.String name
        start local 1 // java.lang.String template
         0: .line 339
            aload 0 /* name */
            invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
            astore 0 /* name */
         1: .line 340
            aload 1 /* template */
            invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
            astore 1 /* template */
         2: .line 341
            new java.util.StringTokenizer
            dup
            aload 0 /* name */
            ldc "."
            invokespecial java.util.StringTokenizer.<init>:(Ljava/lang/String;Ljava/lang/String;)V
            astore 2 /* nameSt */
        start local 2 // java.util.StringTokenizer nameSt
         3: .line 342
            new java.util.StringTokenizer
            dup
            aload 1 /* template */
            ldc "."
            invokespecial java.util.StringTokenizer.<init>:(Ljava/lang/String;Ljava/lang/String;)V
            astore 3 /* templateSt */
        start local 3 // java.util.StringTokenizer templateSt
         4: .line 344
            aload 2 /* nameSt */
            invokevirtual java.util.StringTokenizer.countTokens:()I
            aload 3 /* templateSt */
            invokevirtual java.util.StringTokenizer.countTokens:()I
            if_icmpeq 11
         5: .line 345
            iconst_0
            ireturn
         6: .line 349
      StackMap locals: java.util.StringTokenizer java.util.StringTokenizer
      StackMap stack:
            aload 2 /* nameSt */
            invokevirtual java.util.StringTokenizer.nextToken:()Ljava/lang/String;
         7: .line 350
            aload 3 /* templateSt */
            invokevirtual java.util.StringTokenizer.nextToken:()Ljava/lang/String;
         8: .line 349
            invokestatic sun.security.util.HostnameChecker.matchWildCards:(Ljava/lang/String;Ljava/lang/String;)Z
         9: .line 350
            ifne 11
        10: .line 351
            iconst_0
            ireturn
        11: .line 348
      StackMap locals:
      StackMap stack:
            aload 2 /* nameSt */
            invokevirtual java.util.StringTokenizer.hasMoreTokens:()Z
            ifne 6
        12: .line 354
            iconst_1
            ireturn
        end local 3 // java.util.StringTokenizer templateSt
        end local 2 // java.util.StringTokenizer nameSt
        end local 1 // java.lang.String template
        end local 0 // java.lang.String name
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0   13     0        name  Ljava/lang/String;
            0   13     1    template  Ljava/lang/String;
            3   13     2      nameSt  Ljava/util/StringTokenizer;
            4   13     3  templateSt  Ljava/util/StringTokenizer;
    MethodParameters:
          Name  Flags
      name      
      template  

  private static boolean matchLeftmostWildcard(java.lang.String, java.lang.String);
    descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=4, args_size=2
        start local 0 // java.lang.String name
        start local 1 // java.lang.String template
         0: .line 369
            aload 0 /* name */
            invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
            astore 0 /* name */
         1: .line 370
            aload 1 /* template */
            invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
            astore 1 /* template */
         2: .line 373
            aload 1 /* template */
            ldc "."
            invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
            istore 2 /* templateIdx */
        start local 2 // int templateIdx
         3: .line 374
            aload 0 /* name */
            ldc "."
            invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
            istore 3 /* nameIdx */
        start local 3 // int nameIdx
         4: .line 376
            iload 2 /* templateIdx */
            iconst_m1
            if_icmpne 6
         5: .line 377
            aload 1 /* template */
            invokevirtual java.lang.String.length:()I
            istore 2 /* templateIdx */
         6: .line 378
      StackMap locals: int int
      StackMap stack:
            iload 3 /* nameIdx */
            iconst_m1
            if_icmpne 8
         7: .line 379
            aload 0 /* name */
            invokevirtual java.lang.String.length:()I
            istore 3 /* nameIdx */
         8: .line 381
      StackMap locals:
      StackMap stack:
            aload 0 /* name */
            iconst_0
            iload 3 /* nameIdx */
            invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
         9: .line 382
            aload 1 /* template */
            iconst_0
            iload 2 /* templateIdx */
            invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
        10: .line 381
            invokestatic sun.security.util.HostnameChecker.matchWildCards:(Ljava/lang/String;Ljava/lang/String;)Z
        11: .line 382
            ifeq 15
        12: .line 385
            aload 1 /* template */
            iload 2 /* templateIdx */
            invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
        13: .line 386
            aload 0 /* name */
            iload 3 /* nameIdx */
            invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
        14: .line 385
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ireturn
        15: .line 388
      StackMap locals:
      StackMap stack:
            iconst_0
            ireturn
        end local 3 // int nameIdx
        end local 2 // int templateIdx
        end local 1 // java.lang.String template
        end local 0 // java.lang.String name
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0   16     0         name  Ljava/lang/String;
            0   16     1     template  Ljava/lang/String;
            3   16     2  templateIdx  I
            4   16     3      nameIdx  I
    MethodParameters:
          Name  Flags
      name      
      template  

  private static boolean matchWildCards(java.lang.String, java.lang.String);
    descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=3, locals=7, args_size=2
        start local 0 // java.lang.String name
        start local 1 // java.lang.String template
         0: .line 399
            aload 1 /* template */
            ldc "*"
            invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
            istore 2 /* wildcardIdx */
        start local 2 // int wildcardIdx
         1: .line 400
            iload 2 /* wildcardIdx */
            iconst_m1
            if_icmpne 3
         2: .line 401
            aload 0 /* name */
            aload 1 /* template */
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ireturn
         3: .line 403
      StackMap locals: int
      StackMap stack:
            iconst_1
            istore 3 /* isBeginning */
        start local 3 // boolean isBeginning
         4: .line 404
            ldc ""
            astore 4 /* beforeWildcard */
        start local 4 // java.lang.String beforeWildcard
         5: .line 405
            aload 1 /* template */
            astore 5 /* afterWildcard */
        start local 5 // java.lang.String afterWildcard
         6: .line 407
            goto 16
         7: .line 410
      StackMap locals: int java.lang.String java.lang.String
      StackMap stack:
            aload 5 /* afterWildcard */
            iconst_0
            iload 2 /* wildcardIdx */
            invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
            astore 4 /* beforeWildcard */
         8: .line 411
            aload 5 /* afterWildcard */
            iload 2 /* wildcardIdx */
            iconst_1
            iadd
            invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
            astore 5 /* afterWildcard */
         9: .line 413
            aload 0 /* name */
            aload 4 /* beforeWildcard */
            invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
            istore 6 /* beforeStartIdx */
        start local 6 // int beforeStartIdx
        10: .line 414
            iload 6 /* beforeStartIdx */
            iconst_m1
            if_icmpeq 12
        11: .line 415
            iload 3 /* isBeginning */
            ifeq 13
            iload 6 /* beforeStartIdx */
            ifeq 13
        12: .line 416
      StackMap locals: int
      StackMap stack:
            iconst_0
            ireturn
        13: .line 418
      StackMap locals:
      StackMap stack:
            iconst_0
            istore 3 /* isBeginning */
        14: .line 421
            aload 0 /* name */
            iload 6 /* beforeStartIdx */
            aload 4 /* beforeWildcard */
            invokevirtual java.lang.String.length:()I
            iadd
            invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
            astore 0 /* name */
        15: .line 422
            aload 5 /* afterWildcard */
            ldc "*"
            invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
            istore 2 /* wildcardIdx */
        end local 6 // int beforeStartIdx
        16: .line 407
      StackMap locals:
      StackMap stack:
            iload 2 /* wildcardIdx */
            iconst_m1
            if_icmpne 7
        17: .line 424
            aload 0 /* name */
            aload 5 /* afterWildcard */
            invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
            ireturn
        end local 5 // java.lang.String afterWildcard
        end local 4 // java.lang.String beforeWildcard
        end local 3 // boolean isBeginning
        end local 2 // int wildcardIdx
        end local 1 // java.lang.String template
        end local 0 // java.lang.String name
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0   18     0            name  Ljava/lang/String;
            0   18     1        template  Ljava/lang/String;
            1   18     2     wildcardIdx  I
            4   18     3     isBeginning  Z
            5   18     4  beforeWildcard  Ljava/lang/String;
            6   18     5   afterWildcard  Ljava/lang/String;
           10   16     6  beforeStartIdx  I
    MethodParameters:
          Name  Flags
      name      
      template  
}
SourceFile: "HostnameChecker.java"