public class io.undertow.attribute.RemoteUserAttribute implements io.undertow.attribute.ExchangeAttribute
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.undertow.attribute.RemoteUserAttribute
super_class: java.lang.Object
{
public static final java.lang.String REMOTE_USER_SHORT;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "%u"
public static final java.lang.String REMOTE_USER;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "%{REMOTE_USER}"
public static final io.undertow.attribute.ExchangeAttribute INSTANCE;
descriptor: Lio/undertow/attribute/ExchangeAttribute;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new io.undertow.attribute.RemoteUserAttribute
dup
invokespecial io.undertow.attribute.RemoteUserAttribute.<init>:()V
putstatic io.undertow.attribute.RemoteUserAttribute.INSTANCE:Lio/undertow/attribute/ExchangeAttribute;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/undertow/attribute/RemoteUserAttribute;
public java.lang.String readAttribute(io.undertow.server.HttpServerExchange);
descriptor: (Lio/undertow/server/HttpServerExchange;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual io.undertow.server.HttpServerExchange.getSecurityContext:()Lio/undertow/security/api/SecurityContext;
astore 2
start local 2 1: aload 2
ifnull 2
aload 2
invokeinterface io.undertow.security.api.SecurityContext.isAuthenticated:()Z
ifne 3
2: StackMap locals: io.undertow.security.api.SecurityContext
StackMap stack:
aconst_null
areturn
3: StackMap locals:
StackMap stack:
aload 2
invokeinterface io.undertow.security.api.SecurityContext.getAuthenticatedAccount:()Lio/undertow/security/idm/Account;
invokeinterface io.undertow.security.idm.Account.getPrincipal:()Ljava/security/Principal;
invokeinterface java.security.Principal.getName:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/undertow/attribute/RemoteUserAttribute;
0 4 1 exchange Lio/undertow/server/HttpServerExchange;
1 4 2 sc Lio/undertow/security/api/SecurityContext;
MethodParameters:
Name Flags
exchange final
public void writeAttribute(io.undertow.server.HttpServerExchange, java.lang.String);
descriptor: (Lio/undertow/server/HttpServerExchange;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new io.undertow.attribute.ReadOnlyAttributeException
dup
ldc "Remote user"
aload 2
invokespecial io.undertow.attribute.ReadOnlyAttributeException.<init>:(Ljava/lang/String;Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/undertow/attribute/RemoteUserAttribute;
0 1 1 exchange Lio/undertow/server/HttpServerExchange;
0 1 2 newValue Ljava/lang/String;
Exceptions:
throws io.undertow.attribute.ReadOnlyAttributeException
MethodParameters:
Name Flags
exchange final
newValue final
}
SourceFile: "RemoteUserAttribute.java"
NestMembers:
io.undertow.attribute.RemoteUserAttribute$Builder
InnerClasses:
public final Builder = io.undertow.attribute.RemoteUserAttribute$Builder of io.undertow.attribute.RemoteUserAttribute