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 37
            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 40
            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 50
            aconst_null
            astore 2 /* consoleEntered */
        start local 2 // char[] consoleEntered
         1: .line 51
            aconst_null
            astore 3 /* consoleBytes */
        start local 3 // byte[] consoleBytes
         2: .line 55
            aconst_null
            astore 4 /* con */
        start local 4 // java.io.Console con
         3: .line 56
            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 57
            aload 4 /* con */
            invokevirtual java.io.Console.readPassword:()[C
            astore 2 /* consoleEntered */
         5: .line 60
            aload 2 /* consoleEntered */
            ifnull 11
            aload 2 /* consoleEntered */
            arraylength
            ifne 11
         6: .line 123
            aload 2 /* consoleEntered */
            ifnull 8
         7: .line 124
            aload 2 /* consoleEntered */
            bipush 32
            invokestatic java.util.Arrays.fill:([CC)V
         8: .line 126
      StackMap locals: char[] byte[] java.io.Console
      StackMap stack:
            aload 3 /* consoleBytes */
            ifnull 10
         9: .line 127
            aload 3 /* consoleBytes */
            iconst_0
            invokestatic java.util.Arrays.fill:([BB)V
        10: .line 61
      StackMap locals:
      StackMap stack:
            aconst_null
            areturn
        11: .line 63
      StackMap locals:
      StackMap stack:
            aload 2 /* consoleEntered */
            invokestatic sun.security.util.Password.convertToBytes:([C)[B
            astore 3 /* consoleBytes */
        12: .line 64
            new java.io.ByteArrayInputStream
            dup
            aload 3 /* consoleBytes */
            invokespecial java.io.ByteArrayInputStream.<init>:([B)V
            astore 0 /* in */
        13: .line 74
      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 76
            aload 6 /* buf */
            arraylength
            istore 7 /* room */
        start local 7 // int room
        16: .line 77
            iconst_0
            istore 8 /* offset */
        start local 8 // int offset
        17: .line 80
            iconst_0
            istore 10 /* done */
        start local 10 // boolean done
        18: .line 81
            goto 38
        19: .line 82
      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 85
      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 86
            goto 38
        23: .line 89
      StackMap locals:
      StackMap stack:
            aload 0 /* in */
            invokevirtual java.io.InputStream.read:()I
            istore 11 /* c2 */
        start local 11 // int c2
        24: .line 90
            iload 11 /* c2 */
            bipush 10
            if_icmpeq 29
            iload 11 /* c2 */
            iconst_m1
            if_icmpeq 29
        25: .line 91
            aload 0 /* in */
            instanceof java.io.PushbackInputStream
            ifne 27
        26: .line 92
            new java.io.PushbackInputStream
            dup
            aload 0 /* in */
            invokespecial java.io.PushbackInputStream.<init>:(Ljava/io/InputStream;)V
            astore 0 /* in */
        27: .line 94
      StackMap locals: int
      StackMap stack:
            aload 0 /* in */
            checkcast java.io.PushbackInputStream
            iload 11 /* c2 */
            invokevirtual java.io.PushbackInputStream.unread:(I)V
        28: .line 95
            goto 31
        29: .line 96
      StackMap locals:
      StackMap stack:
            iconst_1
            istore 10 /* done */
        30: .line 97
            goto 38
        end local 11 // int c2
        31: .line 101
      StackMap locals:
      StackMap stack:
            iinc 7 /* room */ -1
            iload 7 /* room */
            ifge 37
        32: .line 102
            iload 8 /* offset */
            sipush 128
            iadd
            newarray 5
            astore 6 /* buf */
        33: .line 103
            aload 6 /* buf */
            arraylength
            iload 8 /* offset */
            isub
            iconst_1
            isub
            istore 7 /* room */
        34: .line 104
            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 105
            aload 5 /* lineBuffer */
            bipush 32
            invokestatic java.util.Arrays.fill:([CC)V
        36: .line 106
            aload 6 /* buf */
            astore 5 /* lineBuffer */
        37: .line 108
      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 81
      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 113
            iload 8 /* offset */
            ifne 45
        40: .line 123
            aload 2 /* consoleEntered */
            ifnull 42
        41: .line 124
            aload 2 /* consoleEntered */
            bipush 32
            invokestatic java.util.Arrays.fill:([CC)V
        42: .line 126
      StackMap locals:
      StackMap stack:
            aload 3 /* consoleBytes */
            ifnull 44
        43: .line 127
            aload 3 /* consoleBytes */
            iconst_0
            invokestatic java.util.Arrays.fill:([BB)V
        44: .line 114
      StackMap locals:
      StackMap stack:
            aconst_null
            areturn
        45: .line 117
      StackMap locals:
      StackMap stack:
            iload 8 /* offset */
            newarray 5
            astore 11 /* ret */
        start local 11 // char[] ret
        46: .line 118
            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 119
            aload 6 /* buf */
            bipush 32
            invokestatic java.util.Arrays.fill:([CC)V
        48: .line 121
            aload 11 /* ret */
            astore 13
        49: .line 123
            aload 2 /* consoleEntered */
            ifnull 51
        50: .line 124
            aload 2 /* consoleEntered */
            bipush 32
            invokestatic java.util.Arrays.fill:([CC)V
        51: .line 126
      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 127
            aload 3 /* consoleBytes */
            iconst_0
            invokestatic java.util.Arrays.fill:([BB)V
        53: .line 121
      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 122
      StackMap locals: java.io.InputStream int char[] byte[]
      StackMap stack: java.lang.Throwable
            astore 12
        55: .line 123
            aload 2 /* consoleEntered */
            ifnull 57
        56: .line 124
            aload 2 /* consoleEntered */
            bipush 32
            invokestatic java.util.Arrays.fill:([CC)V
        57: .line 126
      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 127
            aload 3 /* consoleBytes */
            iconst_0
            invokestatic java.util.Arrays.fill:([BB)V
        59: .line 129
      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 140
            getstatic sun.security.util.Password.enc:Ljava/nio/charset/CharsetEncoder;
            ifnonnull 12
         1: .line 141
            ldc Lsun/security/util/Password;
            dup
            astore 1
            monitorenter
         2: .line 142
            invokestatic sun.misc.SharedSecrets.getJavaIOAccess:()Lsun/misc/JavaIOAccess;
         3: .line 143
            invokeinterface sun.misc.JavaIOAccess.charset:()Ljava/nio/charset/Charset;
         4: .line 144
            invokevirtual java.nio.charset.Charset.newEncoder:()Ljava/nio/charset/CharsetEncoder;
         5: .line 145
            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 146
            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 142
            putstatic sun.security.util.Password.enc:Ljava/nio/charset/CharsetEncoder;
         8: .line 141
            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 149
      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 150
            aload 1 /* ba */
            invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
            astore 2 /* bb */
        start local 2 // java.nio.ByteBuffer bb
        14: .line 151
            getstatic sun.security.util.Password.enc:Ljava/nio/charset/CharsetEncoder;
            dup
            astore 3
            monitorenter
        15: .line 152
            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 151
            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 154
      StackMap locals:
      StackMap stack:
            aload 2 /* bb */
            invokevirtual java.nio.ByteBuffer.position:()I
            aload 1 /* ba */
            arraylength
            if_icmpge 22
        21: .line 155
            aload 1 /* ba */
            aload 2 /* bb */
            invokevirtual java.nio.ByteBuffer.position:()I
            bipush 10
            bastore
        22: .line 157
      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"