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 // com.sun.jmx.remote.security.SubjectDelegator this
         0: .line 39
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // com.sun.jmx.remote.security.SubjectDelegator this
      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 // com.sun.jmx.remote.security.SubjectDelegator this
        start local 1 // java.security.AccessControlContext authenticatedACC
        start local 2 // javax.security.auth.Subject delegatedSubject
        start local 3 // boolean removeCallerContext
         0: .line 50
            invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
            ifnull 2
            aload 1 /* authenticatedACC */
            ifnonnull 2
         1: .line 51
            new java.lang.SecurityException
            dup
            ldc "Illegal AccessControlContext: null"
            invokespecial java.lang.SecurityException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 58
      StackMap locals:
      StackMap stack:
            aload 2 /* delegatedSubject */
            invokestatic com.sun.jmx.remote.security.SubjectDelegator.getSubjectPrincipals:(Ljavax/security/auth/Subject;)Ljava/util/Collection;
            astore 4 /* ps */
        start local 4 // java.util.Collection ps
         3: .line 59
            new java.util.ArrayList
            dup
            aload 4 /* ps */
            invokeinterface java.util.Collection.size:()I
            invokespecial java.util.ArrayList.<init>:(I)V
            astore 5 /* permissions */
        start local 5 // java.util.Collection permissions
         4: .line 60
            aload 4 /* ps */
            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 /* p */
        start local 6 // java.security.Principal p
         6: .line 61
            new java.lang.StringBuilder
            dup
            aload 6 /* p */
            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 /* p */
            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 /* pname */
        start local 8 // java.lang.String pname
         7: .line 62
            aload 5 /* permissions */
            new javax.management.remote.SubjectDelegationPermission
            dup
            aload 8 /* pname */
            invokespecial javax.management.remote.SubjectDelegationPermission.<init>:(Ljava/lang/String;)V
            invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
            pop
        end local 8 // java.lang.String pname
        end local 6 // java.security.Principal p
         8: .line 60
      StackMap locals:
      StackMap stack:
            aload 7
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 5
         9: .line 65
            new com.sun.jmx.remote.security.SubjectDelegator$1
            dup
            aload 0 /* this */
            aload 5 /* permissions */
            invokespecial com.sun.jmx.remote.security.SubjectDelegator$1.<init>:(Lcom/sun/jmx/remote/security/SubjectDelegator;Ljava/util/Collection;)V
        10: .line 64
            astore 6 /* action */
        start local 6 // java.security.PrivilegedAction action
        11: .line 73
            aload 6 /* action */
            aload 1 /* authenticatedACC */
            invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;
            pop
        12: .line 75
            aload 0 /* this */
            aload 2 /* delegatedSubject */
            iload 3 /* removeCallerContext */
            invokevirtual com.sun.jmx.remote.security.SubjectDelegator.getDelegatedAcc:(Ljavax/security/auth/Subject;Z)Ljava/security/AccessControlContext;
            areturn
        end local 6 // java.security.PrivilegedAction action
        end local 5 // java.util.Collection permissions
        end local 4 // java.util.Collection ps
        end local 3 // boolean removeCallerContext
        end local 2 // javax.security.auth.Subject delegatedSubject
        end local 1 // java.security.AccessControlContext authenticatedACC
        end local 0 // com.sun.jmx.remote.security.SubjectDelegator this
      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 // com.sun.jmx.remote.security.SubjectDelegator this
        start local 1 // javax.security.auth.Subject delegatedSubject
        start local 2 // boolean removeCallerContext
         0: .line 79
            iload 2 /* removeCallerContext */
            ifeq 2
         1: .line 80
            aload 1 /* delegatedSubject */
            invokestatic com.sun.jmx.remote.security.JMXSubjectDomainCombiner.getDomainCombinerContext:(Ljavax/security/auth/Subject;)Ljava/security/AccessControlContext;
            areturn
         2: .line 82
      StackMap locals:
      StackMap stack:
            aload 1 /* delegatedSubject */
            invokestatic com.sun.jmx.remote.security.JMXSubjectDomainCombiner.getContext:(Ljavax/security/auth/Subject;)Ljava/security/AccessControlContext;
            areturn
        end local 2 // boolean removeCallerContext
        end local 1 // javax.security.auth.Subject delegatedSubject
        end local 0 // com.sun.jmx.remote.security.SubjectDelegator this
      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 // javax.security.auth.Subject subject
         0: .line 98
            aload 0 /* subject */
            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 /* p */
        start local 1 // java.security.Principal p
         2: .line 100
            new java.lang.StringBuilder
            dup
            aload 1 /* p */
            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 /* p */
            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: .line 99
            astore 3 /* pname */
        start local 3 // java.lang.String pname
         4: .line 102
            new javax.management.remote.SubjectDelegationPermission
            dup
            aload 3 /* pname */
            invokespecial javax.management.remote.SubjectDelegationPermission.<init>:(Ljava/lang/String;)V
         5: .line 101
            astore 4 /* sdp */
        start local 4 // java.security.Permission sdp
         6: .line 103
            aload 4 /* sdp */
            invokestatic java.security.AccessController.checkPermission:(Ljava/security/Permission;)V
        end local 4 // java.security.Permission sdp
        end local 3 // java.lang.String pname
        end local 1 // java.security.Principal p
         7: .line 98
      StackMap locals:
      StackMap stack:
            aload 2
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 1
         8: .line 105
            goto 11
      StackMap locals: javax.security.auth.Subject
      StackMap stack: java.lang.SecurityException
         9: pop
        10: .line 106
            iconst_0
            ireturn
        11: .line 108
      StackMap locals:
      StackMap stack:
            iconst_1
            ireturn
        end local 0 // javax.security.auth.Subject subject
      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 // javax.security.auth.Subject subject
         0: .line 118
            aload 0 /* subject */
            invokevirtual javax.security.auth.Subject.isReadOnly:()Z
            ifeq 2
         1: .line 119
            aload 0 /* subject */
            invokevirtual javax.security.auth.Subject.getPrincipals:()Ljava/util/Set;
            areturn
         2: .line 122
      StackMap locals:
      StackMap stack:
            aload 0 /* subject */
            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 /* principals */
        start local 1 // java.util.List principals
         3: .line 123
            aload 1 /* principals */
            invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
            areturn
        end local 1 // java.util.List principals
        end local 0 // javax.security.auth.Subject subject
      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