public final class org.glassfish.grizzly.ssl.SSLUtils
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.glassfish.grizzly.ssl.SSLUtils
super_class: java.lang.Object
{
private static final boolean ANDROID_WORKAROUND_NEEDED;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int LOLLIPOP_VER;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 21
private static final java.lang.String SSL_CONNECTION_CTX_ATTR_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static final org.glassfish.grizzly.attributes.Attribute<org.glassfish.grizzly.ssl.SSLConnectionContext> SSL_CTX_ATTR;
descriptor: Lorg/glassfish/grizzly/attributes/Attribute;
flags: (0x0018) ACC_STATIC, ACC_FINAL
Signature: Lorg/glassfish/grizzly/attributes/Attribute<Lorg/glassfish/grizzly/ssl/SSLConnectionContext;>;
private static final org.glassfish.grizzly.ssl.SSLConnectionContext$Allocator HS_UNWRAP_ALLOCATOR;
descriptor: Lorg/glassfish/grizzly/ssl/SSLConnectionContext$Allocator;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.glassfish.grizzly.ssl.SSLConnectionContext$Allocator HS_WRAP_ALLOCATOR;
descriptor: Lorg/glassfish/grizzly/ssl/SSLConnectionContext$Allocator;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final byte CHANGE_CIPHER_SPECT_CONTENT_TYPE;
descriptor: B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 20
private static final byte APPLICATION_DATA_CONTENT_TYPE;
descriptor: B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 23
private static final int ;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 5
private static final int SSL20_HELLO_VERSION;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int MIN_VERSION;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 768
private static final int MAX_MAJOR_VERSION;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
private static final org.glassfish.grizzly.ThreadCache$CachedTypeIndex<org.glassfish.grizzly.Buffer> SSL_OUTPUT_BUFFER_IDX;
descriptor: Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex<Lorg/glassfish/grizzly/Buffer;>;
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=3, locals=2, args_size=0
0: ldc Lorg/glassfish/grizzly/ssl/SSLUtils;
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 org.glassfish.grizzly.ssl.SSLUtils.$assertionsDisabled:Z
3: iconst_0
istore 0
start local 0 4: ldc "android runtime"
ldc "java.runtime.name"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 11
5: ldc "android.os.Build$VERSION"
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
ldc "SDK_INT"
invokevirtual java.lang.Class.getField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
aconst_null
invokevirtual java.lang.reflect.Field.getInt:(Ljava/lang/Object;)I
istore 1
start local 1 6: iload 1
bipush 21
if_icmplt 7
iconst_1
goto 8
StackMap locals: int int
StackMap stack:
7: iconst_0
StackMap locals:
StackMap stack: int
8: istore 0
end local 1 9: goto 11
StackMap locals: int
StackMap stack: java.lang.Throwable
10: pop
11: StackMap locals:
StackMap stack:
iload 0
putstatic org.glassfish.grizzly.ssl.SSLUtils.ANDROID_WORKAROUND_NEEDED:Z
end local 0 12: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
ldc Lorg/glassfish/grizzly/ssl/SSLUtils;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ".ssl-connection-context"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putstatic org.glassfish.grizzly.ssl.SSLUtils.SSL_CONNECTION_CTX_ATTR_NAME:Ljava/lang/String;
13: getstatic org.glassfish.grizzly.Grizzly.DEFAULT_ATTRIBUTE_BUILDER:Lorg/glassfish/grizzly/attributes/AttributeBuilder;
getstatic org.glassfish.grizzly.ssl.SSLUtils.SSL_CONNECTION_CTX_ATTR_NAME:Ljava/lang/String;
invokeinterface org.glassfish.grizzly.attributes.AttributeBuilder.createAttribute:(Ljava/lang/String;)Lorg/glassfish/grizzly/attributes/Attribute;
putstatic org.glassfish.grizzly.ssl.SSLUtils.SSL_CTX_ATTR:Lorg/glassfish/grizzly/attributes/Attribute;
14: new org.glassfish.grizzly.ssl.SSLUtils$1
dup
invokespecial org.glassfish.grizzly.ssl.SSLUtils$1.<init>:()V
putstatic org.glassfish.grizzly.ssl.SSLUtils.HS_UNWRAP_ALLOCATOR:Lorg/glassfish/grizzly/ssl/SSLConnectionContext$Allocator;
15: new org.glassfish.grizzly.ssl.SSLUtils$2
dup
invokespecial org.glassfish.grizzly.ssl.SSLUtils$2.<init>:()V
putstatic org.glassfish.grizzly.ssl.SSLUtils.HS_WRAP_ALLOCATOR:Lorg/glassfish/grizzly/ssl/SSLConnectionContext$Allocator;
16: new java.lang.StringBuilder
dup
ldc Lorg/glassfish/grizzly/ssl/SSLBaseFilter;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".output-buffer-cache"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
17: ldc Lorg/glassfish/grizzly/Buffer;
iconst_4
18: invokestatic org.glassfish.grizzly.ThreadCache.obtainIndex:(Ljava/lang/String;Ljava/lang/Class;I)Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
putstatic org.glassfish.grizzly.ssl.SSLUtils.SSL_OUTPUT_BUFFER_IDX:Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
19: return
LocalVariableTable:
Start End Slot Name Signature
4 12 0 isNeedWorkAround Z
6 9 1 version I
Exception table:
from to target type
5 9 10 Class java.lang.Throwable
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/ssl/SSLUtils;
public static org.glassfish.grizzly.ssl.SSLConnectionContext getSslConnectionContext(org.glassfish.grizzly.Connection);
descriptor: (Lorg/glassfish/grizzly/Connection;)Lorg/glassfish/grizzly/ssl/SSLConnectionContext;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.glassfish.grizzly.ssl.SSLUtils.SSL_CTX_ATTR:Lorg/glassfish/grizzly/attributes/Attribute;
aload 0
invokevirtual org.glassfish.grizzly.attributes.Attribute.get:(Lorg/glassfish/grizzly/attributes/AttributeStorage;)Ljava/lang/Object;
checkcast org.glassfish.grizzly.ssl.SSLConnectionContext
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 connection Lorg/glassfish/grizzly/Connection;
MethodParameters:
Name Flags
connection final
public static javax.net.ssl.SSLEngine getSSLEngine(org.glassfish.grizzly.Connection);
descriptor: (Lorg/glassfish/grizzly/Connection;)Ljavax/net/ssl/SSLEngine;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.glassfish.grizzly.ssl.SSLUtils.getSslConnectionContext:(Lorg/glassfish/grizzly/Connection;)Lorg/glassfish/grizzly/ssl/SSLConnectionContext;
astore 1
start local 1 1: aload 1
ifnonnull 2
aconst_null
goto 3
StackMap locals: org.glassfish.grizzly.ssl.SSLConnectionContext
StackMap stack:
2: aload 1
invokevirtual org.glassfish.grizzly.ssl.SSLConnectionContext.getSslEngine:()Ljavax/net/ssl/SSLEngine;
StackMap locals:
StackMap stack: javax.net.ssl.SSLEngine
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 connection Lorg/glassfish/grizzly/Connection;
1 4 1 sslCtx Lorg/glassfish/grizzly/ssl/SSLConnectionContext;
MethodParameters:
Name Flags
connection final
public static void setSSLEngine(org.glassfish.grizzly.Connection, javax.net.ssl.SSLEngine);
descriptor: (Lorg/glassfish/grizzly/Connection;Ljavax/net/ssl/SSLEngine;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokestatic org.glassfish.grizzly.ssl.SSLUtils.getSslConnectionContext:(Lorg/glassfish/grizzly/Connection;)Lorg/glassfish/grizzly/ssl/SSLConnectionContext;
astore 2
start local 2 1: aload 2
ifnonnull 4
2: new org.glassfish.grizzly.ssl.SSLConnectionContext
dup
aload 0
invokespecial org.glassfish.grizzly.ssl.SSLConnectionContext.<init>:(Lorg/glassfish/grizzly/Connection;)V
astore 2
3: getstatic org.glassfish.grizzly.ssl.SSLUtils.SSL_CTX_ATTR:Lorg/glassfish/grizzly/attributes/Attribute;
aload 0
aload 2
invokevirtual org.glassfish.grizzly.attributes.Attribute.set:(Lorg/glassfish/grizzly/attributes/AttributeStorage;Ljava/lang/Object;)V
4: StackMap locals: org.glassfish.grizzly.ssl.SSLConnectionContext
StackMap stack:
aload 2
aload 1
invokevirtual org.glassfish.grizzly.ssl.SSLConnectionContext.configure:(Ljavax/net/ssl/SSLEngine;)V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 connection Lorg/glassfish/grizzly/Connection;
0 6 1 sslEngine Ljavax/net/ssl/SSLEngine;
1 6 2 ctx Lorg/glassfish/grizzly/ssl/SSLConnectionContext;
MethodParameters:
Name Flags
connection final
sslEngine final
public static int getSSLPacketSize(org.glassfish.grizzly.Buffer);
descriptor: (Lorg/glassfish/grizzly/Buffer;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=12, args_size=1
start local 0 0: aload 0
invokeinterface org.glassfish.grizzly.Buffer.remaining:()I
iconst_5
if_icmpge 2
1: iconst_m1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokeinterface org.glassfish.grizzly.Buffer.hasArray:()Z
ifeq 11
3: aload 0
invokeinterface org.glassfish.grizzly.Buffer.array:()[B
astore 6
start local 6 4: aload 0
invokeinterface org.glassfish.grizzly.Buffer.arrayOffset:()I
aload 0
invokeinterface org.glassfish.grizzly.Buffer.position:()I
iadd
istore 7
start local 7 5: aload 6
iload 7
iinc 7 1
baload
istore 1
start local 1 6: aload 6
iload 7
iinc 7 1
baload
istore 2
start local 2 7: aload 6
iload 7
iinc 7 1
baload
istore 3
start local 3 8: aload 6
iload 7
iinc 7 1
baload
istore 4
start local 4 9: aload 6
iload 7
baload
istore 5
end local 7 end local 6 start local 5 10: goto 17
end local 5 end local 4 end local 3 end local 2 end local 1 11: StackMap locals:
StackMap stack:
aload 0
invokeinterface org.glassfish.grizzly.Buffer.position:()I
istore 6
start local 6 12: aload 0
iload 6
iinc 6 1
invokeinterface org.glassfish.grizzly.Buffer.get:(I)B
istore 1
start local 1 13: aload 0
iload 6
iinc 6 1
invokeinterface org.glassfish.grizzly.Buffer.get:(I)B
istore 2
start local 2 14: aload 0
iload 6
iinc 6 1
invokeinterface org.glassfish.grizzly.Buffer.get:(I)B
istore 3
start local 3 15: aload 0
iload 6
iinc 6 1
invokeinterface org.glassfish.grizzly.Buffer.get:(I)B
istore 4
start local 4 16: aload 0
iload 6
invokeinterface org.glassfish.grizzly.Buffer.get:(I)B
istore 5
end local 6 start local 5 17: StackMap locals: org.glassfish.grizzly.Buffer int int int int int
StackMap stack:
iload 1
bipush 20
if_icmplt 25
iload 1
bipush 23
if_icmpgt 25
18: iload 2
istore 7
start local 7 19: iload 3
istore 8
start local 8 20: iload 7
bipush 8
ishl
iload 8
sipush 255
iand
ior
istore 9
start local 9 21: iload 9
sipush 768
if_icmplt 22
iload 7
iconst_3
if_icmple 23
22: StackMap locals: org.glassfish.grizzly.Buffer int int int int int top int int int
StackMap stack:
new javax.net.ssl.SSLException
dup
new java.lang.StringBuilder
dup
ldc "Unsupported record version major="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 7
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " minor="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 8
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial javax.net.ssl.SSLException.<init>:(Ljava/lang/String;)V
athrow
23: StackMap locals:
StackMap stack:
iload 4
sipush 255
iand
bipush 8
ishl
iload 5
sipush 255
iand
iadd
iconst_5
iadd
istore 6
end local 9 end local 8 end local 7 start local 6 24: goto 39
end local 6 25: StackMap locals: org.glassfish.grizzly.Buffer int int int int int
StackMap stack:
iload 1
sipush 128
iand
ifeq 26
iconst_1
goto 27
StackMap locals:
StackMap stack:
26: iconst_0
StackMap locals:
StackMap stack: int
27: istore 7
start local 7 28: iload 7
ifeq 38
iload 3
iconst_1
if_icmpeq 29
iload 3
iconst_4
if_icmpne 38
29: StackMap locals: org.glassfish.grizzly.Buffer int int int int int top int
StackMap stack:
iload 4
istore 8
start local 8 30: iload 5
istore 9
start local 9 31: iload 8
bipush 8
ishl
iload 9
sipush 255
iand
ior
istore 10
start local 10 32: iload 10
sipush 768
if_icmplt 33
iload 8
iconst_3
if_icmple 35
33: StackMap locals: int int int
StackMap stack:
iload 10
iconst_2
if_icmpeq 35
34: new javax.net.ssl.SSLException
dup
new java.lang.StringBuilder
dup
ldc "Unsupported record version major="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 8
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " minor="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 9
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial javax.net.ssl.SSLException.<init>:(Ljava/lang/String;)V
athrow
35: StackMap locals:
StackMap stack:
bipush 127
istore 11
start local 11 36: iload 1
iload 11
iand
bipush 8
ishl
iload 2
sipush 255
iand
iadd
iconst_2
iadd
istore 6
end local 11 end local 10 end local 9 end local 8 start local 6 37: goto 39
end local 6 38: StackMap locals:
StackMap stack:
new javax.net.ssl.SSLException
dup
ldc "Unrecognized SSL message, plaintext connection?"
invokespecial javax.net.ssl.SSLException.<init>:(Ljava/lang/String;)V
athrow
end local 7 start local 6 39: StackMap locals: org.glassfish.grizzly.Buffer int int int int int int
StackMap stack:
iload 6
ireturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 40 0 buf Lorg/glassfish/grizzly/Buffer;
6 11 1 byte0 B
13 40 1 byte0 B
7 11 2 byte1 B
14 40 2 byte1 B
8 11 3 byte2 B
15 40 3 byte2 B
9 11 4 byte3 B
16 40 4 byte3 B
10 11 5 byte4 B
17 40 5 byte4 B
4 10 6 array [B
5 10 7 pos I
12 17 6 pos I
24 25 6 len I
37 38 6 len I
39 40 6 len I
19 24 7 major B
20 24 8 minor B
21 24 9 v I
28 39 7 isShort Z
30 37 8 major B
31 37 9 minor B
32 37 10 v I
36 37 11 mask I
Exceptions:
throws javax.net.ssl.SSLException
MethodParameters:
Name Flags
buf final
public static void executeDelegatedTask(javax.net.ssl.SSLEngine);
descriptor: (Ljavax/net/ssl/SSLEngine;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: goto 2
start local 1 1: StackMap locals: java.lang.Runnable
StackMap stack:
aload 1
invokeinterface java.lang.Runnable.run:()V
end local 1 2: StackMap locals:
StackMap stack:
aload 0
invokevirtual javax.net.ssl.SSLEngine.getDelegatedTask:()Ljava/lang/Runnable;
dup
astore 1
start local 1 3: ifnonnull 1
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 sslEngine Ljavax/net/ssl/SSLEngine;
1 2 1 runnable Ljava/lang/Runnable;
3 5 1 runnable Ljava/lang/Runnable;
MethodParameters:
Name Flags
sslEngine final
public static boolean isHandshaking(javax.net.ssl.SSLEngine);
descriptor: (Ljavax/net/ssl/SSLEngine;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual javax.net.ssl.SSLEngine.getHandshakeStatus:()Ljavax/net/ssl/SSLEngineResult$HandshakeStatus;
astore 1
start local 1 1: aload 1
getstatic javax.net.ssl.SSLEngineResult$HandshakeStatus.FINISHED:Ljavax/net/ssl/SSLEngineResult$HandshakeStatus;
if_acmpeq 2
aload 1
getstatic javax.net.ssl.SSLEngineResult$HandshakeStatus.NOT_HANDSHAKING:Ljavax/net/ssl/SSLEngineResult$HandshakeStatus;
if_acmpne 3
StackMap locals: javax.net.ssl.SSLEngineResult$HandshakeStatus
StackMap stack:
2: iconst_0
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 sslEngine Ljavax/net/ssl/SSLEngine;
1 5 1 handshakeStatus Ljavax/net/ssl/SSLEngineResult$HandshakeStatus;
MethodParameters:
Name Flags
sslEngine final
public static javax.net.ssl.SSLEngineResult handshakeUnwrap(int, org.glassfish.grizzly.ssl.SSLConnectionContext, org.glassfish.grizzly.Buffer, org.glassfish.grizzly.Buffer);
descriptor: (ILorg/glassfish/grizzly/ssl/SSLConnectionContext;Lorg/glassfish/grizzly/Buffer;Lorg/glassfish/grizzly/Buffer;)Ljavax/net/ssl/SSLEngineResult;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
iload 0
aload 2
aload 3
getstatic org.glassfish.grizzly.ssl.SSLUtils.HS_UNWRAP_ALLOCATOR:Lorg/glassfish/grizzly/ssl/SSLConnectionContext$Allocator;
invokevirtual org.glassfish.grizzly.ssl.SSLConnectionContext.unwrap:(ILorg/glassfish/grizzly/Buffer;Lorg/glassfish/grizzly/Buffer;Lorg/glassfish/grizzly/ssl/SSLConnectionContext$Allocator;)Lorg/glassfish/grizzly/ssl/SSLConnectionContext$SslResult;
astore 4
start local 4 1: aload 4
invokevirtual org.glassfish.grizzly.ssl.SSLConnectionContext$SslResult.getOutput:()Lorg/glassfish/grizzly/Buffer;
astore 5
start local 5 2: getstatic org.glassfish.grizzly.ssl.SSLUtils.$assertionsDisabled:Z
ifne 3
aload 5
invokeinterface org.glassfish.grizzly.Buffer.isComposite:()Z
ifeq 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals: org.glassfish.grizzly.ssl.SSLConnectionContext$SslResult org.glassfish.grizzly.Buffer
StackMap stack:
aload 5
aload 3
if_acmpeq 5
4: aload 5
invokeinterface org.glassfish.grizzly.Buffer.dispose:()V
5: StackMap locals:
StackMap stack:
aload 4
invokevirtual org.glassfish.grizzly.ssl.SSLConnectionContext$SslResult.isError:()Z
ifeq 7
6: aload 4
invokevirtual org.glassfish.grizzly.ssl.SSLConnectionContext$SslResult.getError:()Ljavax/net/ssl/SSLException;
athrow
7: StackMap locals:
StackMap stack:
aload 4
invokevirtual org.glassfish.grizzly.ssl.SSLConnectionContext$SslResult.getSslEngineResult:()Ljavax/net/ssl/SSLEngineResult;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 length I
0 8 1 sslCtx Lorg/glassfish/grizzly/ssl/SSLConnectionContext;
0 8 2 inputBuffer Lorg/glassfish/grizzly/Buffer;
0 8 3 tmpOutputBuffer Lorg/glassfish/grizzly/Buffer;
1 8 4 result Lorg/glassfish/grizzly/ssl/SSLConnectionContext$SslResult;
2 8 5 output Lorg/glassfish/grizzly/Buffer;
Exceptions:
throws javax.net.ssl.SSLException
MethodParameters:
Name Flags
length final
sslCtx final
inputBuffer final
tmpOutputBuffer final
public static org.glassfish.grizzly.Buffer handshakeWrap(org.glassfish.grizzly.Connection, org.glassfish.grizzly.ssl.SSLConnectionContext, org.glassfish.grizzly.Buffer);
descriptor: (Lorg/glassfish/grizzly/Connection;Lorg/glassfish/grizzly/ssl/SSLConnectionContext;Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/Buffer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual org.glassfish.grizzly.ssl.SSLConnectionContext.getNetBufferSize:()I
istore 3
start local 3 1: aload 2
ifnull 6
aload 2
invokeinterface org.glassfish.grizzly.Buffer.isComposite:()Z
ifne 6
aload 2
invokeinterface org.glassfish.grizzly.Buffer.capacity:()I
aload 2
invokeinterface org.glassfish.grizzly.Buffer.limit:()I
isub
iload 3
if_icmplt 6
2: aload 2
aload 2
invokeinterface org.glassfish.grizzly.Buffer.limit:()I
invokeinterface org.glassfish.grizzly.Buffer.position:(I)Lorg/glassfish/grizzly/Buffer;
pop
3: aload 2
aload 2
invokeinterface org.glassfish.grizzly.Buffer.capacity:()I
invokeinterface org.glassfish.grizzly.Buffer.limit:(I)Lorg/glassfish/grizzly/Buffer;
pop
4: aload 2
astore 4
start local 4 5: goto 7
end local 4 6: StackMap locals: int
StackMap stack:
iload 3
iconst_2
imul
invokestatic org.glassfish.grizzly.ssl.SSLUtils.allocateOutputBuffer:(I)Lorg/glassfish/grizzly/Buffer;
astore 4
start local 4 7: StackMap locals: org.glassfish.grizzly.Buffer
StackMap stack:
aload 1
getstatic org.glassfish.grizzly.memory.Buffers.EMPTY_BUFFER:Lorg/glassfish/grizzly/Buffer;
aload 4
getstatic org.glassfish.grizzly.ssl.SSLUtils.HS_WRAP_ALLOCATOR:Lorg/glassfish/grizzly/ssl/SSLConnectionContext$Allocator;
invokevirtual org.glassfish.grizzly.ssl.SSLConnectionContext.wrap:(Lorg/glassfish/grizzly/Buffer;Lorg/glassfish/grizzly/Buffer;Lorg/glassfish/grizzly/ssl/SSLConnectionContext$Allocator;)Lorg/glassfish/grizzly/ssl/SSLConnectionContext$SslResult;
astore 5
start local 5 8: aload 5
invokevirtual org.glassfish.grizzly.ssl.SSLConnectionContext$SslResult.getOutput:()Lorg/glassfish/grizzly/Buffer;
astore 6
start local 6 9: aload 6
invokeinterface org.glassfish.grizzly.Buffer.flip:()Lorg/glassfish/grizzly/Buffer;
pop
10: aload 4
aload 6
if_acmpeq 13
11: aload 2
ifnull 13
aload 4
aload 2
if_acmpne 13
12: aload 2
invokeinterface org.glassfish.grizzly.Buffer.flip:()Lorg/glassfish/grizzly/Buffer;
pop
13: StackMap locals: org.glassfish.grizzly.ssl.SSLConnectionContext$SslResult org.glassfish.grizzly.Buffer
StackMap stack:
aload 5
invokevirtual org.glassfish.grizzly.ssl.SSLConnectionContext$SslResult.isError:()Z
ifeq 17
14: aload 6
aload 2
if_acmpeq 16
15: aload 6
invokeinterface org.glassfish.grizzly.Buffer.dispose:()V
16: StackMap locals:
StackMap stack:
aload 5
invokevirtual org.glassfish.grizzly.ssl.SSLConnectionContext$SslResult.getError:()Ljavax/net/ssl/SSLException;
athrow
17: StackMap locals:
StackMap stack:
aload 6
aload 2
if_acmpeq 19
18: aload 0
invokeinterface org.glassfish.grizzly.Connection.getMemoryManager:()Lorg/glassfish/grizzly/memory/MemoryManager;
aload 2
aload 6
invokestatic org.glassfish.grizzly.memory.Buffers.appendBuffers:(Lorg/glassfish/grizzly/memory/MemoryManager;Lorg/glassfish/grizzly/Buffer;Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/Buffer;
invokestatic org.glassfish.grizzly.ssl.SSLUtils.allowDispose:(Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/Buffer;
astore 6
19: StackMap locals:
StackMap stack:
aload 6
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 connection Lorg/glassfish/grizzly/Connection;
0 20 1 sslCtx Lorg/glassfish/grizzly/ssl/SSLConnectionContext;
0 20 2 netBuffer Lorg/glassfish/grizzly/Buffer;
1 20 3 packetBufferSize I
5 6 4 buffer Lorg/glassfish/grizzly/Buffer;
7 20 4 buffer Lorg/glassfish/grizzly/Buffer;
8 20 5 result Lorg/glassfish/grizzly/ssl/SSLConnectionContext$SslResult;
9 20 6 output Lorg/glassfish/grizzly/Buffer;
Exceptions:
throws javax.net.ssl.SSLException
MethodParameters:
Name Flags
connection final
sslCtx final
netBuffer final
static org.glassfish.grizzly.Buffer allocateOutputBuffer(int);
descriptor: (I)Lorg/glassfish/grizzly/Buffer;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: getstatic org.glassfish.grizzly.ssl.SSLUtils.SSL_OUTPUT_BUFFER_IDX:Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
invokestatic org.glassfish.grizzly.ThreadCache.takeFromCache:(Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;)Ljava/lang/Object;
checkcast org.glassfish.grizzly.Buffer
astore 1
start local 1 1: aload 1
ifnull 2
iconst_1
goto 3
StackMap locals: org.glassfish.grizzly.Buffer
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: istore 2
start local 2 4: iload 2
ifeq 5
aload 1
invokeinterface org.glassfish.grizzly.Buffer.remaining:()I
iload 0
if_icmpge 7
5: StackMap locals: int
StackMap stack:
iload 0
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
astore 3
start local 3 6: new org.glassfish.grizzly.ssl.SSLUtils$3
dup
aload 3
invokespecial org.glassfish.grizzly.ssl.SSLUtils$3.<init>:(Ljava/nio/ByteBuffer;)V
astore 1
end local 3 7: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 size I
1 8 1 buffer Lorg/glassfish/grizzly/Buffer;
4 8 2 hasBuffer Z
6 7 3 byteBuffer Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
size final
public static org.glassfish.grizzly.Buffer allocateInputBuffer(org.glassfish.grizzly.ssl.SSLConnectionContext);
descriptor: (Lorg/glassfish/grizzly/ssl/SSLConnectionContext;)Lorg/glassfish/grizzly/Buffer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.glassfish.grizzly.ssl.SSLConnectionContext.getSslEngine:()Ljavax/net/ssl/SSLEngine;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: aconst_null
areturn
3: StackMap locals: javax.net.ssl.SSLEngine
StackMap stack:
aload 0
invokevirtual org.glassfish.grizzly.ssl.SSLConnectionContext.getNetBufferSize:()I
iconst_2
imul
invokestatic org.glassfish.grizzly.ssl.SSLUtils.allocateOutputBuffer:(I)Lorg/glassfish/grizzly/Buffer;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 sslCtx Lorg/glassfish/grizzly/ssl/SSLConnectionContext;
1 4 1 sslEngine Ljavax/net/ssl/SSLEngine;
MethodParameters:
Name Flags
sslCtx final
static org.glassfish.grizzly.Buffer makeInputRemainder(org.glassfish.grizzly.ssl.SSLConnectionContext, org.glassfish.grizzly.filterchain.FilterChainContext, org.glassfish.grizzly.Buffer);
descriptor: (Lorg/glassfish/grizzly/ssl/SSLConnectionContext;Lorg/glassfish/grizzly/filterchain/FilterChainContext;Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/Buffer;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 2
invokeinterface org.glassfish.grizzly.Buffer.hasRemaining:()Z
ifne 5
3: aload 2
invokeinterface org.glassfish.grizzly.Buffer.tryDispose:()Z
pop
4: aconst_null
areturn
5: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.glassfish.grizzly.ssl.SSLConnectionContext.resetLastInputBuffer:()Lorg/glassfish/grizzly/ssl/InputBufferWrapper;
astore 3
start local 3 6: aload 3
ifnonnull 10
7: aload 2
aload 2
invokeinterface org.glassfish.grizzly.Buffer.position:()I
invokeinterface org.glassfish.grizzly.Buffer.split:(I)Lorg/glassfish/grizzly/Buffer;
astore 4
start local 4 8: aload 2
invokeinterface org.glassfish.grizzly.Buffer.tryDispose:()Z
pop
9: aload 4
areturn
end local 4 10: StackMap locals: org.glassfish.grizzly.Buffer
StackMap stack:
aload 1
invokevirtual org.glassfish.grizzly.filterchain.FilterChainContext.getMemoryManager:()Lorg/glassfish/grizzly/memory/MemoryManager;
aload 2
invokestatic org.glassfish.grizzly.ssl.SSLUtils.move:(Lorg/glassfish/grizzly/memory/MemoryManager;Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/Buffer;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 sslCtx Lorg/glassfish/grizzly/ssl/SSLConnectionContext;
0 11 1 context Lorg/glassfish/grizzly/filterchain/FilterChainContext;
0 11 2 buffer Lorg/glassfish/grizzly/Buffer;
6 11 3 inputBuffer Lorg/glassfish/grizzly/Buffer;
8 10 4 remainder Lorg/glassfish/grizzly/Buffer;
MethodParameters:
Name Flags
sslCtx final
context final
buffer final
static org.glassfish.grizzly.Buffer copy(org.glassfish.grizzly.memory.MemoryManager, org.glassfish.grizzly.Buffer);
descriptor: (Lorg/glassfish/grizzly/memory/MemoryManager;Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/Buffer;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface org.glassfish.grizzly.Buffer.remaining:()I
invokeinterface org.glassfish.grizzly.memory.MemoryManager.allocate:(I)Lorg/glassfish/grizzly/Buffer;
astore 2
start local 2 1: aload 2
aload 1
invokeinterface org.glassfish.grizzly.Buffer.put:(Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/Buffer;
pop
2: aload 2
invokeinterface org.glassfish.grizzly.Buffer.flip:()Lorg/glassfish/grizzly/Buffer;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 memoryManager Lorg/glassfish/grizzly/memory/MemoryManager;
0 3 1 buffer Lorg/glassfish/grizzly/Buffer;
1 3 2 tmpBuf Lorg/glassfish/grizzly/Buffer;
MethodParameters:
Name Flags
memoryManager final
buffer final
static org.glassfish.grizzly.Buffer move(org.glassfish.grizzly.memory.MemoryManager, org.glassfish.grizzly.Buffer);
descriptor: (Lorg/glassfish/grizzly/memory/MemoryManager;Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/Buffer;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic org.glassfish.grizzly.ssl.SSLUtils.copy:(Lorg/glassfish/grizzly/memory/MemoryManager;Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/Buffer;
astore 2
start local 2 1: aload 1
invokeinterface org.glassfish.grizzly.Buffer.tryDispose:()Z
pop
2: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 memoryManager Lorg/glassfish/grizzly/memory/MemoryManager;
0 3 1 buffer Lorg/glassfish/grizzly/Buffer;
1 3 2 tmpBuf Lorg/glassfish/grizzly/Buffer;
MethodParameters:
Name Flags
memoryManager final
buffer final
public static org.glassfish.grizzly.Buffer allowDispose(org.glassfish.grizzly.Buffer);
descriptor: (Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/Buffer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
invokeinterface org.glassfish.grizzly.Buffer.allowBufferDispose:(Z)V
3: aload 0
invokeinterface org.glassfish.grizzly.Buffer.isComposite:()Z
ifeq 5
4: aload 0
checkcast org.glassfish.grizzly.memory.CompositeBuffer
iconst_1
invokevirtual org.glassfish.grizzly.memory.CompositeBuffer.allowInternalBuffersDispose:(Z)V
5: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 buffer Lorg/glassfish/grizzly/Buffer;
MethodParameters:
Name Flags
buffer final
static javax.net.ssl.SSLEngineResult sslEngineWrap(javax.net.ssl.SSLEngine, java.nio.ByteBuffer, java.nio.ByteBuffer);
descriptor: (Ljavax/net/ssl/SSLEngine;Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)Ljavax/net/ssl/SSLEngineResult;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual javax.net.ssl.SSLEngine.wrap:(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)Ljavax/net/ssl/SSLEngineResult;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 engine Ljavax/net/ssl/SSLEngine;
0 1 1 in Ljava/nio/ByteBuffer;
0 1 2 out Ljava/nio/ByteBuffer;
Exceptions:
throws javax.net.ssl.SSLException
MethodParameters:
Name Flags
engine final
in final
out final
static javax.net.ssl.SSLEngineResult sslEngineWrap(javax.net.ssl.SSLEngine, java.nio.ByteBuffer[], int, int, java.nio.ByteBuffer);
descriptor: (Ljavax/net/ssl/SSLEngine;[Ljava/nio/ByteBuffer;IILjava/nio/ByteBuffer;)Ljavax/net/ssl/SSLEngineResult;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: getstatic org.glassfish.grizzly.ssl.SSLUtils.ANDROID_WORKAROUND_NEEDED:Z
ifeq 1
aload 0
aload 1
iload 2
iload 3
aload 4
invokestatic org.glassfish.grizzly.ssl.SSLUtils$AndroidWorkAround.wrapArray:(Ljavax/net/ssl/SSLEngine;[Ljava/nio/ByteBuffer;IILjava/nio/ByteBuffer;)Ljavax/net/ssl/SSLEngineResult;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
aload 1
iload 2
iload 3
aload 4
invokevirtual javax.net.ssl.SSLEngine.wrap:([Ljava/nio/ByteBuffer;IILjava/nio/ByteBuffer;)Ljavax/net/ssl/SSLEngineResult;
StackMap locals:
StackMap stack: javax.net.ssl.SSLEngineResult
2: areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 engine Ljavax/net/ssl/SSLEngine;
0 3 1 in [Ljava/nio/ByteBuffer;
0 3 2 inOffs I
0 3 3 inLen I
0 3 4 out Ljava/nio/ByteBuffer;
Exceptions:
throws javax.net.ssl.SSLException
MethodParameters:
Name Flags
engine final
in final
inOffs final
inLen final
out final
static javax.net.ssl.SSLEngineResult sslEngineUnwrap(javax.net.ssl.SSLEngine, java.nio.ByteBuffer, java.nio.ByteBuffer);
descriptor: (Ljavax/net/ssl/SSLEngine;Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)Ljavax/net/ssl/SSLEngineResult;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual javax.net.ssl.SSLEngine.unwrap:(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)Ljavax/net/ssl/SSLEngineResult;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 engine Ljavax/net/ssl/SSLEngine;
0 1 1 in Ljava/nio/ByteBuffer;
0 1 2 out Ljava/nio/ByteBuffer;
Exceptions:
throws javax.net.ssl.SSLException
MethodParameters:
Name Flags
engine final
in final
out final
static javax.net.ssl.SSLEngineResult sslEngineUnwrap(javax.net.ssl.SSLEngine, java.nio.ByteBuffer, java.nio.ByteBuffer[], int, int);
descriptor: (Ljavax/net/ssl/SSLEngine;Ljava/nio/ByteBuffer;[Ljava/nio/ByteBuffer;II)Ljavax/net/ssl/SSLEngineResult;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: getstatic org.glassfish.grizzly.ssl.SSLUtils.ANDROID_WORKAROUND_NEEDED:Z
ifeq 1
aload 0
aload 1
aload 2
iload 3
iload 4
invokestatic org.glassfish.grizzly.ssl.SSLUtils$AndroidWorkAround.unwrapArray:(Ljavax/net/ssl/SSLEngine;Ljava/nio/ByteBuffer;[Ljava/nio/ByteBuffer;II)Ljavax/net/ssl/SSLEngineResult;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
aload 1
aload 2
iload 3
iload 4
invokevirtual javax.net.ssl.SSLEngine.unwrap:(Ljava/nio/ByteBuffer;[Ljava/nio/ByteBuffer;II)Ljavax/net/ssl/SSLEngineResult;
StackMap locals:
StackMap stack: javax.net.ssl.SSLEngineResult
2: areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 engine Ljavax/net/ssl/SSLEngine;
0 3 1 in Ljava/nio/ByteBuffer;
0 3 2 out [Ljava/nio/ByteBuffer;
0 3 3 outOffs I
0 3 4 outLen I
Exceptions:
throws javax.net.ssl.SSLException
MethodParameters:
Name Flags
engine final
in final
out final
outOffs final
outLen final
}
SourceFile: "SSLUtils.java"
NestMembers:
org.glassfish.grizzly.ssl.SSLUtils$1 org.glassfish.grizzly.ssl.SSLUtils$2 org.glassfish.grizzly.ssl.SSLUtils$3 org.glassfish.grizzly.ssl.SSLUtils$AndroidWorkAround
InnerClasses:
public final HandshakeStatus = javax.net.ssl.SSLEngineResult$HandshakeStatus of javax.net.ssl.SSLEngineResult
public final CachedTypeIndex = org.glassfish.grizzly.ThreadCache$CachedTypeIndex of org.glassfish.grizzly.ThreadCache
abstract Allocator = org.glassfish.grizzly.ssl.SSLConnectionContext$Allocator of org.glassfish.grizzly.ssl.SSLConnectionContext
final SslResult = org.glassfish.grizzly.ssl.SSLConnectionContext$SslResult of org.glassfish.grizzly.ssl.SSLConnectionContext
org.glassfish.grizzly.ssl.SSLUtils$1
org.glassfish.grizzly.ssl.SSLUtils$2
org.glassfish.grizzly.ssl.SSLUtils$3
private AndroidWorkAround = org.glassfish.grizzly.ssl.SSLUtils$AndroidWorkAround of org.glassfish.grizzly.ssl.SSLUtils