class sun.security.provider.SeedGenerator$URLSeedGenerator extends sun.security.provider.SeedGenerator
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.security.provider.SeedGenerator$URLSeedGenerator
super_class: sun.security.provider.SeedGenerator
{
private java.lang.String deviceName;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.io.InputStream devRandom;
descriptor: Ljava/io/InputStream;
flags: (0x0002) ACC_PRIVATE
void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial sun.security.provider.SeedGenerator.<init>:()V
1: aload 1
ifnonnull 3
2: new java.io.IOException
dup
ldc "No random source specified"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: sun.security.provider.SeedGenerator$URLSeedGenerator java.lang.String
StackMap stack:
aload 0
aload 1
putfield sun.security.provider.SeedGenerator$URLSeedGenerator.deviceName:Ljava/lang/String;
4: aload 0
invokevirtual sun.security.provider.SeedGenerator$URLSeedGenerator.init:()V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/security/provider/SeedGenerator$URLSeedGenerator;
0 6 1 egdurl Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
egdurl
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "file:/dev/random"
invokespecial sun.security.provider.SeedGenerator$URLSeedGenerator.<init>:(Ljava/lang/String;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/provider/SeedGenerator$URLSeedGenerator;
Exceptions:
throws java.io.IOException
private void init();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=1
start local 0 0: new java.net.URL
dup
aload 0
getfield sun.security.provider.SeedGenerator$URLSeedGenerator.deviceName:Ljava/lang/String;
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
astore 1
start local 1 1: aload 0
2: new sun.security.provider.SeedGenerator$URLSeedGenerator$1
dup
aload 0
aload 1
invokespecial sun.security.provider.SeedGenerator$URLSeedGenerator$1.<init>:(Lsun/security/provider/SeedGenerator$URLSeedGenerator;Ljava/net/URL;)V
3: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
checkcast java.io.InputStream
putfield sun.security.provider.SeedGenerator$URLSeedGenerator.devRandom:Ljava/io/InputStream;
4: goto 7
StackMap locals: sun.security.provider.SeedGenerator$URLSeedGenerator java.net.URL
StackMap stack: java.lang.Exception
5: astore 2
start local 2 6: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Failed to open "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.security.provider.SeedGenerator$URLSeedGenerator.deviceName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokevirtual java.lang.Exception.getCause:()Ljava/lang/Throwable;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/security/provider/SeedGenerator$URLSeedGenerator;
1 8 1 device Ljava/net/URL;
6 7 2 e Ljava/lang/Exception;
Exception table:
from to target type
1 4 5 Class java.lang.Exception
Exceptions:
throws java.io.IOException
private java.io.File getDeviceFile(java.net.URL);
descriptor: (Ljava/net/URL;)Ljava/io/File;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.net.URL.toURI:()Ljava/net/URI;
astore 2
start local 2 1: aload 2
invokevirtual java.net.URI.isOpaque:()Z
ifeq 8
2: new java.io.File
dup
ldc "user.dir"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.toURI:()Ljava/net/URI;
astore 3
start local 3 3: new java.lang.StringBuilder
dup
aload 3
invokevirtual java.net.URI.toString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
4: aload 2
invokevirtual java.net.URI.toString:()Ljava/lang/String;
iconst_5
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
start local 4 6: new java.io.File
dup
aload 4
invokestatic java.net.URI.create:(Ljava/lang/String;)Ljava/net/URI;
invokespecial java.io.File.<init>:(Ljava/net/URI;)V
7: areturn
end local 4 end local 3 8: StackMap locals: java.net.URI
StackMap stack:
new java.io.File
dup
aload 2
invokespecial java.io.File.<init>:(Ljava/net/URI;)V
9: areturn
end local 2 10: StackMap locals: sun.security.provider.SeedGenerator$URLSeedGenerator java.net.URL
StackMap stack: java.net.URISyntaxException
pop
11: new java.io.File
dup
aload 1
invokevirtual java.net.URL.getPath:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/security/provider/SeedGenerator$URLSeedGenerator;
0 12 1 device Ljava/net/URL;
1 10 2 deviceURI Ljava/net/URI;
3 8 3 localDir Ljava/net/URI;
6 8 4 uriPath Ljava/lang/String;
Exception table:
from to target type
0 7 10 Class java.net.URISyntaxException
8 9 10 Class java.net.URISyntaxException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
device
void getSeedBytes(byte[]);
descriptor: ([B)V
flags: (0x0000)
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
arraylength
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 9
3: StackMap locals: int int
StackMap stack:
aload 0
getfield sun.security.provider.SeedGenerator$URLSeedGenerator.devRandom:Ljava/io/InputStream;
aload 1
iload 3
iload 2
iload 3
isub
invokevirtual java.io.InputStream.read:([BII)I
istore 4
start local 4 4: iload 4
ifge 8
5: new java.lang.InternalError
dup
new java.lang.StringBuilder
dup
ldc "URLSeedGenerator "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.security.provider.SeedGenerator$URLSeedGenerator.deviceName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: ldc " reached end of file"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: int
StackMap stack:
iload 3
iload 4
iadd
istore 3
end local 4 9: StackMap locals:
StackMap stack:
iload 3
iload 2
if_icmplt 3
10: goto 16
StackMap locals:
StackMap stack: java.io.IOException
11: astore 4
start local 4 12: new java.lang.InternalError
dup
new java.lang.StringBuilder
dup
ldc "URLSeedGenerator "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.security.provider.SeedGenerator$URLSeedGenerator.deviceName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
13: ldc " generated exception: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
14: aload 4
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
15: invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
end local 4 16: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lsun/security/provider/SeedGenerator$URLSeedGenerator;
0 17 1 result [B
1 17 2 len I
2 17 3 read I
4 9 4 count I
12 16 4 ioe Ljava/io/IOException;
Exception table:
from to target type
2 10 11 Class java.io.IOException
MethodParameters:
Name Flags
result
}
SourceFile: "SeedGenerator.java"
NestHost: sun.security.provider.SeedGenerator
InnerClasses:
URLSeedGenerator = sun.security.provider.SeedGenerator$URLSeedGenerator of sun.security.provider.SeedGenerator
sun.security.provider.SeedGenerator$URLSeedGenerator$1