final class sun.security.pkcs11.SessionKeyRef extends java.lang.ref.PhantomReference<sun.security.pkcs11.P11Key>
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> refSet;
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
private boolean wrapperKeyUsed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lsun/security/pkcs11/SessionKeyRef;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.security.pkcs11.SessionKeyRef.$assertionsDisabled:Z
3: new java.lang.ref.ReferenceQueue
dup
invokespecial java.lang.ref.ReferenceQueue.<init>:()V
4: putstatic sun.security.pkcs11.SessionKeyRef.refQueue:Ljava/lang/ref/ReferenceQueue;
5: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
invokestatic java.util.Collections.synchronizedSet:(Ljava/util/Set;)Ljava/util/Set;
6: putstatic sun.security.pkcs11.SessionKeyRef.refSet:Ljava/util/Set;
7: 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=1, locals=1, args_size=0
0: StackMap locals:
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 0
start local 0 1: aload 0
ifnonnull 3
2: goto 5
3: StackMap locals: sun.security.pkcs11.SessionKeyRef
StackMap stack:
aload 0
invokevirtual sun.security.pkcs11.SessionKeyRef.dispose:()V
end local 0 4: goto 0
5: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
1 4 0 next Lsun/security/pkcs11/SessionKeyRef;
void <init>(sun.security.pkcs11.P11Key, long, boolean, sun.security.pkcs11.Session);
descriptor: (Lsun/security/pkcs11/P11Key;JZLsun/security/pkcs11/Session;)V
flags: (0x0000)
Code:
stack=4, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 4 start local 5 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 5
ifnonnull 3
2: new java.security.ProviderException
dup
ldc "key must be associated with a session"
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: sun.security.pkcs11.SessionKeyRef sun.security.pkcs11.P11Key long int sun.security.pkcs11.Session
StackMap stack:
aload 0
lload 2
aload 5
invokevirtual sun.security.pkcs11.SessionKeyRef.registerNativeKey:(JLsun/security/pkcs11/Session;)V
4: aload 0
iload 4
putfield sun.security.pkcs11.SessionKeyRef.wrapperKeyUsed:Z
5: getstatic sun.security.pkcs11.SessionKeyRef.refSet:Ljava/util/Set;
aload 0
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
6: invokestatic sun.security.pkcs11.SessionKeyRef.drainRefQueueBounded:()V
7: return
end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/security/pkcs11/SessionKeyRef;
0 8 1 p11Key Lsun/security/pkcs11/P11Key;
0 8 2 keyID J
0 8 4 wrapperKeyUsed Z
0 8 5 session Lsun/security/pkcs11/Session;
MethodParameters:
Name Flags
p11Key
keyID
wrapperKeyUsed
session
void registerNativeKey(long, sun.security.pkcs11.Session);
descriptor: (JLsun/security/pkcs11/Session;)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 3 0: getstatic sun.security.pkcs11.SessionKeyRef.$assertionsDisabled:Z
ifne 1
lload 1
lconst_0
lcmp
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic sun.security.pkcs11.SessionKeyRef.$assertionsDisabled:Z
ifne 2
aload 3
ifnonnull 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
lload 1
aload 3
invokevirtual sun.security.pkcs11.SessionKeyRef.updateNativeKey:(JLsun/security/pkcs11/Session;)V
3: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/pkcs11/SessionKeyRef;
0 4 1 newKeyID J
0 4 3 newSession Lsun/security/pkcs11/Session;
MethodParameters:
Name Flags
newKeyID
newSession
void removeNativeKey();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic sun.security.pkcs11.SessionKeyRef.$assertionsDisabled:Z
ifne 1
aload 0
getfield sun.security.pkcs11.SessionKeyRef.session:Lsun/security/pkcs11/Session;
ifnonnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
lconst_0
aconst_null
invokevirtual sun.security.pkcs11.SessionKeyRef.updateNativeKey:(JLsun/security/pkcs11/Session;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/pkcs11/SessionKeyRef;
private void updateNativeKey(long, sun.security.pkcs11.Session);
descriptor: (JLsun/security/pkcs11/Session;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 3 0: lload 1
lconst_0
lcmp
ifne 16
1: getstatic sun.security.pkcs11.SessionKeyRef.$assertionsDisabled:Z
ifne 2
aload 3
ifnull 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.SessionKeyRef.session:Lsun/security/pkcs11/Session;
getfield sun.security.pkcs11.Session.token:Lsun/security/pkcs11/Token;
astore 4
start local 4 3: aload 4
invokevirtual sun.security.pkcs11.Token.isValid:()Z
ifeq 14
4: aconst_null
astore 5
start local 5 5: aload 4
invokevirtual sun.security.pkcs11.Token.getOpSession:()Lsun/security/pkcs11/Session;
astore 5
6: aload 4
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 5
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
7: goto 13
StackMap locals: sun.security.pkcs11.SessionKeyRef long sun.security.pkcs11.Session sun.security.pkcs11.Token sun.security.pkcs11.Session
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
8: pop
9: aload 4
aload 5
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
pop
goto 14
10: StackMap locals:
StackMap stack: java.lang.Throwable
astore 6
11: aload 4
aload 5
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
pop
12: aload 6
athrow
13: StackMap locals:
StackMap stack:
aload 4
aload 5
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
pop
end local 5 14: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.SessionKeyRef.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.removeObject:()V
end local 4 15: goto 17
16: StackMap locals:
StackMap stack:
aload 3
invokevirtual sun.security.pkcs11.Session.addObject:()V
17: StackMap locals:
StackMap stack:
aload 0
lload 1
putfield sun.security.pkcs11.SessionKeyRef.keyID:J
18: aload 0
aload 3
putfield sun.security.pkcs11.SessionKeyRef.session:Lsun/security/pkcs11/Session;
19: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lsun/security/pkcs11/SessionKeyRef;
0 20 1 newKeyID J
0 20 3 newSession Lsun/security/pkcs11/Session;
3 15 4 token Lsun/security/pkcs11/Token;
5 14 5 s Lsun/security/pkcs11/Session;
Exception table:
from to target type
5 7 8 Class sun.security.pkcs11.wrapper.PKCS11Exception
5 9 10 any
MethodParameters:
Name Flags
newKeyID
newSession
void dispose();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs11.SessionKeyRef.wrapperKeyUsed:Z
ifeq 2
1: invokestatic sun.security.pkcs11.NativeKeyHolder.decWrapperKeyRef:()V
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.SessionKeyRef.keyID:J
lconst_0
lcmp
ifeq 4
3: aload 0
invokevirtual sun.security.pkcs11.SessionKeyRef.removeNativeKey:()V
4: StackMap locals:
StackMap stack:
getstatic sun.security.pkcs11.SessionKeyRef.refSet:Ljava/util/Set;
aload 0
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
5: aload 0
invokevirtual sun.security.pkcs11.SessionKeyRef.clear:()V
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/pkcs11/SessionKeyRef;
}
Signature: Ljava/lang/ref/PhantomReference<Lsun/security/pkcs11/P11Key;>;
SourceFile: "P11Key.java"