public class com.sun.net.httpserver.HttpPrincipal implements java.security.Principal
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.net.httpserver.HttpPrincipal
super_class: java.lang.Object
{
private java.lang.String username;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String realm;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
public void <init>(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ifnull 2
aload 2
ifnonnull 3
2: StackMap locals: com.sun.net.httpserver.HttpPrincipal java.lang.String java.lang.String
StackMap stack:
new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield com.sun.net.httpserver.HttpPrincipal.username:Ljava/lang/String;
4: aload 0
aload 2
putfield com.sun.net.httpserver.HttpPrincipal.realm:Ljava/lang/String;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/net/httpserver/HttpPrincipal;
0 6 1 username Ljava/lang/String;
0 6 2 realm Ljava/lang/String;
MethodParameters:
Name Flags
username
realm
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof com.sun.net.httpserver.HttpPrincipal
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
checkcast com.sun.net.httpserver.HttpPrincipal
astore 2
start local 2 3: aload 0
getfield com.sun.net.httpserver.HttpPrincipal.username:Ljava/lang/String;
aload 2
getfield com.sun.net.httpserver.HttpPrincipal.username:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 6
4: aload 0
getfield com.sun.net.httpserver.HttpPrincipal.realm:Ljava/lang/String;
aload 2
getfield com.sun.net.httpserver.HttpPrincipal.realm:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 6
5: iconst_1
ireturn
StackMap locals: com.sun.net.httpserver.HttpPrincipal
StackMap stack:
6: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/net/httpserver/HttpPrincipal;
0 7 1 another Ljava/lang/Object;
3 7 2 theother Lcom/sun/net/httpserver/HttpPrincipal;
MethodParameters:
Name Flags
another
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: ldc "%s:%s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield com.sun.net.httpserver.HttpPrincipal.realm:Ljava/lang/String;
aastore
dup
iconst_1
aload 0
getfield com.sun.net.httpserver.HttpPrincipal.username:Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/net/httpserver/HttpPrincipal;
public java.lang.String getUsername();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.net.httpserver.HttpPrincipal.username:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/net/httpserver/HttpPrincipal;
public java.lang.String getRealm();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.net.httpserver.HttpPrincipal.realm:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/net/httpserver/HttpPrincipal;
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
getfield com.sun.net.httpserver.HttpPrincipal.username:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield com.sun.net.httpserver.HttpPrincipal.realm:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.String.hashCode:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/net/httpserver/HttpPrincipal;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.sun.net.httpserver.HttpPrincipal.getName:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/net/httpserver/HttpPrincipal;
}
SourceFile: "HttpPrincipal.java"