public final class org.apache.cassandra.auth.jmx.AuthenticationProxy implements javax.management.remote.JMXAuthenticator
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.cassandra.auth.jmx.AuthenticationProxy
super_class: java.lang.Object
{
private static org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private final java.lang.String loginConfigName;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/auth/jmx/AuthenticationProxy;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.auth.jmx.AuthenticationProxy.logger:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)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 1
ifnonnull 3
2: new org.apache.cassandra.exceptions.ConfigurationException
dup
ldc "JAAS login configuration missing for JMX authenticator setup"
invokespecial org.apache.cassandra.exceptions.ConfigurationException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.apache.cassandra.auth.jmx.AuthenticationProxy java.lang.String
StackMap stack:
aload 0
aload 1
putfield org.apache.cassandra.auth.jmx.AuthenticationProxy.loginConfigName:Ljava/lang/String;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/auth/jmx/AuthenticationProxy;
0 5 1 loginConfigName Ljava/lang/String;
MethodParameters:
Name Flags
loginConfigName
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=5, args_size=2
start local 0 start local 1 0: new org.apache.cassandra.auth.jmx.AuthenticationProxy$JMXCallbackHandler
dup
aload 1
invokespecial org.apache.cassandra.auth.jmx.AuthenticationProxy$JMXCallbackHandler.<init>:(Ljava/lang/Object;)V
astore 2
start local 2 1: new javax.security.auth.login.LoginContext
dup
aload 0
getfield org.apache.cassandra.auth.jmx.AuthenticationProxy.loginConfigName:Ljava/lang/String;
aload 2
invokespecial javax.security.auth.login.LoginContext.<init>:(Ljava/lang/String;Ljavax/security/auth/callback/CallbackHandler;)V
astore 3
start local 3 2: aload 3
invokevirtual javax.security.auth.login.LoginContext.login:()V
3: aload 3
invokevirtual javax.security.auth.login.LoginContext.getSubject:()Ljavax/security/auth/Subject;
astore 4
start local 4 4: aload 4
invokevirtual javax.security.auth.Subject.isReadOnly:()Z
ifne 6
5: aload 4
invokedynamic run(Ljavax/security/auth/Subject;)Ljava/security/PrivilegedAction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
org/apache/cassandra/auth/jmx/AuthenticationProxy.lambda$0(Ljavax/security/auth/Subject;)Ljava/lang/Void; (6)
()Ljava/lang/Void;
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
6: StackMap locals: org.apache.cassandra.auth.jmx.AuthenticationProxy$JMXCallbackHandler javax.security.auth.login.LoginContext javax.security.auth.Subject
StackMap stack:
aload 4
7: areturn
end local 4 end local 3 8: StackMap locals: org.apache.cassandra.auth.jmx.AuthenticationProxy java.lang.Object org.apache.cassandra.auth.jmx.AuthenticationProxy$JMXCallbackHandler
StackMap stack: javax.security.auth.login.LoginException
astore 3
start local 3 9: getstatic org.apache.cassandra.auth.jmx.AuthenticationProxy.logger:Lorg/slf4j/Logger;
ldc "Authentication exception"
aload 3
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Throwable;)V
10: new java.lang.SecurityException
dup
ldc "Authentication error"
aload 3
invokespecial java.lang.SecurityException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/cassandra/auth/jmx/AuthenticationProxy;
0 11 1 credentials Ljava/lang/Object;
1 11 2 callbackHandler Lorg/apache/cassandra/auth/jmx/AuthenticationProxy$JMXCallbackHandler;
2 8 3 loginContext Ljavax/security/auth/login/LoginContext;
4 8 4 subject Ljavax/security/auth/Subject;
9 11 3 e Ljavax/security/auth/login/LoginException;
Exception table:
from to target type
1 7 8 Class javax.security.auth.login.LoginException
MethodParameters:
Name Flags
credentials
private static java.lang.Void lambda$0(javax.security.auth.Subject);
descriptor: (Ljavax/security/auth/Subject;)Ljava/lang/Void;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual javax.security.auth.Subject.setReadOnly:()V
1: aconst_null
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "AuthenticationProxy.java"
NestMembers:
org.apache.cassandra.auth.jmx.AuthenticationProxy$JMXCallbackHandler
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
private final JMXCallbackHandler = org.apache.cassandra.auth.jmx.AuthenticationProxy$JMXCallbackHandler of org.apache.cassandra.auth.jmx.AuthenticationProxy