public final class com.sun.jmx.remote.security.JMXPluggableAuthenticator implements javax.management.remote.JMXAuthenticator
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.jmx.remote.security.JMXPluggableAuthenticator
super_class: java.lang.Object
{
private javax.security.auth.login.LoginContext loginContext;
descriptor: Ljavax/security/auth/login/LoginContext;
flags: (0x0002) ACC_PRIVATE
private java.lang.String username;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String password;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private static final java.lang.String LOGIN_CONFIG_PROP;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "jmx.remote.x.login.config"
private static final java.lang.String LOGIN_CONFIG_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "JMXPluggableAuthenticator"
private static final java.lang.String PASSWORD_FILE_PROP;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "jmx.remote.x.password.file"
private static final com.sun.jmx.remote.util.ClassLogger logger;
descriptor: Lcom/sun/jmx/remote/util/ClassLogger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: new com.sun.jmx.remote.util.ClassLogger
dup
ldc "javax.management.remote.misc"
ldc "JMXPluggableAuthenticator"
invokespecial com.sun.jmx.remote.util.ClassLogger.<init>:(Ljava/lang/String;Ljava/lang/String;)V
1: putstatic com.sun.jmx.remote.security.JMXPluggableAuthenticator.logger:Lcom/sun/jmx/remote/util/ClassLogger;
2: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.util.Map);
descriptor: (Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=7, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aconst_null
astore 2
start local 2 2: aconst_null
astore 3
start local 3 3: aload 1
ifnull 6
4: aload 1
ldc "jmx.remote.x.login.config"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 2
5: aload 1
ldc "jmx.remote.x.password.file"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 3
6: StackMap locals: com.sun.jmx.remote.security.JMXPluggableAuthenticator java.util.Map java.lang.String java.lang.String
StackMap stack:
aload 2
ifnull 11
7: aload 0
8: new javax.security.auth.login.LoginContext
dup
aload 2
new com.sun.jmx.remote.security.JMXPluggableAuthenticator$JMXCallbackHandler
dup
aload 0
invokespecial com.sun.jmx.remote.security.JMXPluggableAuthenticator$JMXCallbackHandler.<init>:(Lcom/sun/jmx/remote/security/JMXPluggableAuthenticator;)V
invokespecial javax.security.auth.login.LoginContext.<init>:(Ljava/lang/String;Ljavax/security/auth/callback/CallbackHandler;)V
9: putfield com.sun.jmx.remote.security.JMXPluggableAuthenticator.loginContext:Ljavax/security/auth/login/LoginContext;
10: goto 28
11: StackMap locals:
StackMap stack:
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 4
start local 4 12: aload 4
ifnull 16
13: aload 4
14: new javax.security.auth.AuthPermission
dup
ldc "createLoginContext.JMXPluggableAuthenticator"
invokespecial javax.security.auth.AuthPermission.<init>:(Ljava/lang/String;)V
15: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
16: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 3
astore 5
start local 5 17: aload 0
18: new com.sun.jmx.remote.security.JMXPluggableAuthenticator$1
dup
aload 0
aload 5
invokespecial com.sun.jmx.remote.security.JMXPluggableAuthenticator$1.<init>:(Lcom/sun/jmx/remote/security/JMXPluggableAuthenticator;Ljava/lang/String;)V
19: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
checkcast javax.security.auth.login.LoginContext
putfield com.sun.jmx.remote.security.JMXPluggableAuthenticator.loginContext:Ljavax/security/auth/login/LoginContext;
20: goto 28
StackMap locals: com.sun.jmx.remote.security.JMXPluggableAuthenticator java.util.Map java.lang.String java.lang.String java.lang.SecurityManager java.lang.String
StackMap stack: java.security.PrivilegedActionException
21: astore 6
start local 6 22: aload 6
invokevirtual java.security.PrivilegedActionException.getException:()Ljava/lang/Exception;
checkcast javax.security.auth.login.LoginException
athrow
end local 6 end local 5 end local 4 23: StackMap locals: com.sun.jmx.remote.security.JMXPluggableAuthenticator java.util.Map java.lang.String java.lang.String
StackMap stack: javax.security.auth.login.LoginException
astore 4
start local 4 24: ldc "authenticate"
aload 4
invokestatic com.sun.jmx.remote.security.JMXPluggableAuthenticator.authenticationFailure:(Ljava/lang/String;Ljava/lang/Exception;)V
end local 4 25: goto 28
26: StackMap locals:
StackMap stack: java.lang.SecurityException
astore 4
start local 4 27: ldc "authenticate"
aload 4
invokestatic com.sun.jmx.remote.security.JMXPluggableAuthenticator.authenticationFailure:(Ljava/lang/String;Ljava/lang/Exception;)V
end local 4 28: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lcom/sun/jmx/remote/security/JMXPluggableAuthenticator;
0 29 1 env Ljava/util/Map;
2 29 2 loginConfigName Ljava/lang/String;
3 29 3 passwordFile Ljava/lang/String;
12 23 4 sm Ljava/lang/SecurityManager;
17 23 5 pf Ljava/lang/String;
22 23 6 pae Ljava/security/PrivilegedActionException;
24 25 4 le Ljavax/security/auth/login/LoginException;
27 28 4 se Ljava/lang/SecurityException;
Exception table:
from to target type
17 20 21 Class java.security.PrivilegedActionException
6 23 23 Class javax.security.auth.login.LoginException
6 23 26 Class java.lang.SecurityException
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=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.lang.String[]
ifne 8
1: aload 1
ifnonnull 3
2: ldc "authenticate"
ldc "Credentials required"
invokestatic com.sun.jmx.remote.security.JMXPluggableAuthenticator.authenticationFailure:(Ljava/lang/String;Ljava/lang/String;)V
3: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "Credentials should be String[] instead of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
4: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: astore 2
start local 2 7: ldc "authenticate"
aload 2
invokestatic com.sun.jmx.remote.security.JMXPluggableAuthenticator.authenticationFailure:(Ljava/lang/String;Ljava/lang/String;)V
end local 2 8: StackMap locals:
StackMap stack:
aload 1
checkcast java.lang.String[]
astore 2
start local 2 9: aload 2
arraylength
iconst_2
if_icmpeq 15
10: new java.lang.StringBuilder
dup
ldc "Credentials should have 2 elements not "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
11: aload 2
arraylength
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
12: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
13: astore 3
start local 3 14: ldc "authenticate"
aload 3
invokestatic com.sun.jmx.remote.security.JMXPluggableAuthenticator.authenticationFailure:(Ljava/lang/String;Ljava/lang/String;)V
end local 3 15: StackMap locals: java.lang.String[]
StackMap stack:
aload 0
aload 2
iconst_0
aaload
putfield com.sun.jmx.remote.security.JMXPluggableAuthenticator.username:Ljava/lang/String;
16: aload 0
aload 2
iconst_1
aaload
putfield com.sun.jmx.remote.security.JMXPluggableAuthenticator.password:Ljava/lang/String;
17: aload 0
getfield com.sun.jmx.remote.security.JMXPluggableAuthenticator.username:Ljava/lang/String;
ifnull 18
aload 0
getfield com.sun.jmx.remote.security.JMXPluggableAuthenticator.password:Ljava/lang/String;
ifnonnull 19
18: StackMap locals:
StackMap stack:
ldc "authenticate"
ldc "Username or password is null"
invokestatic com.sun.jmx.remote.security.JMXPluggableAuthenticator.authenticationFailure:(Ljava/lang/String;Ljava/lang/String;)V
19: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.jmx.remote.security.JMXPluggableAuthenticator.loginContext:Ljavax/security/auth/login/LoginContext;
invokevirtual javax.security.auth.login.LoginContext.login:()V
20: aload 0
getfield com.sun.jmx.remote.security.JMXPluggableAuthenticator.loginContext:Ljavax/security/auth/login/LoginContext;
invokevirtual javax.security.auth.login.LoginContext.getSubject:()Ljavax/security/auth/Subject;
astore 3
start local 3 21: new com.sun.jmx.remote.security.JMXPluggableAuthenticator$2
dup
aload 0
aload 3
invokespecial com.sun.jmx.remote.security.JMXPluggableAuthenticator$2.<init>:(Lcom/sun/jmx/remote/security/JMXPluggableAuthenticator;Ljavax/security/auth/Subject;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
22: aload 3
23: areturn
end local 3 24: StackMap locals:
StackMap stack: javax.security.auth.login.LoginException
astore 3
start local 3 25: ldc "authenticate"
aload 3
invokestatic com.sun.jmx.remote.security.JMXPluggableAuthenticator.authenticationFailure:(Ljava/lang/String;Ljava/lang/Exception;)V
end local 3 26: aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lcom/sun/jmx/remote/security/JMXPluggableAuthenticator;
0 27 1 credentials Ljava/lang/Object;
7 8 2 message Ljava/lang/String;
9 27 2 aCredentials [Ljava/lang/String;
14 15 3 message Ljava/lang/String;
21 24 3 subject Ljavax/security/auth/Subject;
25 26 3 le Ljavax/security/auth/login/LoginException;
Exception table:
from to target type
19 23 24 Class javax.security.auth.login.LoginException
MethodParameters:
Name Flags
credentials
private static void authenticationFailure(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
ldc "Authentication failed! "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 1: new java.lang.SecurityException
dup
aload 2
invokespecial java.lang.SecurityException.<init>:(Ljava/lang/String;)V
astore 3
start local 3 2: aload 0
aload 2
aload 3
invokestatic com.sun.jmx.remote.security.JMXPluggableAuthenticator.logException:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V
3: aload 3
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 method Ljava/lang/String;
0 4 1 message Ljava/lang/String;
1 4 2 msg Ljava/lang/String;
2 4 3 e Ljava/lang/SecurityException;
Exceptions:
throws java.lang.SecurityException
MethodParameters:
Name Flags
method
message
private static void authenticationFailure(java.lang.String, java.lang.Exception);
descriptor: (Ljava/lang/String;Ljava/lang/Exception;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.lang.SecurityException
ifeq 4
1: aload 1
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
astore 2
start local 2 2: aload 1
checkcast java.lang.SecurityException
astore 3
start local 3 3: goto 8
end local 3 end local 2 4: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "Authentication failed! "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 5: new java.lang.SecurityException
dup
aload 2
invokespecial java.lang.SecurityException.<init>:(Ljava/lang/String;)V
astore 4
start local 4 6: aload 4
aload 1
invokestatic com.sun.jmx.remote.util.EnvHelp.initCause:(Ljava/lang/Throwable;Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
7: aload 4
astore 3
end local 4 start local 3 8: StackMap locals: java.lang.String java.lang.SecurityException
StackMap stack:
aload 0
aload 2
aload 3
invokestatic com.sun.jmx.remote.security.JMXPluggableAuthenticator.logException:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V
9: aload 3
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 method Ljava/lang/String;
0 10 1 exception Ljava/lang/Exception;
2 4 2 msg Ljava/lang/String;
5 10 2 msg Ljava/lang/String;
3 4 3 se Ljava/lang/SecurityException;
8 10 3 se Ljava/lang/SecurityException;
6 8 4 e Ljava/lang/SecurityException;
Exceptions:
throws java.lang.SecurityException
MethodParameters:
Name Flags
method
exception
private static void logException(java.lang.String, java.lang.String, java.lang.Exception);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic com.sun.jmx.remote.security.JMXPluggableAuthenticator.logger:Lcom/sun/jmx/remote/util/ClassLogger;
invokevirtual com.sun.jmx.remote.util.ClassLogger.traceOn:()Z
ifeq 2
1: getstatic com.sun.jmx.remote.security.JMXPluggableAuthenticator.logger:Lcom/sun/jmx/remote/util/ClassLogger;
aload 0
aload 1
invokevirtual com.sun.jmx.remote.util.ClassLogger.trace:(Ljava/lang/String;Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
getstatic com.sun.jmx.remote.security.JMXPluggableAuthenticator.logger:Lcom/sun/jmx/remote/util/ClassLogger;
invokevirtual com.sun.jmx.remote.util.ClassLogger.debugOn:()Z
ifeq 4
3: getstatic com.sun.jmx.remote.security.JMXPluggableAuthenticator.logger:Lcom/sun/jmx/remote/util/ClassLogger;
aload 0
aload 2
invokevirtual com.sun.jmx.remote.util.ClassLogger.debug:(Ljava/lang/String;Ljava/lang/Throwable;)V
4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 method Ljava/lang/String;
0 5 1 message Ljava/lang/String;
0 5 2 e Ljava/lang/Exception;
MethodParameters:
Name Flags
method
message
e
}
SourceFile: "JMXPluggableAuthenticator.java"
NestMembers:
com.sun.jmx.remote.security.JMXPluggableAuthenticator$1 com.sun.jmx.remote.security.JMXPluggableAuthenticator$2 com.sun.jmx.remote.security.JMXPluggableAuthenticator$FileLoginConfig com.sun.jmx.remote.security.JMXPluggableAuthenticator$JMXCallbackHandler
InnerClasses:
com.sun.jmx.remote.security.JMXPluggableAuthenticator$1
com.sun.jmx.remote.security.JMXPluggableAuthenticator$2
private FileLoginConfig = com.sun.jmx.remote.security.JMXPluggableAuthenticator$FileLoginConfig of com.sun.jmx.remote.security.JMXPluggableAuthenticator
private final JMXCallbackHandler = com.sun.jmx.remote.security.JMXPluggableAuthenticator$JMXCallbackHandler of com.sun.jmx.remote.security.JMXPluggableAuthenticator