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=5, locals=13, args_size=1
        start local 0 // java.io.InputStream in
         0: .line 42
            aconst_null
            astore 1 /* consoleEntered */
        start local 1 // char[] consoleEntered
         1: .line 43
            aconst_null
            astore 2 /* consoleBytes */
        start local 2 // byte[] consoleBytes
         2: .line 47
            aconst_null
            astore 3 /* con */
        start local 3 // java.io.Console con
         3: .line 48
            aload 0 /* in */
            getstatic java.lang.System.in:Ljava/io/InputStream;
            if_acmpne 13
            invokestatic java.lang.System.console:()Ljava/io/Console;
            dup
            astore 3 /* con */
            ifnull 13
         4: .line 49
            aload 3 /* con */
            invokevirtual java.io.Console.readPassword:()[C
            astore 1 /* consoleEntered */
         5: .line 52
            aload 1 /* consoleEntered */
            ifnull 11
            aload 1 /* consoleEntered */
            arraylength
            ifne 11
         6: .line 115
            aload 1 /* consoleEntered */
            ifnull 8
         7: .line 116
            aload 1 /* consoleEntered */
            bipush 32
            invokestatic java.util.Arrays.fill:([CC)V
         8: .line 118
      StackMap locals: char[] byte[] java.io.Console
      StackMap stack:
            aload 2 /* consoleBytes */
            ifnull 10
         9: .line 119
            aload 2 /* consoleBytes */
            iconst_0
            invokestatic java.util.Arrays.fill:([BB)V
        10: .line 53
      StackMap locals:
      StackMap stack:
            aconst_null
            areturn
        11: .line 55
      StackMap locals:
      StackMap stack:
            aload 1 /* consoleEntered */
            invokestatic sun.security.util.Password.convertToBytes:([C)[B
            astore 2 /* consoleBytes */
        12: .line 56
            new java.io.ByteArrayInputStream
            dup
            aload 2 /* consoleBytes */
            invokespecial java.io.ByteArrayInputStream.<init>:([B)V
            astore 0 /* in */
        13: .line 66
      StackMap locals:
      StackMap stack:
            sipush 128
            newarray 5
            dup
            astore 4 /* lineBuffer */
        start local 4 // char[] lineBuffer
        14: astore 5 /* buf */
        start local 5 // char[] buf
        15: .line 68
            aload 5 /* buf */
            arraylength
            istore 6 /* room */
        start local 6 // int room
        16: .line 69
            iconst_0
            istore 7 /* offset */
        start local 7 // int offset
        17: .line 72
            iconst_0
            istore 9 /* done */
        start local 9 // boolean done
        18: .line 73
            goto 38
        19: .line 74
      StackMap locals: java.io.InputStream char[] byte[] java.io.Console char[] char[] int int top int
      StackMap stack:
            aload 0 /* in */
            invokevirtual java.io.InputStream.read:()I
            dup
            istore 8 /* c */
        start local 8 // int c
        20: lookupswitch { // 3
                   -1: 21
                   10: 21
                   13: 23
              default: 31
          }
        21: .line 77
      StackMap locals: java.io.InputStream char[] byte[] java.io.Console char[] char[] int int int int
      StackMap stack:
            iconst_1
            istore 9 /* done */
        22: .line 78
            goto 38
        23: .line 81
      StackMap locals:
      StackMap stack:
            aload 0 /* in */
            invokevirtual java.io.InputStream.read:()I
            istore 10 /* c2 */
        start local 10 // int c2
        24: .line 82
            iload 10 /* c2 */
            bipush 10
            if_icmpeq 29
            iload 10 /* c2 */
            iconst_m1
            if_icmpeq 29
        25: .line 83
            aload 0 /* in */
            instanceof java.io.PushbackInputStream
            ifne 27
        26: .line 84
            new java.io.PushbackInputStream
            dup
            aload 0 /* in */
            invokespecial java.io.PushbackInputStream.<init>:(Ljava/io/InputStream;)V
            astore 0 /* in */
        27: .line 86
      StackMap locals: int
      StackMap stack:
            aload 0 /* in */
            checkcast java.io.PushbackInputStream
            iload 10 /* c2 */
            invokevirtual java.io.PushbackInputStream.unread:(I)V
        28: .line 87
            goto 31
        29: .line 88
      StackMap locals:
      StackMap stack:
            iconst_1
            istore 9 /* done */
        30: .line 89
            goto 38
        end local 10 // int c2
        31: .line 93
      StackMap locals:
      StackMap stack:
            iinc 6 /* room */ -1
            iload 6 /* room */
            ifge 37
        32: .line 94
            iload 7 /* offset */
            sipush 128
            iadd
            newarray 5
            astore 5 /* buf */
        33: .line 95
            aload 5 /* buf */
            arraylength
            iload 7 /* offset */
            isub
            iconst_1
            isub
            istore 6 /* room */
        34: .line 96
            aload 4 /* lineBuffer */
            iconst_0
            aload 5 /* buf */
            iconst_0
            iload 7 /* offset */
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
        35: .line 97
            aload 4 /* lineBuffer */
            bipush 32
            invokestatic java.util.Arrays.fill:([CC)V
        36: .line 98
            aload 5 /* buf */
            astore 4 /* lineBuffer */
        37: .line 100
      StackMap locals:
      StackMap stack:
            aload 5 /* buf */
            iload 7 /* offset */
            iinc 7 /* offset */ 1
            iload 8 /* c */
            i2c
            castore
        end local 8 // int c
        38: .line 73
      StackMap locals: java.io.InputStream char[] byte[] java.io.Console char[] char[] int int top int
      StackMap stack:
            iload 9 /* done */
            ifeq 19
        39: .line 105
            iload 7 /* offset */
            ifne 45
        40: .line 115
            aload 1 /* consoleEntered */
            ifnull 42
        41: .line 116
            aload 1 /* consoleEntered */
            bipush 32
            invokestatic java.util.Arrays.fill:([CC)V
        42: .line 118
      StackMap locals:
      StackMap stack:
            aload 2 /* consoleBytes */
            ifnull 44
        43: .line 119
            aload 2 /* consoleBytes */
            iconst_0
            invokestatic java.util.Arrays.fill:([BB)V
        44: .line 106
      StackMap locals:
      StackMap stack:
            aconst_null
            areturn
        45: .line 109
      StackMap locals:
      StackMap stack:
            iload 7 /* offset */
            newarray 5
            astore 10 /* ret */
        start local 10 // char[] ret
        46: .line 110
            aload 5 /* buf */
            iconst_0
            aload 10 /* ret */
            iconst_0
            iload 7 /* offset */
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
        47: .line 111
            aload 5 /* buf */
            bipush 32
            invokestatic java.util.Arrays.fill:([CC)V
        48: .line 113
            aload 10 /* ret */
            astore 12
        49: .line 115
            aload 1 /* consoleEntered */
            ifnull 51
        50: .line 116
            aload 1 /* consoleEntered */
            bipush 32
            invokestatic java.util.Arrays.fill:([CC)V
        51: .line 118
      StackMap locals: java.io.InputStream char[] byte[] java.io.Console char[] char[] int int top int char[] top char[]
      StackMap stack:
            aload 2 /* consoleBytes */
            ifnull 53
        52: .line 119
            aload 2 /* consoleBytes */
            iconst_0
            invokestatic java.util.Arrays.fill:([BB)V
        53: .line 113
      StackMap locals:
      StackMap stack:
            aload 12
            areturn
        end local 10 // char[] ret
        end local 9 // boolean done
        end local 7 // int offset
        end local 6 // int room
        end local 5 // char[] buf
        end local 4 // char[] lineBuffer
        end local 3 // java.io.Console con
        54: .line 114
      StackMap locals: java.io.InputStream char[] byte[]
      StackMap stack: java.lang.Throwable
            astore 11
        55: .line 115
            aload 1 /* consoleEntered */
            ifnull 57
        56: .line 116
            aload 1 /* consoleEntered */
            bipush 32
            invokestatic java.util.Arrays.fill:([CC)V
        57: .line 118
      StackMap locals: java.io.InputStream char[] byte[] top top top top top top top top java.lang.Throwable
      StackMap stack:
            aload 2 /* consoleBytes */
            ifnull 59
        58: .line 119
            aload 2 /* consoleBytes */
            iconst_0
            invokestatic java.util.Arrays.fill:([BB)V
        59: .line 121
      StackMap locals:
      StackMap stack:
            aload 11
            athrow
        end local 2 // byte[] consoleBytes
        end local 1 // char[] consoleEntered
        end local 0 // java.io.InputStream in
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0   60     0              in  Ljava/io/InputStream;
            1   60     1  consoleEntered  [C
            2   60     2    consoleBytes  [B
            3   54     3             con  Ljava/io/Console;
           14   54     4      lineBuffer  [C
           15   54     5             buf  [C
           16   54     6            room  I
           17   54     7          offset  I
           20   38     8               c  I
           18   54     9            done  Z
           24   31    10              c2  I
           46   54    10             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    

  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 132
            getstatic sun.security.util.Password.enc:Ljava/nio/charset/CharsetEncoder;
            ifnonnull 12
         1: .line 133
            ldc Lsun/security/util/Password;
            dup
            astore 1
            monitorenter
         2: .line 134
            invokestatic sun.misc.SharedSecrets.getJavaIOAccess:()Lsun/misc/JavaIOAccess;
         3: .line 135
            invokeinterface sun.misc.JavaIOAccess.charset:()Ljava/nio/charset/Charset;
         4: .line 136
            invokevirtual java.nio.charset.Charset.newEncoder:()Ljava/nio/charset/CharsetEncoder;
         5: .line 137
            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 138
            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 134
            putstatic sun.security.util.Password.enc:Ljava/nio/charset/CharsetEncoder;
         8: .line 133
            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 141
      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 142
            aload 1 /* ba */
            invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
            astore 2 /* bb */
        start local 2 // java.nio.ByteBuffer bb
        14: .line 143
            getstatic sun.security.util.Password.enc:Ljava/nio/charset/CharsetEncoder;
            dup
            astore 3
            monitorenter
        15: .line 144
            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 143
            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 146
      StackMap locals:
      StackMap stack:
            aload 2 /* bb */
            invokevirtual java.nio.ByteBuffer.position:()I
            aload 1 /* ba */
            arraylength
            if_icmpge 22
        21: .line 147
            aload 1 /* ba */
            aload 2 /* bb */
            invokevirtual java.nio.ByteBuffer.position:()I
            bipush 10
            bastore
        22: .line 149
      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"