public class sun.security.util.Password
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: sun.security.util.Password
  super_class: java.lang.Object
{
  private static volatile java.nio.charset.CharsetEncoder enc;
    descriptor: Ljava/nio/charset/CharsetEncoder;
    flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // sun.security.util.Password this
         0: .line 38
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // sun.security.util.Password this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lsun/security/util/Password;

  public static char[] readPassword(java.io.InputStream);
    descriptor: (Ljava/io/InputStream;)[C
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // java.io.InputStream in
         0: .line 41
            aload 0 /* in */
            iconst_0
            invokestatic sun.security.util.Password.readPassword:(Ljava/io/InputStream;Z)[C
            areturn
        end local 0 // java.io.InputStream in
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0    in  Ljava/io/InputStream;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      in    

  public static char[] readPassword(java.io.InputStream, boolean);
    descriptor: (Ljava/io/InputStream;Z)[C
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=5, locals=14, args_size=2
        start local 0 // java.io.InputStream in
        start local 1 // boolean isEchoOn
         0: .line 51
            aconst_null
            astore 2 /* consoleEntered */
        start local 2 // char[] consoleEntered
         1: .line 52
            aconst_null
            astore 3 /* consoleBytes */
        start local 3 // byte[] consoleBytes
         2: .line 56
            aconst_null
            astore 4 /* con */
        start local 4 // java.io.Console con
         3: .line 57
            iload 1 /* isEchoOn */
            ifne 13
            aload 0 /* in */
            getstatic java.lang.System.in:Ljava/io/InputStream;
            if_acmpne 13
            invokestatic java.lang.System.console:()Ljava/io/Console;
            dup
            astore 4 /* con */
            ifnull 13
         4: .line 58
            aload 4 /* con */
            invokevirtual java.io.Console.readPassword:()[C
            astore 2 /* consoleEntered */
         5: .line 61
            aload 2 /* consoleEntered */
            ifnull 11
            aload 2 /* consoleEntered */
            arraylength
            ifne 11
         6: .line 124
            aload 2 /* consoleEntered */
            ifnull 8
         7: .line 125
            aload 2 /* consoleEntered */
            bipush 32
            invokestatic java.util.Arrays.fill:([CC)V
         8: .line 127
      StackMap locals: char[] byte[] java.io.Console
      StackMap stack:
            aload 3 /* consoleBytes */
            ifnull 10
         9: .line 128
            aload 3 /* consoleBytes */
            iconst_0
            invokestatic java.util.Arrays.fill:([BB)V
        10: .line 62
      StackMap locals:
      StackMap stack:
            aconst_null
            areturn
        11: .line 64
      StackMap locals:
      StackMap stack:
            aload 2 /* consoleEntered */
            invokestatic sun.security.util.Password.convertToBytes:([C)[B
            astore 3 /* consoleBytes */
        12: .line 65
            new java.io.ByteArrayInputStream
            dup
            aload 3 /* consoleBytes */
            invokespecial java.io.ByteArrayInputStream.<init>:([B)V
            astore 0 /* in */
        13: .line 75
      StackMap locals:
      StackMap stack:
            sipush 128
            newarray 5
            dup
            astore 5 /* lineBuffer */
        start local 5 // char[] lineBuffer
        14: astore 6 /* buf */
        start local 6 // char[] buf
        15: .line 77
            aload 6 /* buf */
            arraylength
            istore 7 /* room */
        start local 7 // int room
        16: .line 78
            iconst_0
            istore 8 /* offset */
        start local 8 // int offset
        17: .line 81
            iconst_0
            istore 10 /* done */
        start local 10 // boolean done
        18: .line 82
            goto 38
        19: .line 83
      StackMap locals: java.io.InputStream int char[] byte[] java.io.Console char[] char[] int int top int
      StackMap stack:
            aload 0 /* in */
            invokevirtual java.io.InputStream.read:()I
            dup
            istore 9 /* c */
        start local 9 // int c
        20: lookupswitch { // 3
                   -1: 21
                   10: 21
                   13: 23
              default: 31
          }
        21: .line 86
      StackMap locals: java.io.InputStream int char[] byte[] java.io.Console char[] char[] int int int int
      StackMap stack:
            iconst_1
            istore 10 /* done */
        22: .line 87
            goto 38
        23: .line 90
      StackMap locals:
      StackMap stack:
            aload 0 /* in */
            invokevirtual java.io.InputStream.read:()I
            istore 11 /* c2 */
        start local 11 // int c2
        24: .line 91
            iload 11 /* c2 */
            bipush 10
            if_icmpeq 29
            iload 11 /* c2 */
            iconst_m1
            if_icmpeq 29
        25: .line 92
            aload 0 /* in */
            instanceof java.io.PushbackInputStream
            ifne 27
        26: .line 93
            new java.io.PushbackInputStream
            dup
            aload 0 /* in */
            invokespecial java.io.PushbackInputStream.<init>:(Ljava/io/InputStream;)V
            astore 0 /* in */
        27: .line 95
      StackMap locals: int
      StackMap stack:
            aload 0 /* in */
            checkcast java.io.PushbackInputStream
            iload 11 /* c2 */
            invokevirtual java.io.PushbackInputStream.unread:(I)V
        28: .line 96
            goto 31
        29: .line 97
      StackMap locals:
      StackMap stack:
            iconst_1
            istore 10 /* done */
        30: .line 98
            goto 38
        end local 11 // int c2
        31: .line 102
      StackMap locals:
      StackMap stack:
            iinc 7 /* room */ -1
            iload 7 /* room */
            ifge 37
        32: .line 103
            iload 8 /* offset */
            sipush 128
            iadd
            newarray 5
            astore 6 /* buf */
        33: .line 104
            aload 6 /* buf */
            arraylength
            iload 8 /* offset */
            isub
            iconst_1
            isub
            istore 7 /* room */
        34: .line 105
            aload 5 /* lineBuffer */
            iconst_0
            aload 6 /* buf */
            iconst_0
            iload 8 /* offset */
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
        35: .line 106
            aload 5 /* lineBuffer */
            bipush 32
            invokestatic java.util.Arrays.fill:([CC)V
        36: .line 107
            aload 6 /* buf */
            astore 5 /* lineBuffer */
        37: .line 109
      StackMap locals:
      StackMap stack:
            aload 6 /* buf */
            iload 8 /* offset */
            iinc 8 /* offset */ 1
            iload 9 /* c */
            i2c
            castore
        end local 9 // int c
        38: .line 82
      StackMap locals: java.io.InputStream int char[] byte[] java.io.Console char[] char[] int int top int
      StackMap stack:
            iload 10 /* done */
            ifeq 19
        39: .line 114
            iload 8 /* offset */
            ifne 45
        40: .line 124
            aload 2 /* consoleEntered */
            ifnull 42
        41: .line 125
            aload 2 /* consoleEntered */
            bipush 32
            invokestatic java.util.Arrays.fill:([CC)V
        42: .line 127
      StackMap locals:
      StackMap stack:
            aload 3 /* consoleBytes */
            ifnull 44
        43: .line 128
            aload 3 /* consoleBytes */
            iconst_0
            invokestatic java.util.Arrays.fill:([BB)V
        44: .line 115
      StackMap locals:
      StackMap stack:
            aconst_null
            areturn
        45: .line 118
      StackMap locals:
      StackMap stack:
            iload 8 /* offset */
            newarray 5
            astore 11 /* ret */
        start local 11 // char[] ret
        46: .line 119
            aload 6 /* buf */
            iconst_0
            aload 11 /* ret */
            iconst_0
            iload 8 /* offset */
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
        47: .line 120
            aload 6 /* buf */
            bipush 32
            invokestatic java.util.Arrays.fill:([CC)V
        48: .line 122
            aload 11 /* ret */
            astore 13
        49: .line 124
            aload 2 /* consoleEntered */
            ifnull 51
        50: .line 125
            aload 2 /* consoleEntered */
            bipush 32
            invokestatic java.util.Arrays.fill:([CC)V
        51: .line 127
      StackMap locals: java.io.InputStream int char[] byte[] java.io.Console char[] char[] int int top int char[] top char[]
      StackMap stack:
            aload 3 /* consoleBytes */
            ifnull 53
        52: .line 128
            aload 3 /* consoleBytes */
            iconst_0
            invokestatic java.util.Arrays.fill:([BB)V
        53: .line 122
      StackMap locals:
      StackMap stack:
            aload 13
            areturn
        end local 11 // char[] ret
        end local 10 // boolean done
        end local 8 // int offset
        end local 7 // int room
        end local 6 // char[] buf
        end local 5 // char[] lineBuffer
        end local 4 // java.io.Console con
        54: .line 123
      StackMap locals: java.io.InputStream int char[] byte[]
      StackMap stack: java.lang.Throwable
            astore 12
        55: .line 124
            aload 2 /* consoleEntered */
            ifnull 57
        56: .line 125
            aload 2 /* consoleEntered */
            bipush 32
            invokestatic java.util.Arrays.fill:([CC)V
        57: .line 127
      StackMap locals: java.io.InputStream int char[] byte[] top top top top top top top top java.lang.Throwable
      StackMap stack:
            aload 3 /* consoleBytes */
            ifnull 59
        58: .line 128
            aload 3 /* consoleBytes */
            iconst_0
            invokestatic java.util.Arrays.fill:([BB)V
        59: .line 130
      StackMap locals:
      StackMap stack:
            aload 12
            athrow
        end local 3 // byte[] consoleBytes
        end local 2 // char[] consoleEntered
        end local 1 // boolean isEchoOn
        end local 0 // java.io.InputStream in
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0   60     0              in  Ljava/io/InputStream;
            0   60     1        isEchoOn  Z
            1   60     2  consoleEntered  [C
            2   60     3    consoleBytes  [B
            3   54     4             con  Ljava/io/Console;
           14   54     5      lineBuffer  [C
           15   54     6             buf  [C
           16   54     7            room  I
           17   54     8          offset  I
           20   38     9               c  I
           18   54    10            done  Z
           24   31    11              c2  I
           46   54    11             ret  [C
      Exception table:
        from    to  target  type
           2     6      54  any
          11    40      54  any
          45    49      54  any
    Exceptions:
      throws java.io.IOException
    MethodParameters:
          Name  Flags
      in        
      isEchoOn  

  private static byte[] convertToBytes(char[]);
    descriptor: ([C)[B
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=4, args_size=1
        start local 0 // char[] pass
         0: .line 141
            getstatic sun.security.util.Password.enc:Ljava/nio/charset/CharsetEncoder;
            ifnonnull 12
         1: .line 142
            ldc Lsun/security/util/Password;
            dup
            astore 1
            monitorenter
         2: .line 143
            invokestatic jdk.internal.misc.SharedSecrets.getJavaIOAccess:()Ljdk/internal/misc/JavaIOAccess;
         3: .line 144
            invokeinterface jdk.internal.misc.JavaIOAccess.charset:()Ljava/nio/charset/Charset;
         4: .line 145
            invokevirtual java.nio.charset.Charset.newEncoder:()Ljava/nio/charset/CharsetEncoder;
         5: .line 146
            getstatic java.nio.charset.CodingErrorAction.REPLACE:Ljava/nio/charset/CodingErrorAction;
            invokevirtual java.nio.charset.CharsetEncoder.onMalformedInput:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
         6: .line 147
            getstatic java.nio.charset.CodingErrorAction.REPLACE:Ljava/nio/charset/CodingErrorAction;
            invokevirtual java.nio.charset.CharsetEncoder.onUnmappableCharacter:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
         7: .line 143
            putstatic sun.security.util.Password.enc:Ljava/nio/charset/CharsetEncoder;
         8: .line 142
            aload 1
            monitorexit
         9: goto 12
      StackMap locals: char[] java.lang.Class
      StackMap stack: java.lang.Throwable
        10: aload 1
            monitorexit
        11: athrow
        12: .line 150
      StackMap locals:
      StackMap stack:
            getstatic sun.security.util.Password.enc:Ljava/nio/charset/CharsetEncoder;
            invokevirtual java.nio.charset.CharsetEncoder.maxBytesPerChar:()F
            aload 0 /* pass */
            arraylength
            i2f
            fmul
            f2i
            newarray 8
            astore 1 /* ba */
        start local 1 // byte[] ba
        13: .line 151
            aload 1 /* ba */
            invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
            astore 2 /* bb */
        start local 2 // java.nio.ByteBuffer bb
        14: .line 152
            getstatic sun.security.util.Password.enc:Ljava/nio/charset/CharsetEncoder;
            dup
            astore 3
            monitorenter
        15: .line 153
            getstatic sun.security.util.Password.enc:Ljava/nio/charset/CharsetEncoder;
            invokevirtual java.nio.charset.CharsetEncoder.reset:()Ljava/nio/charset/CharsetEncoder;
            aload 0 /* pass */
            invokestatic java.nio.CharBuffer.wrap:([C)Ljava/nio/CharBuffer;
            aload 2 /* bb */
            iconst_1
            invokevirtual java.nio.charset.CharsetEncoder.encode:(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;Z)Ljava/nio/charset/CoderResult;
            pop
        16: .line 152
            aload 3
            monitorexit
        17: goto 20
      StackMap locals: char[] byte[] java.nio.ByteBuffer java.nio.charset.CharsetEncoder
      StackMap stack: java.lang.Throwable
        18: aload 3
            monitorexit
        19: athrow
        20: .line 155
      StackMap locals:
      StackMap stack:
            aload 2 /* bb */
            invokevirtual java.nio.ByteBuffer.position:()I
            aload 1 /* ba */
            arraylength
            if_icmpge 22
        21: .line 156
            aload 1 /* ba */
            aload 2 /* bb */
            invokevirtual java.nio.ByteBuffer.position:()I
            bipush 10
            bastore
        22: .line 158
      StackMap locals:
      StackMap stack:
            aload 1 /* ba */
            areturn
        end local 2 // java.nio.ByteBuffer bb
        end local 1 // byte[] ba
        end local 0 // char[] pass
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   23     0  pass  [C
           13   23     1    ba  [B
           14   23     2    bb  Ljava/nio/ByteBuffer;
      Exception table:
        from    to  target  type
           2     9      10  any
          10    11      10  any
          15    17      18  any
          18    19      18  any
    MethodParameters:
      Name  Flags
      pass  
}
SourceFile: "Password.java"