public abstract class com.sun.net.httpserver.BasicAuthenticator extends com.sun.net.httpserver.Authenticator
  minor version: 0
  major version: 59
  flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
  this_class: com.sun.net.httpserver.BasicAuthenticator
  super_class: com.sun.net.httpserver.Authenticator
{
  protected final java.lang.String realm;
    descriptor: Ljava/lang/String;
    flags: (0x0014) ACC_PROTECTED, ACC_FINAL

  private final java.nio.charset.Charset charset;
    descriptor: Ljava/nio/charset/Charset;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final boolean isUTF8;
    descriptor: Z
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  public void <init>(java.lang.String);
    descriptor: (Ljava/lang/String;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // com.sun.net.httpserver.BasicAuthenticator this
        start local 1 // java.lang.String realm
         0: .line 57
            aload 0 /* this */
            aload 1 /* realm */
            invokestatic java.nio.charset.Charset.defaultCharset:()Ljava/nio/charset/Charset;
            invokespecial com.sun.net.httpserver.BasicAuthenticator.<init>:(Ljava/lang/String;Ljava/nio/charset/Charset;)V
         1: .line 58
            return
        end local 1 // java.lang.String realm
        end local 0 // com.sun.net.httpserver.BasicAuthenticator this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    2     0   this  Lcom/sun/net/httpserver/BasicAuthenticator;
            0    2     1  realm  Ljava/lang/String;
    MethodParameters:
       Name  Flags
      realm  

  public void <init>(java.lang.String, java.nio.charset.Charset);
    descriptor: (Ljava/lang/String;Ljava/nio/charset/Charset;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=3
        start local 0 // com.sun.net.httpserver.BasicAuthenticator this
        start local 1 // java.lang.String realm
        start local 2 // java.nio.charset.Charset charset
         0: .line 74
            aload 0 /* this */
            invokespecial com.sun.net.httpserver.Authenticator.<init>:()V
         1: .line 75
            aload 2 /* charset */
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
            pop
         2: .line 76
            aload 1 /* realm */
            invokevirtual java.lang.String.isEmpty:()Z
            ifeq 4
         3: .line 77
            new java.lang.IllegalArgumentException
            dup
            ldc "realm must not be empty"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         4: .line 78
      StackMap locals: com.sun.net.httpserver.BasicAuthenticator java.lang.String java.nio.charset.Charset
      StackMap stack:
            aload 0 /* this */
            aload 1 /* realm */
            putfield com.sun.net.httpserver.BasicAuthenticator.realm:Ljava/lang/String;
         5: .line 79
            aload 0 /* this */
            aload 2 /* charset */
            putfield com.sun.net.httpserver.BasicAuthenticator.charset:Ljava/nio/charset/Charset;
         6: .line 80
            aload 0 /* this */
            aload 2 /* charset */
            getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
            invokevirtual java.nio.charset.Charset.equals:(Ljava/lang/Object;)Z
            putfield com.sun.net.httpserver.BasicAuthenticator.isUTF8:Z
         7: .line 81
            return
        end local 2 // java.nio.charset.Charset charset
        end local 1 // java.lang.String realm
        end local 0 // com.sun.net.httpserver.BasicAuthenticator this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    8     0     this  Lcom/sun/net/httpserver/BasicAuthenticator;
            0    8     1    realm  Ljava/lang/String;
            0    8     2  charset  Ljava/nio/charset/Charset;
    MethodParameters:
         Name  Flags
      realm    
      charset  

  public java.lang.String getRealm();
    descriptor: ()Ljava/lang/String;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.sun.net.httpserver.BasicAuthenticator this
         0: .line 89
            aload 0 /* this */
            getfield com.sun.net.httpserver.BasicAuthenticator.realm:Ljava/lang/String;
            areturn
        end local 0 // com.sun.net.httpserver.BasicAuthenticator this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/sun/net/httpserver/BasicAuthenticator;

  public com.sun.net.httpserver.Authenticator$Result authenticate(com.sun.net.httpserver.HttpExchange);
    descriptor: (Lcom/sun/net/httpserver/HttpExchange;)Lcom/sun/net/httpserver/Authenticator$Result;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=10, args_size=2
        start local 0 // com.sun.net.httpserver.BasicAuthenticator this
        start local 1 // com.sun.net.httpserver.HttpExchange t
         0: .line 94
            aload 1 /* t */
            invokevirtual com.sun.net.httpserver.HttpExchange.getRequestHeaders:()Lcom/sun/net/httpserver/Headers;
            astore 2 /* rmap */
        start local 2 // com.sun.net.httpserver.Headers rmap
         1: .line 98
            aload 2 /* rmap */
            ldc "Authorization"
            invokevirtual com.sun.net.httpserver.Headers.getFirst:(Ljava/lang/String;)Ljava/lang/String;
            astore 3 /* auth */
        start local 3 // java.lang.String auth
         2: .line 99
            aload 3 /* auth */
            ifnonnull 5
         3: .line 100
            aload 0 /* this */
            aload 1 /* t */
            invokevirtual com.sun.net.httpserver.BasicAuthenticator.setAuthHeader:(Lcom/sun/net/httpserver/HttpExchange;)V
         4: .line 101
            new com.sun.net.httpserver.Authenticator$Retry
            dup
            sipush 401
            invokespecial com.sun.net.httpserver.Authenticator$Retry.<init>:(I)V
            areturn
         5: .line 103
      StackMap locals: com.sun.net.httpserver.Headers java.lang.String
      StackMap stack:
            aload 3 /* auth */
            bipush 32
            invokevirtual java.lang.String.indexOf:(I)I
            istore 4 /* sp */
        start local 4 // int sp
         6: .line 104
            iload 4 /* sp */
            iconst_m1
            if_icmpeq 7
            aload 3 /* auth */
            iconst_0
            iload 4 /* sp */
            invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
            ldc "Basic"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifne 8
         7: .line 105
      StackMap locals: int
      StackMap stack:
            new com.sun.net.httpserver.Authenticator$Failure
            dup
            sipush 401
            invokespecial com.sun.net.httpserver.Authenticator$Failure.<init>:(I)V
            areturn
         8: .line 107
      StackMap locals:
      StackMap stack:
            invokestatic java.util.Base64.getDecoder:()Ljava/util/Base64$Decoder;
            aload 3 /* auth */
            iload 4 /* sp */
            iconst_1
            iadd
            invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
            invokevirtual java.util.Base64$Decoder.decode:(Ljava/lang/String;)[B
            astore 5 /* b */
        start local 5 // byte[] b
         9: .line 108
            new java.lang.String
            dup
            aload 5 /* b */
            aload 0 /* this */
            getfield com.sun.net.httpserver.BasicAuthenticator.charset:Ljava/nio/charset/Charset;
            invokespecial java.lang.String.<init>:([BLjava/nio/charset/Charset;)V
            astore 6 /* userpass */
        start local 6 // java.lang.String userpass
        10: .line 109
            aload 6 /* userpass */
            bipush 58
            invokevirtual java.lang.String.indexOf:(I)I
            istore 7 /* colon */
        start local 7 // int colon
        11: .line 110
            aload 6 /* userpass */
            iconst_0
            iload 7 /* colon */
            invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
            astore 8 /* uname */
        start local 8 // java.lang.String uname
        12: .line 111
            aload 6 /* userpass */
            iload 7 /* colon */
            iconst_1
            iadd
            invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
            astore 9 /* pass */
        start local 9 // java.lang.String pass
        13: .line 113
            aload 0 /* this */
            aload 8 /* uname */
            aload 9 /* pass */
            invokevirtual com.sun.net.httpserver.BasicAuthenticator.checkCredentials:(Ljava/lang/String;Ljava/lang/String;)Z
            ifeq 19
        14: .line 114
            new com.sun.net.httpserver.Authenticator$Success
            dup
        15: .line 115
            new com.sun.net.httpserver.HttpPrincipal
            dup
        16: .line 116
            aload 8 /* uname */
            aload 0 /* this */
            getfield com.sun.net.httpserver.BasicAuthenticator.realm:Ljava/lang/String;
        17: .line 115
            invokespecial com.sun.net.httpserver.HttpPrincipal.<init>:(Ljava/lang/String;Ljava/lang/String;)V
        18: .line 114
            invokespecial com.sun.net.httpserver.Authenticator$Success.<init>:(Lcom/sun/net/httpserver/HttpPrincipal;)V
            areturn
        19: .line 121
      StackMap locals: com.sun.net.httpserver.BasicAuthenticator com.sun.net.httpserver.HttpExchange com.sun.net.httpserver.Headers java.lang.String int byte[] java.lang.String int java.lang.String java.lang.String
      StackMap stack:
            aload 0 /* this */
            aload 1 /* t */
            invokevirtual com.sun.net.httpserver.BasicAuthenticator.setAuthHeader:(Lcom/sun/net/httpserver/HttpExchange;)V
        20: .line 122
            new com.sun.net.httpserver.Authenticator$Failure
            dup
            sipush 401
            invokespecial com.sun.net.httpserver.Authenticator$Failure.<init>:(I)V
            areturn
        end local 9 // java.lang.String pass
        end local 8 // java.lang.String uname
        end local 7 // int colon
        end local 6 // java.lang.String userpass
        end local 5 // byte[] b
        end local 4 // int sp
        end local 3 // java.lang.String auth
        end local 2 // com.sun.net.httpserver.Headers rmap
        end local 1 // com.sun.net.httpserver.HttpExchange t
        end local 0 // com.sun.net.httpserver.BasicAuthenticator this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   21     0      this  Lcom/sun/net/httpserver/BasicAuthenticator;
            0   21     1         t  Lcom/sun/net/httpserver/HttpExchange;
            1   21     2      rmap  Lcom/sun/net/httpserver/Headers;
            2   21     3      auth  Ljava/lang/String;
            6   21     4        sp  I
            9   21     5         b  [B
           10   21     6  userpass  Ljava/lang/String;
           11   21     7     colon  I
           12   21     8     uname  Ljava/lang/String;
           13   21     9      pass  Ljava/lang/String;
    MethodParameters:
      Name  Flags
      t     

  private void setAuthHeader(com.sun.net.httpserver.HttpExchange);
    descriptor: (Lcom/sun/net/httpserver/HttpExchange;)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=4, args_size=2
        start local 0 // com.sun.net.httpserver.BasicAuthenticator this
        start local 1 // com.sun.net.httpserver.HttpExchange t
         0: .line 127
            aload 1 /* t */
            invokevirtual com.sun.net.httpserver.HttpExchange.getResponseHeaders:()Lcom/sun/net/httpserver/Headers;
            astore 2 /* map */
        start local 2 // com.sun.net.httpserver.Headers map
         1: .line 128
            new java.lang.StringBuilder
            dup
            ldc "Basic realm=\""
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* this */
            getfield com.sun.net.httpserver.BasicAuthenticator.realm:Ljava/lang/String;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            ldc "\""
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
         2: .line 129
            aload 0 /* this */
            getfield com.sun.net.httpserver.BasicAuthenticator.isUTF8:Z
            ifeq 3
            ldc ", charset=\"UTF-8\""
            goto 4
      StackMap locals: com.sun.net.httpserver.BasicAuthenticator com.sun.net.httpserver.HttpExchange com.sun.net.httpserver.Headers
      StackMap stack: java.lang.StringBuilder
         3: ldc ""
      StackMap locals: com.sun.net.httpserver.BasicAuthenticator com.sun.net.httpserver.HttpExchange com.sun.net.httpserver.Headers
      StackMap stack: java.lang.StringBuilder java.lang.String
         4: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
         5: .line 128
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            astore 3 /* authString */
        start local 3 // java.lang.String authString
         6: .line 130
            aload 2 /* map */
            ldc "WWW-Authenticate"
            aload 3 /* authString */
            invokevirtual com.sun.net.httpserver.Headers.set:(Ljava/lang/String;Ljava/lang/String;)V
         7: .line 131
            return
        end local 3 // java.lang.String authString
        end local 2 // com.sun.net.httpserver.Headers map
        end local 1 // com.sun.net.httpserver.HttpExchange t
        end local 0 // com.sun.net.httpserver.BasicAuthenticator this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    8     0        this  Lcom/sun/net/httpserver/BasicAuthenticator;
            0    8     1           t  Lcom/sun/net/httpserver/HttpExchange;
            1    8     2         map  Lcom/sun/net/httpserver/Headers;
            6    8     3  authString  Ljava/lang/String;
    MethodParameters:
      Name  Flags
      t     

  public abstract boolean checkCredentials(java.lang.String, java.lang.String);
    descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
    flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
    MethodParameters:
          Name  Flags
      username  
      password  
}
SourceFile: "BasicAuthenticator.java"
InnerClasses:
  public Failure = com.sun.net.httpserver.Authenticator$Failure of com.sun.net.httpserver.Authenticator
  public abstract Result = com.sun.net.httpserver.Authenticator$Result of com.sun.net.httpserver.Authenticator
  public Retry = com.sun.net.httpserver.Authenticator$Retry of com.sun.net.httpserver.Authenticator
  public Success = com.sun.net.httpserver.Authenticator$Success of com.sun.net.httpserver.Authenticator
  public Decoder = java.util.Base64$Decoder of java.util.Base64