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 static final int DEFAULT_MAX_CACHE_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 20480
private final sun.security.util.Cache<sun.security.ssl.SessionId, sun.security.ssl.SSLSessionImpl> sessionCache;
descriptor: Lsun/security/util/Cache;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lsun/security/util/Cache<Lsun/security/ssl/SessionId;Lsun/security/ssl/SSLSessionImpl;>;
private final sun.security.util.Cache<java.lang.String, sun.security.ssl.SSLSessionImpl> sessionHostPortCache;
descriptor: Lsun/security/util/Cache;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lsun/security/util/Cache<Ljava/lang/String;Lsun/security/ssl/SSLSessionImpl;>;
private int cacheLimit;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int timeout;
descriptor: I
flags: (0x0002) ACC_PRIVATE
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
invokestatic 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
astore 2
start local 2 3: aload 0
aload 2
invokevirtual sun.security.ssl.SSLSessionContextImpl.isTimedout:(Ljavax/net/ssl/SSLSession;)Z
ifne 5
4: aload 2
areturn
5: 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 6 0 this Lsun/security/ssl/SSLSessionContextImpl;
0 6 1 sessionId [B
3 6 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=3, 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 1
iload 2
invokestatic 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
astore 3
start local 3 3: aload 0
aload 3
invokevirtual sun.security.ssl.SSLSessionContextImpl.isTimedout:(Ljavax/net/ssl/SSLSession;)Z
ifne 5
4: aload 3
areturn
5: 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 6 0 this Lsun/security/ssl/SSLSessionContextImpl;
0 6 1 hostname Ljava/lang/String;
0 6 2 port I
3 6 3 sess Lsun/security/ssl/SSLSessionImpl;
MethodParameters:
Name Flags
hostname
port
private static java.lang.String getKey(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
aload 0
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 1
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 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 hostname Ljava/lang/String;
0 5 1 port I
MethodParameters:
Name Flags
hostname
port
void put(sun.security.ssl.SSLSessionImpl);
descriptor: (Lsun/security/ssl/SSLSessionImpl;)V
flags: (0x0000)
Code:
stack=3, 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 1
invokevirtual sun.security.ssl.SSLSessionImpl.getPeerHost:()Ljava/lang/String;
aload 1
invokevirtual sun.security.ssl.SSLSessionImpl.getPeerPort:()I
invokestatic 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=3, 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 2
invokevirtual sun.security.ssl.SSLSessionImpl.getPeerHost:()Ljava/lang/String;
aload 2
invokevirtual sun.security.ssl.SSLSessionImpl.getPeerPort:()I
invokestatic 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 static int getDefaultCacheLimit();
descriptor: ()I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=0
0: new sun.security.action.GetIntegerAction
dup
ldc "javax.net.ssl.sessionCacheSize"
1: sipush 20480
2: invokespecial sun.security.action.GetIntegerAction.<init>:(Ljava/lang/String;I)V
3: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
istore 0
start local 0 4: iload 0
iflt 7
5: iload 0
6: ireturn
7: StackMap locals: int
StackMap stack:
getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 15
ldc "ssl"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 15
8: ldc "invalid System Property javax.net.ssl.sessionCacheSize, use the default session cache size (20480) instead"
iconst_0
anewarray java.lang.Object
9: invokestatic sun.security.ssl.SSLLogger.warning:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 0 10: goto 15
StackMap locals:
StackMap stack: java.lang.Exception
11: pop
12: getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 15
ldc "ssl"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 15
13: ldc "the System Property javax.net.ssl.sessionCacheSize is not available, use the default value (20480) instead"
iconst_0
anewarray java.lang.Object
14: invokestatic sun.security.ssl.SSLLogger.warning:(Ljava/lang/String;[Ljava/lang/Object;)V
15: StackMap locals:
StackMap stack:
sipush 20480
ireturn
LocalVariableTable:
Start End Slot Name Signature
4 10 0 defaultCacheLimit I
Exception table:
from to target type
0 6 11 Class java.lang.Exception
7 10 11 Class java.lang.Exception
private boolean isTimedout(javax.net.ssl.SSLSession);
descriptor: (Ljavax/net/ssl/SSLSession;)Z
flags: (0x0002) ACC_PRIVATE
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$SessionCacheVisitor
InnerClasses:
private 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