class sun.management.jmxremote.ConnectorBootstrap$AccessFileCheckerAuthenticator implements javax.management.remote.JMXAuthenticator
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.management.jmxremote.ConnectorBootstrap$AccessFileCheckerAuthenticator
super_class: java.lang.Object
{
private final java.util.Map<java.lang.String, java.lang.Object> environment;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
private final java.util.Properties properties;
descriptor: Ljava/util/Properties;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String accessFile;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.util.Map<java.lang.String, java.lang.Object>);
descriptor: (Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield sun.management.jmxremote.ConnectorBootstrap$AccessFileCheckerAuthenticator.environment:Ljava/util/Map;
2: aload 0
aload 1
ldc "jmx.remote.x.access.file"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
putfield sun.management.jmxremote.ConnectorBootstrap$AccessFileCheckerAuthenticator.accessFile:Ljava/lang/String;
3: aload 0
aload 0
getfield sun.management.jmxremote.ConnectorBootstrap$AccessFileCheckerAuthenticator.accessFile:Ljava/lang/String;
invokestatic sun.management.jmxremote.ConnectorBootstrap$AccessFileCheckerAuthenticator.propertiesFromFile:(Ljava/lang/String;)Ljava/util/Properties;
putfield sun.management.jmxremote.ConnectorBootstrap$AccessFileCheckerAuthenticator.properties:Ljava/util/Properties;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/management/jmxremote/ConnectorBootstrap$AccessFileCheckerAuthenticator;
0 5 1 env Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
env
public javax.security.auth.Subject authenticate(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljavax/security/auth/Subject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: new com.sun.jmx.remote.security.JMXPluggableAuthenticator
dup
aload 0
getfield sun.management.jmxremote.ConnectorBootstrap$AccessFileCheckerAuthenticator.environment:Ljava/util/Map;
invokespecial com.sun.jmx.remote.security.JMXPluggableAuthenticator.<init>:(Ljava/util/Map;)V
1: astore 2
start local 2 2: aload 2
aload 1
invokeinterface javax.management.remote.JMXAuthenticator.authenticate:(Ljava/lang/Object;)Ljavax/security/auth/Subject;
astore 3
start local 3 3: aload 0
aload 3
invokevirtual sun.management.jmxremote.ConnectorBootstrap$AccessFileCheckerAuthenticator.checkAccessFileEntries:(Ljavax/security/auth/Subject;)V
4: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/management/jmxremote/ConnectorBootstrap$AccessFileCheckerAuthenticator;
0 5 1 credentials Ljava/lang/Object;
2 5 2 authenticator Ljavax/management/remote/JMXAuthenticator;
3 5 3 subject Ljavax/security/auth/Subject;
MethodParameters:
Name Flags
credentials
private void checkAccessFileEntries(javax.security.auth.Subject);
descriptor: (Ljavax/security/auth/Subject;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 7
1: new java.lang.SecurityException
dup
2: new java.lang.StringBuilder
dup
ldc "Access denied! No matching entries found in the access file ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
3: aload 0
getfield sun.management.jmxremote.ConnectorBootstrap$AccessFileCheckerAuthenticator.accessFile:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] as the "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: ldc "authenticated Subject is null"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: invokespecial java.lang.SecurityException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 1
invokevirtual javax.security.auth.Subject.getPrincipals:()Ljava/util/Set;
astore 2
start local 2 8: aload 2
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 12
StackMap locals: sun.management.jmxremote.ConnectorBootstrap$AccessFileCheckerAuthenticator javax.security.auth.Subject java.util.Set top java.util.Iterator
StackMap stack:
9: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.security.Principal
astore 3
start local 3 10: aload 0
getfield sun.management.jmxremote.ConnectorBootstrap$AccessFileCheckerAuthenticator.properties:Ljava/util/Properties;
aload 3
invokeinterface java.security.Principal.getName:()Ljava/lang/String;
invokevirtual java.util.Properties.containsKey:(Ljava/lang/Object;)Z
ifeq 12
11: return
end local 3 12: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
13: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 3
start local 3 14: aload 2
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 17
StackMap locals: sun.management.jmxremote.ConnectorBootstrap$AccessFileCheckerAuthenticator javax.security.auth.Subject java.util.Set java.util.Set top java.util.Iterator
StackMap stack:
15: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.security.Principal
astore 4
start local 4 16: aload 3
aload 4
invokeinterface java.security.Principal.getName:()Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 4 17: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 15
18: new java.lang.SecurityException
dup
19: new java.lang.StringBuilder
dup
ldc "Access denied! No entries found in the access file ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
20: aload 0
getfield sun.management.jmxremote.ConnectorBootstrap$AccessFileCheckerAuthenticator.accessFile:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] for any of the authenticated identities "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
21: aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
22: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
23: invokespecial java.lang.SecurityException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lsun/management/jmxremote/ConnectorBootstrap$AccessFileCheckerAuthenticator;
0 24 1 subject Ljavax/security/auth/Subject;
8 24 2 principals Ljava/util/Set<Ljava/security/Principal;>;
10 12 3 p1 Ljava/security/Principal;
14 24 3 principalsStr Ljava/util/Set<Ljava/lang/String;>;
16 17 4 p2 Ljava/security/Principal;
MethodParameters:
Name Flags
subject
private static java.util.Properties propertiesFromFile(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Properties;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 1
start local 1 1: aload 0
ifnonnull 3
2: aload 1
areturn
3: StackMap locals: java.util.Properties
StackMap stack:
aconst_null
astore 2
aconst_null
astore 3
4: new java.io.FileInputStream
dup
aload 0
invokespecial java.io.FileInputStream.<init>:(Ljava/lang/String;)V
astore 4
start local 4 5: aload 1
aload 4
invokevirtual java.util.Properties.load:(Ljava/io/InputStream;)V
6: aload 4
ifnull 12
aload 4
invokevirtual java.io.FileInputStream.close:()V
goto 12
StackMap locals: java.lang.String java.util.Properties java.lang.Throwable java.lang.Throwable java.io.FileInputStream
StackMap stack: java.lang.Throwable
7: astore 2
aload 4
ifnull 8
aload 4
invokevirtual java.io.FileInputStream.close:()V
end local 4 StackMap locals:
StackMap stack:
8: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
9: astore 3
aload 2
ifnonnull 10
aload 3
astore 2
goto 11
StackMap locals:
StackMap stack:
10: aload 2
aload 3
if_acmpeq 11
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
11: aload 2
athrow
12: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 fname Ljava/lang/String;
1 13 1 p Ljava/util/Properties;
5 8 4 fin Ljava/io/FileInputStream;
Exception table:
from to target type
5 6 7 any
4 9 9 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
fname
}
SourceFile: "ConnectorBootstrap.java"
NestHost: sun.management.jmxremote.ConnectorBootstrap
InnerClasses:
private AccessFileCheckerAuthenticator = sun.management.jmxremote.ConnectorBootstrap$AccessFileCheckerAuthenticator of sun.management.jmxremote.ConnectorBootstrap