public class com.sun.jmx.remote.security.SubjectDelegator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.jmx.remote.security.SubjectDelegator
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/jmx/remote/security/SubjectDelegator;
public java.security.AccessControlContext delegatedContext(java.security.AccessControlContext, javax.security.auth.Subject, boolean);
descriptor: (Ljava/security/AccessControlContext;Ljavax/security/auth/Subject;Z)Ljava/security/AccessControlContext;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
ifnull 2
aload 1
ifnonnull 2
1: new java.lang.SecurityException
dup
ldc "Illegal AccessControlContext: null"
invokespecial java.lang.SecurityException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 2
invokestatic com.sun.jmx.remote.security.SubjectDelegator.getSubjectPrincipals:(Ljavax/security/auth/Subject;)Ljava/util/Collection;
astore 4
start local 4 3: new java.util.ArrayList
dup
aload 4
invokeinterface java.util.Collection.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 5
start local 5 4: aload 4
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 7
goto 8
StackMap locals: com.sun.jmx.remote.security.SubjectDelegator java.security.AccessControlContext javax.security.auth.Subject int java.util.Collection java.util.Collection top java.util.Iterator
StackMap stack:
5: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.security.Principal
astore 6
start local 6 6: new java.lang.StringBuilder
dup
aload 6
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 6
invokeinterface java.security.Principal.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 8
start local 8 7: aload 5
new javax.management.remote.SubjectDelegationPermission
dup
aload 8
invokespecial javax.management.remote.SubjectDelegationPermission.<init>:(Ljava/lang/String;)V
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
end local 8 end local 6 8: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
9: new com.sun.jmx.remote.security.SubjectDelegator$1
dup
aload 0
aload 5
invokespecial com.sun.jmx.remote.security.SubjectDelegator$1.<init>:(Lcom/sun/jmx/remote/security/SubjectDelegator;Ljava/util/Collection;)V
10: astore 6
start local 6 11: aload 6
aload 1
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;
pop
12: aload 0
aload 2
iload 3
invokevirtual com.sun.jmx.remote.security.SubjectDelegator.getDelegatedAcc:(Ljavax/security/auth/Subject;Z)Ljava/security/AccessControlContext;
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/sun/jmx/remote/security/SubjectDelegator;
0 13 1 authenticatedACC Ljava/security/AccessControlContext;
0 13 2 delegatedSubject Ljavax/security/auth/Subject;
0 13 3 removeCallerContext Z
3 13 4 ps Ljava/util/Collection<Ljava/security/Principal;>;
4 13 5 permissions Ljava/util/Collection<Ljava/security/Permission;>;
6 8 6 p Ljava/security/Principal;
7 8 8 pname Ljava/lang/String;
11 13 6 action Ljava/security/PrivilegedAction<Ljava/lang/Void;>;
Exceptions:
throws java.lang.SecurityException
MethodParameters:
Name Flags
authenticatedACC
delegatedSubject
removeCallerContext
private java.security.AccessControlContext getDelegatedAcc(javax.security.auth.Subject, boolean);
descriptor: (Ljavax/security/auth/Subject;Z)Ljava/security/AccessControlContext;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 2
ifeq 2
1: aload 1
invokestatic com.sun.jmx.remote.security.JMXSubjectDomainCombiner.getDomainCombinerContext:(Ljavax/security/auth/Subject;)Ljava/security/AccessControlContext;
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokestatic com.sun.jmx.remote.security.JMXSubjectDomainCombiner.getContext:(Ljavax/security/auth/Subject;)Ljava/security/AccessControlContext;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/jmx/remote/security/SubjectDelegator;
0 3 1 delegatedSubject Ljavax/security/auth/Subject;
0 3 2 removeCallerContext Z
MethodParameters:
Name Flags
delegatedSubject
removeCallerContext
public static synchronized boolean checkRemoveCallerContext(javax.security.auth.Subject);
descriptor: (Ljavax/security/auth/Subject;)Z
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
invokestatic com.sun.jmx.remote.security.SubjectDelegator.getSubjectPrincipals:(Ljavax/security/auth/Subject;)Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 2
goto 7
StackMap locals: javax.security.auth.Subject top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.security.Principal
astore 1
start local 1 2: new java.lang.StringBuilder
dup
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokeinterface java.security.Principal.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: astore 3
start local 3 4: new javax.management.remote.SubjectDelegationPermission
dup
aload 3
invokespecial javax.management.remote.SubjectDelegationPermission.<init>:(Ljava/lang/String;)V
5: astore 4
start local 4 6: aload 4
invokestatic java.security.AccessController.checkPermission:(Ljava/security/Permission;)V
end local 4 end local 3 end local 1 7: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
8: goto 11
StackMap locals: javax.security.auth.Subject
StackMap stack: java.lang.SecurityException
9: pop
10: iconst_0
ireturn
11: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 subject Ljavax/security/auth/Subject;
2 7 1 p Ljava/security/Principal;
4 7 3 pname Ljava/lang/String;
6 7 4 sdp Ljava/security/Permission;
Exception table:
from to target type
0 8 9 Class java.lang.SecurityException
MethodParameters:
Name Flags
subject
private static java.util.Collection<java.security.Principal> getSubjectPrincipals(javax.security.auth.Subject);
descriptor: (Ljavax/security/auth/Subject;)Ljava/util/Collection;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual javax.security.auth.Subject.isReadOnly:()Z
ifeq 2
1: aload 0
invokevirtual javax.security.auth.Subject.getPrincipals:()Ljava/util/Set;
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual javax.security.auth.Subject.getPrincipals:()Ljava/util/Set;
iconst_0
anewarray java.security.Principal
invokeinterface java.util.Set.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.security.Principal[]
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
astore 1
start local 1 3: aload 1
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 subject Ljavax/security/auth/Subject;
3 4 1 principals Ljava/util/List<Ljava/security/Principal;>;
Signature: (Ljavax/security/auth/Subject;)Ljava/util/Collection<Ljava/security/Principal;>;
MethodParameters:
Name Flags
subject
}
SourceFile: "SubjectDelegator.java"
NestMembers:
com.sun.jmx.remote.security.SubjectDelegator$1
InnerClasses:
com.sun.jmx.remote.security.SubjectDelegator$1