final class sun.security.pkcs11.Session implements java.lang.Comparable<sun.security.pkcs11.Session>
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.pkcs11.Session
super_class: java.lang.Object
{
private static final long MAX_IDLE_TIME;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 180000
final sun.security.pkcs11.Token token;
descriptor: Lsun/security/pkcs11/Token;
flags: (0x0010) ACC_FINAL
private final long id;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.atomic.AtomicInteger createdObjects;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private long lastAccess;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private final sun.security.pkcs11.SessionRef sessionRef;
descriptor: Lsun/security/pkcs11/SessionRef;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(sun.security.pkcs11.Token, long);
descriptor: (Lsun/security/pkcs11/Token;J)V
flags: (0x0000)
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield sun.security.pkcs11.Session.token:Lsun/security/pkcs11/Token;
2: aload 0
lload 2
putfield sun.security.pkcs11.Session.id:J
3: aload 0
new java.util.concurrent.atomic.AtomicInteger
dup
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:()V
putfield sun.security.pkcs11.Session.createdObjects:Ljava/util/concurrent/atomic/AtomicInteger;
4: aload 0
invokevirtual sun.security.pkcs11.Session.id:()J
pop2
5: aload 0
new sun.security.pkcs11.SessionRef
dup
aload 0
lload 2
aload 1
invokespecial sun.security.pkcs11.SessionRef.<init>:(Lsun/security/pkcs11/Session;JLsun/security/pkcs11/Token;)V
putfield sun.security.pkcs11.Session.sessionRef:Lsun/security/pkcs11/SessionRef;
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/pkcs11/Session;
0 7 1 token Lsun/security/pkcs11/Token;
0 7 2 id J
MethodParameters:
Name Flags
token
id
public int compareTo(sun.security.pkcs11.Session);
descriptor: (Lsun/security/pkcs11/Session;)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.Session.lastAccess:J
aload 1
getfield sun.security.pkcs11.Session.lastAccess:J
lcmp
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.Session.lastAccess:J
aload 1
getfield sun.security.pkcs11.Session.lastAccess: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/Session;
0 5 1 other Lsun/security/pkcs11/Session;
MethodParameters:
Name Flags
other
boolean isLive(long);
descriptor: (J)Z
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: lload 1
aload 0
getfield sun.security.pkcs11.Session.lastAccess:J
lsub
ldc 180000
lcmp
ifge 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/pkcs11/Session;
0 2 1 currentTime J
MethodParameters:
Name Flags
currentTime
long idInternal();
descriptor: ()J
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs11.Session.id:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/pkcs11/Session;
long id();
descriptor: ()J
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs11.Session.token:Lsun/security/pkcs11/Token;
aload 0
invokevirtual sun.security.pkcs11.Token.isPresent:(Lsun/security/pkcs11/Session;)Z
ifne 2
1: new java.security.ProviderException
dup
ldc "Token has been removed"
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokestatic java.lang.System.currentTimeMillis:()J
putfield sun.security.pkcs11.Session.lastAccess:J
3: aload 0
getfield sun.security.pkcs11.Session.id:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/pkcs11/Session;
void addObject();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs11.Session.createdObjects:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.incrementAndGet:()I
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/pkcs11/Session;
void removeObject();
descriptor: ()V
flags: (0x0000)
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs11.Session.createdObjects:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.decrementAndGet:()I
istore 1
start local 1 1: iload 1
ifne 4
2: aload 0
getfield sun.security.pkcs11.Session.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.sessionManager:Lsun/security/pkcs11/SessionManager;
aload 0
invokevirtual sun.security.pkcs11.SessionManager.demoteObjSession:(Lsun/security/pkcs11/Session;)V
3: goto 6
StackMap locals: int
StackMap stack:
4: iload 1
ifge 6
5: new java.security.ProviderException
dup
new java.lang.StringBuilder
dup
ldc "Internal error: objects created "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/pkcs11/Session;
1 7 1 n I
boolean hasObjects();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs11.Session.createdObjects:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/pkcs11/Session;
void close();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.security.pkcs11.Session.hasObjects:()Z
ifeq 4
1: new java.security.ProviderException
dup
2: ldc "Internal error: close session with active objects"
3: invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.Session.sessionRef:Lsun/security/pkcs11/SessionRef;
invokevirtual sun.security.pkcs11.SessionRef.dispose:()V
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/security/pkcs11/Session;
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.Session
invokevirtual sun.security.pkcs11.Session.compareTo:(Lsun/security/pkcs11/Session;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/lang/Comparable<Lsun/security/pkcs11/Session;>;
SourceFile: "Session.java"