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 3
start local 3 9: goto 13
10: StackMap locals: java.util.Set java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.security.Principal
astore 4
start local 4 11: aload 0
getfield sun.management.jmxremote.ConnectorBootstrap$AccessFileCheckerAuthenticator.properties:Ljava/util/Properties;
aload 4
invokeinterface java.security.Principal.getName:()Ljava/lang/String;
invokevirtual java.util.Properties.containsKey:(Ljava/lang/Object;)Z
ifeq 13
12: return
end local 4 13: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
end local 3 14: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 3
start local 3 15: aload 2
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
start local 4 16: goto 19
17: StackMap locals: sun.management.jmxremote.ConnectorBootstrap$AccessFileCheckerAuthenticator javax.security.auth.Subject java.util.Set java.util.Set java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.security.Principal
astore 5
start local 5 18: aload 3
aload 5
invokeinterface java.security.Principal.getName:()Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 5 19: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 17
end local 4 20: new java.lang.SecurityException
dup
21: new java.lang.StringBuilder
dup
ldc "Access denied! No entries found in the access file ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
22: 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;
23: aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
24: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
25: 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 26 0 this Lsun/management/jmxremote/ConnectorBootstrap$AccessFileCheckerAuthenticator;
0 26 1 subject Ljavax/security/auth/Subject;
8 26 2 principals Ljava/util/Set;
9 14 3 i Ljava/util/Iterator;
11 13 4 p Ljava/security/Principal;
15 26 3 principalsStr Ljava/util/Set<Ljava/lang/String;>;
16 20 4 i Ljava/util/Iterator;
18 19 5 p 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=3, 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:
new java.io.FileInputStream
dup
aload 0
invokespecial java.io.FileInputStream.<init>:(Ljava/lang/String;)V
astore 2
start local 2 4: aload 1
aload 2
invokevirtual java.util.Properties.load:(Ljava/io/InputStream;)V
5: aload 2
invokevirtual java.io.FileInputStream.close:()V
6: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 fname Ljava/lang/String;
1 7 1 p Ljava/util/Properties;
4 7 2 fin Ljava/io/FileInputStream;
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