final class sun.security.pkcs11.SessionKeyRef extends java.lang.ref.PhantomReference<sun.security.pkcs11.P11Key> implements java.lang.Comparable<sun.security.pkcs11.SessionKeyRef>
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.pkcs11.SessionKeyRef
super_class: java.lang.ref.PhantomReference
{
private static java.lang.ref.ReferenceQueue<sun.security.pkcs11.P11Key> refQueue;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/lang/ref/ReferenceQueue<Lsun/security/pkcs11/P11Key;>;
private static java.util.Set<sun.security.pkcs11.SessionKeyRef> refList;
descriptor: Ljava/util/Set;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/util/Set<Lsun/security/pkcs11/SessionKeyRef;>;
private long keyID;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private sun.security.pkcs11.Session session;
descriptor: Lsun/security/pkcs11/Session;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.lang.ref.ReferenceQueue
dup
invokespecial java.lang.ref.ReferenceQueue.<init>:()V
1: putstatic sun.security.pkcs11.SessionKeyRef.refQueue:Ljava/lang/ref/ReferenceQueue;
2: new java.util.TreeSet
dup
invokespecial java.util.TreeSet.<init>:()V
invokestatic java.util.Collections.synchronizedSortedSet:(Ljava/util/SortedSet;)Ljava/util/SortedSet;
3: putstatic sun.security.pkcs11.SessionKeyRef.refList:Ljava/util/Set;
4: return
LocalVariableTable:
Start End Slot Name Signature
static java.lang.ref.ReferenceQueue<sun.security.pkcs11.P11Key> referenceQueue();
descriptor: ()Ljava/lang/ref/ReferenceQueue;
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.security.pkcs11.SessionKeyRef.refQueue:Ljava/lang/ref/ReferenceQueue;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/lang/ref/ReferenceQueue<Lsun/security/pkcs11/P11Key;>;
private static void drainRefQueueBounded();
descriptor: ()V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=0
0: aconst_null
astore 0
start local 0 1: aconst_null
astore 1
start local 1 2: StackMap locals: sun.security.pkcs11.Session sun.security.pkcs11.Token
StackMap stack:
getstatic sun.security.pkcs11.SessionKeyRef.refQueue:Ljava/lang/ref/ReferenceQueue;
invokevirtual java.lang.ref.ReferenceQueue.poll:()Ljava/lang/ref/Reference;
checkcast sun.security.pkcs11.SessionKeyRef
astore 2
start local 2 3: aload 2
ifnonnull 5
4: goto 17
5: StackMap locals: sun.security.pkcs11.SessionKeyRef
StackMap stack:
aload 2
getfield sun.security.pkcs11.SessionKeyRef.session:Lsun/security/pkcs11/Session;
getfield sun.security.pkcs11.Session.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.isValid:()Z
ifeq 15
6: aload 2
getfield sun.security.pkcs11.SessionKeyRef.session:Lsun/security/pkcs11/Session;
getfield sun.security.pkcs11.Session.token:Lsun/security/pkcs11/Token;
aload 1
if_acmpne 7
aload 0
ifnonnull 12
7: StackMap locals:
StackMap stack:
aload 1
ifnull 10
aload 0
ifnull 10
8: aload 1
aload 0
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
pop
9: aconst_null
astore 0
10: StackMap locals:
StackMap stack:
aload 2
getfield sun.security.pkcs11.SessionKeyRef.session:Lsun/security/pkcs11/Session;
getfield sun.security.pkcs11.Session.token:Lsun/security/pkcs11/Token;
astore 1
11: aload 1
invokevirtual sun.security.pkcs11.Token.getOpSession:()Lsun/security/pkcs11/Session;
astore 0
12: StackMap locals:
StackMap stack:
aload 2
aload 0
invokevirtual sun.security.pkcs11.SessionKeyRef.disposeNative:(Lsun/security/pkcs11/Session;)V
13: goto 15
StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
14: pop
15: StackMap locals:
StackMap stack:
aload 2
invokevirtual sun.security.pkcs11.SessionKeyRef.dispose:()V
end local 2 16: goto 2
17: StackMap locals:
StackMap stack:
aload 1
ifnull 19
aload 0
ifnull 19
18: aload 1
aload 0
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
pop
19: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 20 0 sess Lsun/security/pkcs11/Session;
2 20 1 tkn Lsun/security/pkcs11/Token;
3 16 2 next Lsun/security/pkcs11/SessionKeyRef;
Exception table:
from to target type
6 13 14 Class sun.security.pkcs11.wrapper.PKCS11Exception
void <init>(sun.security.pkcs11.P11Key, long, sun.security.pkcs11.Session);
descriptor: (Lsun/security/pkcs11/P11Key;JLsun/security/pkcs11/Session;)V
flags: (0x0000)
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 4 0: aload 0
aload 1
getstatic sun.security.pkcs11.SessionKeyRef.refQueue:Ljava/lang/ref/ReferenceQueue;
invokespecial java.lang.ref.PhantomReference.<init>:(Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
1: aload 0
lload 2
putfield sun.security.pkcs11.SessionKeyRef.keyID:J
2: aload 0
aload 4
putfield sun.security.pkcs11.SessionKeyRef.session:Lsun/security/pkcs11/Session;
3: aload 0
getfield sun.security.pkcs11.SessionKeyRef.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.addObject:()V
4: getstatic sun.security.pkcs11.SessionKeyRef.refList:Ljava/util/Set;
aload 0
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
5: invokestatic sun.security.pkcs11.SessionKeyRef.drainRefQueueBounded:()V
6: return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/pkcs11/SessionKeyRef;
0 7 1 key Lsun/security/pkcs11/P11Key;
0 7 2 keyID J
0 7 4 session Lsun/security/pkcs11/Session;
MethodParameters:
Name Flags
key
keyID
session
private void disposeNative(sun.security.pkcs11.Session);
descriptor: (Lsun/security/pkcs11/Session;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.pkcs11.SessionKeyRef.session:Lsun/security/pkcs11/Session;
getfield sun.security.pkcs11.Session.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 1
invokevirtual sun.security.pkcs11.Session.id:()J
aload 0
getfield sun.security.pkcs11.SessionKeyRef.keyID:J
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_DestroyObject:(JJ)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/pkcs11/SessionKeyRef;
0 2 1 s Lsun/security/pkcs11/Session;
Exceptions:
throws sun.security.pkcs11.wrapper.PKCS11Exception
MethodParameters:
Name Flags
s
private void dispose();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic sun.security.pkcs11.SessionKeyRef.refList:Ljava/util/Set;
aload 0
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
1: aload 0
invokevirtual sun.security.pkcs11.SessionKeyRef.clear:()V
2: aload 0
getfield sun.security.pkcs11.SessionKeyRef.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.removeObject:()V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/pkcs11/SessionKeyRef;
public int compareTo(sun.security.pkcs11.SessionKeyRef);
descriptor: (Lsun/security/pkcs11/SessionKeyRef;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.pkcs11.SessionKeyRef.keyID:J
aload 1
getfield sun.security.pkcs11.SessionKeyRef.keyID:J
lcmp
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.SessionKeyRef.keyID:J
aload 1
getfield sun.security.pkcs11.SessionKeyRef.keyID:J
lcmp
ifge 3
iconst_m1
goto 4
StackMap locals:
StackMap stack:
3: iconst_1
StackMap locals:
StackMap stack: int
4: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/pkcs11/SessionKeyRef;
0 5 1 other Lsun/security/pkcs11/SessionKeyRef;
MethodParameters:
Name Flags
other
public int compareTo(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast sun.security.pkcs11.SessionKeyRef
invokevirtual sun.security.pkcs11.SessionKeyRef.compareTo:(Lsun/security/pkcs11/SessionKeyRef;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/ref/PhantomReference<Lsun/security/pkcs11/P11Key;>;Ljava/lang/Comparable<Lsun/security/pkcs11/SessionKeyRef;>;
SourceFile: "P11Key.java"