final class sun.security.ssl.SSLSessionContextImpl implements javax.net.ssl.SSLSessionContext
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.SSLSessionContextImpl
super_class: java.lang.Object
{
private sun.security.util.Cache sessionCache;
descriptor: Lsun/security/util/Cache;
flags: (0x0002) ACC_PRIVATE
private sun.security.util.Cache sessionHostPortCache;
descriptor: Lsun/security/util/Cache;
flags: (0x0002) ACC_PRIVATE
private int cacheLimit;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int timeout;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private static final sun.security.ssl.Debug debug;
descriptor: Lsun/security/ssl/Debug;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "ssl"
invokestatic sun.security.ssl.Debug.getInstance:(Ljava/lang/String;)Lsun/security/ssl/Debug;
putstatic sun.security.ssl.SSLSessionContextImpl.debug:Lsun/security/ssl/Debug;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 0
invokevirtual sun.security.ssl.SSLSessionContextImpl.getDefaultCacheLimit:()I
putfield sun.security.ssl.SSLSessionContextImpl.cacheLimit:I
2: aload 0
ldc 86400
putfield sun.security.ssl.SSLSessionContextImpl.timeout:I
3: aload 0
aload 0
getfield sun.security.ssl.SSLSessionContextImpl.cacheLimit:I
aload 0
getfield sun.security.ssl.SSLSessionContextImpl.timeout:I
invokestatic sun.security.util.Cache.newSoftMemoryCache:(II)Lsun/security/util/Cache;
putfield sun.security.ssl.SSLSessionContextImpl.sessionCache:Lsun/security/util/Cache;
4: aload 0
aload 0
getfield sun.security.ssl.SSLSessionContextImpl.cacheLimit:I
aload 0
getfield sun.security.ssl.SSLSessionContextImpl.timeout:I
invokestatic sun.security.util.Cache.newSoftMemoryCache:(II)Lsun/security/util/Cache;
putfield sun.security.ssl.SSLSessionContextImpl.sessionHostPortCache:Lsun/security/util/Cache;
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/security/ssl/SSLSessionContextImpl;
public javax.net.ssl.SSLSession getSession(byte[]);
descriptor: ([B)Ljavax/net/ssl/SSLSession;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "session id cannot be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.SSLSessionContextImpl.sessionCache:Lsun/security/util/Cache;
new sun.security.ssl.SessionId
dup
aload 1
invokespecial sun.security.ssl.SessionId.<init>:([B)V
invokevirtual sun.security.util.Cache.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.security.ssl.SSLSessionImpl
3: astore 2
start local 2 4: aload 0
aload 2
invokevirtual sun.security.ssl.SSLSessionContextImpl.isTimedout:(Ljavax/net/ssl/SSLSession;)Z
ifne 6
5: aload 2
areturn
6: StackMap locals: sun.security.ssl.SSLSessionImpl
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/ssl/SSLSessionContextImpl;
0 7 1 sessionId [B
4 7 2 sess Lsun/security/ssl/SSLSessionImpl;
MethodParameters:
Name Flags
sessionId
public java.util.Enumeration<byte[]> getIds();
descriptor: ()Ljava/util/Enumeration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new sun.security.ssl.SSLSessionContextImpl$SessionCacheVisitor
dup
aload 0
invokespecial sun.security.ssl.SSLSessionContextImpl$SessionCacheVisitor.<init>:(Lsun/security/ssl/SSLSessionContextImpl;)V
astore 1
start local 1 1: aload 0
getfield sun.security.ssl.SSLSessionContextImpl.sessionCache:Lsun/security/util/Cache;
aload 1
invokevirtual sun.security.util.Cache.accept:(Lsun/security/util/Cache$CacheVisitor;)V
2: aload 1
invokevirtual sun.security.ssl.SSLSessionContextImpl$SessionCacheVisitor.getSessionIds:()Ljava/util/Enumeration;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/ssl/SSLSessionContextImpl;
1 3 1 scVisitor Lsun/security/ssl/SSLSessionContextImpl$SessionCacheVisitor;
Signature: ()Ljava/util/Enumeration<[B>;
public void setSessionTimeout(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifge 2
1: new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.SSLSessionContextImpl.timeout:I
iload 1
if_icmpeq 6
3: aload 0
getfield sun.security.ssl.SSLSessionContextImpl.sessionCache:Lsun/security/util/Cache;
iload 1
invokevirtual sun.security.util.Cache.setTimeout:(I)V
4: aload 0
getfield sun.security.ssl.SSLSessionContextImpl.sessionHostPortCache:Lsun/security/util/Cache;
iload 1
invokevirtual sun.security.util.Cache.setTimeout:(I)V
5: aload 0
iload 1
putfield sun.security.ssl.SSLSessionContextImpl.timeout:I
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/ssl/SSLSessionContextImpl;
0 7 1 seconds I
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
seconds
public int getSessionTimeout();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ssl.SSLSessionContextImpl.timeout:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ssl/SSLSessionContextImpl;
public void setSessionCacheSize(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifge 2
1: new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.SSLSessionContextImpl.cacheLimit:I
iload 1
if_icmpeq 6
3: aload 0
getfield sun.security.ssl.SSLSessionContextImpl.sessionCache:Lsun/security/util/Cache;
iload 1
invokevirtual sun.security.util.Cache.setCapacity:(I)V
4: aload 0
getfield sun.security.ssl.SSLSessionContextImpl.sessionHostPortCache:Lsun/security/util/Cache;
iload 1
invokevirtual sun.security.util.Cache.setCapacity:(I)V
5: aload 0
iload 1
putfield sun.security.ssl.SSLSessionContextImpl.cacheLimit:I
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/ssl/SSLSessionContextImpl;
0 7 1 size I
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
size
public int getSessionCacheSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ssl.SSLSessionContextImpl.cacheLimit:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ssl/SSLSessionContextImpl;
sun.security.ssl.SSLSessionImpl get(byte[]);
descriptor: ([B)Lsun/security/ssl/SSLSessionImpl;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual sun.security.ssl.SSLSessionContextImpl.getSession:([B)Ljavax/net/ssl/SSLSession;
checkcast sun.security.ssl.SSLSessionImpl
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ssl/SSLSessionContextImpl;
0 1 1 id [B
MethodParameters:
Name Flags
id
sun.security.ssl.SSLSessionImpl get(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Lsun/security/ssl/SSLSessionImpl;
flags: (0x0000)
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
iload 2
iconst_m1
if_icmpne 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.SSLSessionContextImpl.sessionHostPortCache:Lsun/security/util/Cache;
aload 0
aload 1
iload 2
invokevirtual sun.security.ssl.SSLSessionContextImpl.getKey:(Ljava/lang/String;I)Ljava/lang/String;
invokevirtual sun.security.util.Cache.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.security.ssl.SSLSessionImpl
3: astore 3
start local 3 4: aload 0
aload 3
invokevirtual sun.security.ssl.SSLSessionContextImpl.isTimedout:(Ljavax/net/ssl/SSLSession;)Z
ifne 6
5: aload 3
areturn
6: StackMap locals: sun.security.ssl.SSLSessionImpl
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/ssl/SSLSessionContextImpl;
0 7 1 hostname Ljava/lang/String;
0 7 2 port I
4 7 3 sess Lsun/security/ssl/SSLSessionImpl;
MethodParameters:
Name Flags
hostname
port
private java.lang.String getKey(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.StringBuilder
dup
aload 1
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;
1: iload 2
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
4: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/ssl/SSLSessionContextImpl;
0 5 1 hostname Ljava/lang/String;
0 5 2 port I
MethodParameters:
Name Flags
hostname
port
void put(sun.security.ssl.SSLSessionImpl);
descriptor: (Lsun/security/ssl/SSLSessionImpl;)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.ssl.SSLSessionContextImpl.sessionCache:Lsun/security/util/Cache;
aload 1
invokevirtual sun.security.ssl.SSLSessionImpl.getSessionId:()Lsun/security/ssl/SessionId;
aload 1
invokevirtual sun.security.util.Cache.put:(Ljava/lang/Object;Ljava/lang/Object;)V
1: aload 1
invokevirtual sun.security.ssl.SSLSessionImpl.getPeerHost:()Ljava/lang/String;
ifnull 5
aload 1
invokevirtual sun.security.ssl.SSLSessionImpl.getPeerPort:()I
iconst_m1
if_icmpeq 5
2: aload 0
getfield sun.security.ssl.SSLSessionContextImpl.sessionHostPortCache:Lsun/security/util/Cache;
3: aload 0
aload 1
invokevirtual sun.security.ssl.SSLSessionImpl.getPeerHost:()Ljava/lang/String;
aload 1
invokevirtual sun.security.ssl.SSLSessionImpl.getPeerPort:()I
invokevirtual sun.security.ssl.SSLSessionContextImpl.getKey:(Ljava/lang/String;I)Ljava/lang/String;
aload 1
4: invokevirtual sun.security.util.Cache.put:(Ljava/lang/Object;Ljava/lang/Object;)V
5: StackMap locals:
StackMap stack:
aload 1
aload 0
invokevirtual sun.security.ssl.SSLSessionImpl.setContext:(Lsun/security/ssl/SSLSessionContextImpl;)V
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/ssl/SSLSessionContextImpl;
0 7 1 s Lsun/security/ssl/SSLSessionImpl;
MethodParameters:
Name Flags
s
void remove(sun.security.ssl.SessionId);
descriptor: (Lsun/security/ssl/SessionId;)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.ssl.SSLSessionContextImpl.sessionCache:Lsun/security/util/Cache;
aload 1
invokevirtual sun.security.util.Cache.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.security.ssl.SSLSessionImpl
astore 2
start local 2 1: aload 2
ifnull 6
2: aload 0
getfield sun.security.ssl.SSLSessionContextImpl.sessionCache:Lsun/security/util/Cache;
aload 1
invokevirtual sun.security.util.Cache.remove:(Ljava/lang/Object;)V
3: aload 0
getfield sun.security.ssl.SSLSessionContextImpl.sessionHostPortCache:Lsun/security/util/Cache;
4: aload 0
aload 2
invokevirtual sun.security.ssl.SSLSessionImpl.getPeerHost:()Ljava/lang/String;
aload 2
invokevirtual sun.security.ssl.SSLSessionImpl.getPeerPort:()I
invokevirtual sun.security.ssl.SSLSessionContextImpl.getKey:(Ljava/lang/String;I)Ljava/lang/String;
5: invokevirtual sun.security.util.Cache.remove:(Ljava/lang/Object;)V
6: StackMap locals: sun.security.ssl.SSLSessionImpl
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/ssl/SSLSessionContextImpl;
0 7 1 key Lsun/security/ssl/SessionId;
1 7 2 s Lsun/security/ssl/SSLSessionImpl;
MethodParameters:
Name Flags
key
private int getDefaultCacheLimit();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: new sun.security.ssl.SSLSessionContextImpl$1
dup
aload 0
invokespecial sun.security.ssl.SSLSessionContextImpl$1.<init>:(Lsun/security/ssl/SSLSessionContextImpl;)V
2: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 3: aload 2
ifnull 4
aload 2
invokestatic java.lang.Integer.valueOf:(Ljava/lang/String;)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
goto 5
StackMap locals: int java.lang.String
StackMap stack:
4: iconst_0
StackMap locals:
StackMap stack: int
5: istore 1
end local 2 6: goto 8
StackMap locals: sun.security.ssl.SSLSessionContextImpl int
StackMap stack: java.lang.Exception
7: pop
8: StackMap locals:
StackMap stack:
iload 1
ifle 9
iload 1
goto 10
StackMap locals:
StackMap stack:
9: iconst_0
StackMap locals:
StackMap stack: int
10: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/security/ssl/SSLSessionContextImpl;
1 11 1 cacheLimit I
3 6 2 s Ljava/lang/String;
Exception table:
from to target type
1 6 7 Class java.lang.Exception
boolean isTimedout(javax.net.ssl.SSLSession);
descriptor: (Ljavax/net/ssl/SSLSession;)Z
flags: (0x0000)
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.ssl.SSLSessionContextImpl.timeout:I
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
ifnull 6
aload 1
invokeinterface javax.net.ssl.SSLSession.getCreationTime:()J
aload 0
getfield sun.security.ssl.SSLSessionContextImpl.timeout:I
i2l
ldc 1000
lmul
ladd
3: invokestatic java.lang.System.currentTimeMillis:()J
lcmp
ifgt 6
4: aload 1
invokeinterface javax.net.ssl.SSLSession.invalidate:()V
5: iconst_1
ireturn
6: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/ssl/SSLSessionContextImpl;
0 7 1 sess Ljavax/net/ssl/SSLSession;
MethodParameters:
Name Flags
sess
}
SourceFile: "SSLSessionContextImpl.java"
NestMembers:
sun.security.ssl.SSLSessionContextImpl$1 sun.security.ssl.SSLSessionContextImpl$SessionCacheVisitor
InnerClasses:
sun.security.ssl.SSLSessionContextImpl$1
final SessionCacheVisitor = sun.security.ssl.SSLSessionContextImpl$SessionCacheVisitor of sun.security.ssl.SSLSessionContextImpl
public abstract CacheVisitor = sun.security.util.Cache$CacheVisitor of sun.security.util.Cache