public final class com.sun.jndi.ldap.ext.StartTlsResponseImpl extends javax.naming.ldap.StartTlsResponse
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.jndi.ldap.ext.StartTlsResponseImpl
super_class: javax.naming.ldap.StartTlsResponse
{
private static final boolean debug;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final int DNSNAME_TYPE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private transient java.lang.String hostname;
descriptor: Ljava/lang/String;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private transient com.sun.jndi.ldap.Connection ldapConnection;
descriptor: Lcom/sun/jndi/ldap/Connection;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private transient java.io.InputStream originalInputStream;
descriptor: Ljava/io/InputStream;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private transient java.io.OutputStream originalOutputStream;
descriptor: Ljava/io/OutputStream;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private transient javax.net.ssl.SSLSocket sslSocket;
descriptor: Ljavax/net/ssl/SSLSocket;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private transient javax.net.ssl.SSLSocketFactory defaultFactory;
descriptor: Ljavax/net/ssl/SSLSocketFactory;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private transient javax.net.ssl.SSLSocketFactory currentFactory;
descriptor: Ljavax/net/ssl/SSLSocketFactory;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private transient java.lang.String[] suites;
descriptor: [Ljava/lang/String;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private transient javax.net.ssl.HostnameVerifier verifier;
descriptor: Ljavax/net/ssl/HostnameVerifier;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private transient boolean isClosed;
descriptor: Z
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -1126624615143411328
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.naming.ldap.StartTlsResponse.<init>:()V
1: aload 0
aconst_null
putfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.hostname:Ljava/lang/String;
2: aload 0
aconst_null
putfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.ldapConnection:Lcom/sun/jndi/ldap/Connection;
3: aload 0
aconst_null
putfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.originalInputStream:Ljava/io/InputStream;
4: aload 0
aconst_null
putfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.originalOutputStream:Ljava/io/OutputStream;
5: aload 0
aconst_null
putfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.sslSocket:Ljavax/net/ssl/SSLSocket;
6: aload 0
aconst_null
putfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.defaultFactory:Ljavax/net/ssl/SSLSocketFactory;
7: aload 0
aconst_null
putfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.currentFactory:Ljavax/net/ssl/SSLSocketFactory;
8: aload 0
aconst_null
putfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.suites:[Ljava/lang/String;
9: aload 0
aconst_null
putfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.verifier:Ljavax/net/ssl/HostnameVerifier;
10: aload 0
iconst_1
putfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.isClosed:Z
11: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/sun/jndi/ldap/ext/StartTlsResponseImpl;
public void setEnabledCipherSuites(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ifnonnull 1
aconst_null
goto 2
StackMap locals:
StackMap stack: com.sun.jndi.ldap.ext.StartTlsResponseImpl
1: aload 1
invokevirtual java.lang.String[].clone:()Ljava/lang/Object;
checkcast java.lang.String[]
StackMap locals: com.sun.jndi.ldap.ext.StartTlsResponseImpl java.lang.String[]
StackMap stack: com.sun.jndi.ldap.ext.StartTlsResponseImpl java.lang.String[]
2: putfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.suites:[Ljava/lang/String;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/jndi/ldap/ext/StartTlsResponseImpl;
0 4 1 suites [Ljava/lang/String;
MethodParameters:
Name Flags
suites
public void setHostnameVerifier(javax.net.ssl.HostnameVerifier);
descriptor: (Ljavax/net/ssl/HostnameVerifier;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.verifier:Ljavax/net/ssl/HostnameVerifier;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/jndi/ldap/ext/StartTlsResponseImpl;
0 2 1 verifier Ljavax/net/ssl/HostnameVerifier;
MethodParameters:
Name Flags
verifier
public javax.net.ssl.SSLSession negotiate();
descriptor: ()Ljavax/net/ssl/SSLSession;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
invokevirtual com.sun.jndi.ldap.ext.StartTlsResponseImpl.negotiate:(Ljavax/net/ssl/SSLSocketFactory;)Ljavax/net/ssl/SSLSession;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/jndi/ldap/ext/StartTlsResponseImpl;
Exceptions:
throws java.io.IOException
public javax.net.ssl.SSLSession negotiate(javax.net.ssl.SSLSocketFactory);
descriptor: (Ljavax/net/ssl/SSLSocketFactory;)Ljavax/net/ssl/SSLSession;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.isClosed:Z
ifeq 2
aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.sslSocket:Ljavax/net/ssl/SSLSocket;
ifnull 2
1: new java.io.IOException
dup
ldc "TLS connection is closed."
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
ifnonnull 4
3: aload 0
invokevirtual com.sun.jndi.ldap.ext.StartTlsResponseImpl.getDefaultFactory:()Ljavax/net/ssl/SSLSocketFactory;
astore 1
4: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual com.sun.jndi.ldap.ext.StartTlsResponseImpl.startHandshake:(Ljavax/net/ssl/SSLSocketFactory;)Ljavax/net/ssl/SSLSocket;
invokevirtual javax.net.ssl.SSLSocket.getSession:()Ljavax/net/ssl/SSLSession;
astore 2
start local 2 5: aconst_null
astore 3
start local 3 6: aload 0
aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.hostname:Ljava/lang/String;
aload 2
invokevirtual com.sun.jndi.ldap.ext.StartTlsResponseImpl.verify:(Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z
ifeq 12
7: aload 0
iconst_0
putfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.isClosed:Z
8: aload 2
9: areturn
10: StackMap locals: com.sun.jndi.ldap.ext.StartTlsResponseImpl javax.net.ssl.SSLSocketFactory javax.net.ssl.SSLSession javax.net.ssl.SSLPeerUnverifiedException
StackMap stack: javax.net.ssl.SSLPeerUnverifiedException
astore 4
start local 4 11: aload 4
astore 3
end local 4 12: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.verifier:Ljavax/net/ssl/HostnameVerifier;
ifnull 16
13: aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.verifier:Ljavax/net/ssl/HostnameVerifier;
aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.hostname:Ljava/lang/String;
aload 2
invokeinterface javax.net.ssl.HostnameVerifier.verify:(Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z
ifeq 16
14: aload 0
iconst_0
putfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.isClosed:Z
15: aload 2
areturn
16: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.sun.jndi.ldap.ext.StartTlsResponseImpl.close:()V
17: aload 2
invokeinterface javax.net.ssl.SSLSession.invalidate:()V
18: aload 3
ifnonnull 25
19: new javax.net.ssl.SSLPeerUnverifiedException
dup
20: new java.lang.StringBuilder
dup
ldc "hostname of the server '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.hostname:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
21: ldc "' does not match the hostname in the "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
22: ldc "server's certificate."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
23: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
24: invokespecial javax.net.ssl.SSLPeerUnverifiedException.<init>:(Ljava/lang/String;)V
astore 3
25: StackMap locals:
StackMap stack:
aload 3
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lcom/sun/jndi/ldap/ext/StartTlsResponseImpl;
0 26 1 factory Ljavax/net/ssl/SSLSocketFactory;
5 26 2 sslSession Ljavax/net/ssl/SSLSession;
6 26 3 verifExcep Ljavax/net/ssl/SSLPeerUnverifiedException;
11 12 4 e Ljavax/net/ssl/SSLPeerUnverifiedException;
Exception table:
from to target type
6 9 10 Class javax.net.ssl.SSLPeerUnverifiedException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
factory
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.isClosed:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.ldapConnection:Lcom/sun/jndi/ldap/Connection;
3: aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.originalInputStream:Ljava/io/InputStream;
aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.originalOutputStream:Ljava/io/OutputStream;
4: invokevirtual com.sun.jndi.ldap.Connection.replaceStreams:(Ljava/io/InputStream;Ljava/io/OutputStream;)V
5: aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.sslSocket:Ljavax/net/ssl/SSLSocket;
invokevirtual javax.net.ssl.SSLSocket.close:()V
6: aload 0
iconst_1
putfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.isClosed:Z
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/jndi/ldap/ext/StartTlsResponseImpl;
Exceptions:
throws java.io.IOException
public void setConnection(com.sun.jndi.ldap.Connection, java.lang.String);
descriptor: (Lcom/sun/jndi/ldap/Connection;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
putfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.ldapConnection:Lcom/sun/jndi/ldap/Connection;
1: aload 0
aload 2
ifnull 2
aload 2
goto 3
StackMap locals:
StackMap stack: com.sun.jndi.ldap.ext.StartTlsResponseImpl
2: aload 1
getfield com.sun.jndi.ldap.Connection.host:Ljava/lang/String;
StackMap locals: com.sun.jndi.ldap.ext.StartTlsResponseImpl com.sun.jndi.ldap.Connection java.lang.String
StackMap stack: com.sun.jndi.ldap.ext.StartTlsResponseImpl java.lang.String
3: putfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.hostname:Ljava/lang/String;
4: aload 0
aload 1
getfield com.sun.jndi.ldap.Connection.inStream:Ljava/io/InputStream;
putfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.originalInputStream:Ljava/io/InputStream;
5: aload 0
aload 1
getfield com.sun.jndi.ldap.Connection.outStream:Ljava/io/OutputStream;
putfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.originalOutputStream:Ljava/io/OutputStream;
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/jndi/ldap/ext/StartTlsResponseImpl;
0 7 1 ldapConnection Lcom/sun/jndi/ldap/Connection;
0 7 2 hostname Ljava/lang/String;
MethodParameters:
Name Flags
ldapConnection
hostname
private javax.net.ssl.SSLSocketFactory getDefaultFactory();
descriptor: ()Ljavax/net/ssl/SSLSocketFactory;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.defaultFactory:Ljavax/net/ssl/SSLSocketFactory;
ifnull 2
1: aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.defaultFactory:Ljavax/net/ssl/SSLSocketFactory;
areturn
2: StackMap locals:
StackMap stack:
aload 0
3: invokestatic javax.net.ssl.SSLSocketFactory.getDefault:()Ljavax/net/SocketFactory;
checkcast javax.net.ssl.SSLSocketFactory
4: dup_x1
putfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.defaultFactory:Ljavax/net/ssl/SSLSocketFactory;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/jndi/ldap/ext/StartTlsResponseImpl;
Exceptions:
throws java.io.IOException
private javax.net.ssl.SSLSocket startHandshake(javax.net.ssl.SSLSocketFactory);
descriptor: (Ljavax/net/ssl/SSLSocketFactory;)Ljavax/net/ssl/SSLSocket;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.ldapConnection:Lcom/sun/jndi/ldap/Connection;
ifnonnull 2
1: new java.lang.IllegalStateException
dup
ldc "LDAP connection has not been set. TLS requires an existing LDAP connection."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.currentFactory:Ljavax/net/ssl/SSLSocketFactory;
if_acmpeq 7
3: aload 0
aload 1
aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.ldapConnection:Lcom/sun/jndi/ldap/Connection;
getfield com.sun.jndi.ldap.Connection.sock:Ljava/net/Socket;
4: aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.ldapConnection:Lcom/sun/jndi/ldap/Connection;
getfield com.sun.jndi.ldap.Connection.host:Ljava/lang/String;
aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.ldapConnection:Lcom/sun/jndi/ldap/Connection;
getfield com.sun.jndi.ldap.Connection.port:I
iconst_0
5: invokevirtual javax.net.ssl.SSLSocketFactory.createSocket:(Ljava/net/Socket;Ljava/lang/String;IZ)Ljava/net/Socket;
checkcast javax.net.ssl.SSLSocket
putfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.sslSocket:Ljavax/net/ssl/SSLSocket;
6: aload 0
aload 1
putfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.currentFactory:Ljavax/net/ssl/SSLSocketFactory;
7: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.suites:[Ljava/lang/String;
ifnull 9
8: aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.sslSocket:Ljavax/net/ssl/SSLSocket;
aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.suites:[Ljava/lang/String;
invokevirtual javax.net.ssl.SSLSocket.setEnabledCipherSuites:([Ljava/lang/String;)V
9: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.sslSocket:Ljavax/net/ssl/SSLSocket;
invokevirtual javax.net.ssl.SSLSocket.startHandshake:()V
10: aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.ldapConnection:Lcom/sun/jndi/ldap/Connection;
aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.sslSocket:Ljavax/net/ssl/SSLSocket;
invokevirtual javax.net.ssl.SSLSocket.getInputStream:()Ljava/io/InputStream;
11: aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.sslSocket:Ljavax/net/ssl/SSLSocket;
invokevirtual javax.net.ssl.SSLSocket.getOutputStream:()Ljava/io/OutputStream;
12: invokevirtual com.sun.jndi.ldap.Connection.replaceStreams:(Ljava/io/InputStream;Ljava/io/OutputStream;)V
13: goto 18
StackMap locals:
StackMap stack: java.io.IOException
14: astore 2
start local 2 15: aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.sslSocket:Ljavax/net/ssl/SSLSocket;
invokevirtual javax.net.ssl.SSLSocket.close:()V
16: aload 0
iconst_1
putfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.isClosed:Z
17: aload 2
athrow
end local 2 18: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.jndi.ldap.ext.StartTlsResponseImpl.sslSocket:Ljavax/net/ssl/SSLSocket;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lcom/sun/jndi/ldap/ext/StartTlsResponseImpl;
0 19 1 factory Ljavax/net/ssl/SSLSocketFactory;
15 18 2 e Ljava/io/IOException;
Exception table:
from to target type
9 13 14 Class java.io.IOException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
factory
private boolean verify(java.lang.String, javax.net.ssl.SSLSession);
descriptor: (Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aload 1
ifnull 4
aload 1
ldc "["
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 4
2: aload 1
ldc "]"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 4
3: aload 1
iconst_1
aload 1
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 1
4: StackMap locals: java.security.cert.Certificate[]
StackMap stack:
iconst_2
5: invokestatic sun.security.util.HostnameChecker.getInstance:(B)Lsun/security/util/HostnameChecker;
astore 4
start local 4 6: aload 2
invokeinterface javax.net.ssl.SSLSession.getCipherSuite:()Ljava/lang/String;
ldc "TLS_KRB5"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 14
7: aload 2
invokestatic com.sun.jndi.ldap.ext.StartTlsResponseImpl.getPeerPrincipal:(Ljavax/net/ssl/SSLSession;)Ljava/security/Principal;
astore 5
start local 5 8: aload 1
aload 5
invokestatic sun.security.util.HostnameChecker.match:(Ljava/lang/String;Ljava/security/Principal;)Z
ifne 22
9: new javax.net.ssl.SSLPeerUnverifiedException
dup
10: new java.lang.StringBuilder
dup
ldc "hostname of the kerberos principal:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
11: ldc " does not match the hostname:"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
12: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
13: invokespecial javax.net.ssl.SSLPeerUnverifiedException.<init>:(Ljava/lang/String;)V
athrow
end local 5 14: StackMap locals: sun.security.util.HostnameChecker
StackMap stack:
aload 2
invokeinterface javax.net.ssl.SSLSession.getPeerCertificates:()[Ljava/security/cert/Certificate;
astore 3
15: aload 3
iconst_0
aaload
instanceof java.security.cert.X509Certificate
ifeq 18
16: aload 3
iconst_0
aaload
checkcast java.security.cert.X509Certificate
astore 5
start local 5 17: goto 21
end local 5 18: StackMap locals:
StackMap stack:
new javax.net.ssl.SSLPeerUnverifiedException
dup
19: ldc "Received a non X509Certificate from the server"
20: invokespecial javax.net.ssl.SSLPeerUnverifiedException.<init>:(Ljava/lang/String;)V
athrow
start local 5 21: StackMap locals: java.security.cert.X509Certificate
StackMap stack:
aload 4
aload 1
aload 5
invokevirtual sun.security.util.HostnameChecker.match:(Ljava/lang/String;Ljava/security/cert/X509Certificate;)V
end local 5 22: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 4 23: StackMap locals: com.sun.jndi.ldap.ext.StartTlsResponseImpl java.lang.String javax.net.ssl.SSLSession java.security.cert.Certificate[]
StackMap stack: javax.net.ssl.SSLPeerUnverifiedException
astore 4
start local 4 24: aload 2
invokeinterface javax.net.ssl.SSLSession.getCipherSuite:()Ljava/lang/String;
astore 5
start local 5 25: aload 5
ifnull 27
aload 5
ldc "_anon_"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
iconst_m1
if_icmpeq 27
26: iconst_1
ireturn
27: StackMap locals: javax.net.ssl.SSLPeerUnverifiedException java.lang.String
StackMap stack:
aload 4
athrow
end local 5 end local 4 28: StackMap locals: com.sun.jndi.ldap.ext.StartTlsResponseImpl java.lang.String javax.net.ssl.SSLSession java.security.cert.Certificate[]
StackMap stack: java.security.cert.CertificateException
astore 4
start local 4 29: new javax.net.ssl.SSLPeerUnverifiedException
dup
new java.lang.StringBuilder
dup
ldc "hostname of the server '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
30: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
31: ldc "' does not match the hostname in the "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
32: ldc "server's certificate."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
33: invokespecial javax.net.ssl.SSLPeerUnverifiedException.<init>:(Ljava/lang/String;)V
34: aload 4
invokevirtual javax.net.ssl.SSLPeerUnverifiedException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
35: checkcast javax.net.ssl.SSLPeerUnverifiedException
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 this Lcom/sun/jndi/ldap/ext/StartTlsResponseImpl;
0 36 1 hostname Ljava/lang/String;
0 36 2 session Ljavax/net/ssl/SSLSession;
1 36 3 certs [Ljava/security/cert/Certificate;
6 23 4 checker Lsun/security/util/HostnameChecker;
8 14 5 principal Ljava/security/Principal;
17 18 5 peerCert Ljava/security/cert/X509Certificate;
21 22 5 peerCert Ljava/security/cert/X509Certificate;
24 28 4 e Ljavax/net/ssl/SSLPeerUnverifiedException;
25 28 5 cipher Ljava/lang/String;
29 36 4 e Ljava/security/cert/CertificateException;
Exception table:
from to target type
4 22 23 Class javax.net.ssl.SSLPeerUnverifiedException
4 22 28 Class java.security.cert.CertificateException
Exceptions:
throws javax.net.ssl.SSLPeerUnverifiedException
MethodParameters:
Name Flags
hostname
session
private static java.security.Principal getPeerPrincipal(javax.net.ssl.SSLSession);
descriptor: (Ljavax/net/ssl/SSLSession;)Ljava/security/Principal;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokeinterface javax.net.ssl.SSLSession.getPeerPrincipal:()Ljava/security/Principal;
astore 1
start local 1 1: goto 4
end local 1 StackMap locals:
StackMap stack: java.lang.AbstractMethodError
2: pop
3: aconst_null
astore 1
start local 1 4: StackMap locals: java.security.Principal
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 session Ljavax/net/ssl/SSLSession;
1 2 1 principal Ljava/security/Principal;
4 5 1 principal Ljava/security/Principal;
Exception table:
from to target type
0 1 2 Class java.lang.AbstractMethodError
Exceptions:
throws javax.net.ssl.SSLPeerUnverifiedException
MethodParameters:
Name Flags
session
}
SourceFile: "StartTlsResponseImpl.java"