public final class com.sun.jndi.ldap.sasl.LdapSasl
  minor version: 0
  major version: 59
  flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
  this_class: com.sun.jndi.ldap.sasl.LdapSasl
  super_class: java.lang.Object
{
  private static final java.lang.String SASL_CALLBACK;
    descriptor: Ljava/lang/String;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: "java.naming.security.sasl.callback"

  private static final java.lang.String SASL_AUTHZ_ID;
    descriptor: Ljava/lang/String;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: "java.naming.security.sasl.authorizationId"

  private static final java.lang.String SASL_REALM;
    descriptor: Ljava/lang/String;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: "java.naming.security.sasl.realm"

  private static final int LDAP_SUCCESS;
    descriptor: I
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 0

  private static final int LDAP_SASL_BIND_IN_PROGRESS;
    descriptor: I
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 14

  private static final byte[] NO_BYTES;
    descriptor: [B
    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: .line 200
            iconst_0
            newarray 8
            putstatic com.sun.jndi.ldap.sasl.LdapSasl.NO_BYTES:[B
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  private void <init>();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.sun.jndi.ldap.sasl.LdapSasl this
         0: .line 63
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 64
            return
        end local 0 // com.sun.jndi.ldap.sasl.LdapSasl this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/sun/jndi/ldap/sasl/LdapSasl;

  public static com.sun.jndi.ldap.LdapResult saslBind(com.sun.jndi.ldap.LdapClient, com.sun.jndi.ldap.Connection, java.lang.String, java.lang.String, , java.lang.String, java.util.Hashtable<?, ?>, javax.naming.ldap.Control[]);
    descriptor: (Lcom/sun/jndi/ldap/LdapClient;Lcom/sun/jndi/ldap/Connection;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/String;Ljava/util/Hashtable;[Ljavax/naming/ldap/Control;)Lcom/sun/jndi/ldap/LdapResult;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=6, locals=21, args_size=8
        start local 0 // com.sun.jndi.ldap.LdapClient clnt
        start local 1 // com.sun.jndi.ldap.Connection conn
        start local 2 // java.lang.String server
        start local 3 // java.lang.String dn
        start local 4 // java.lang.Object pw
        start local 5 // java.lang.String authMech
        start local 6 // java.util.Hashtable env
        start local 7 // javax.naming.ldap.Control[] bindCtls
         0: .line 98
            aconst_null
            astore 8 /* saslClnt */
        start local 8 // javax.security.sasl.SaslClient saslClnt
         1: .line 99
            iconst_0
            istore 9 /* cleanupHandler */
        start local 9 // boolean cleanupHandler
         2: .line 103
            aload 6 /* env */
            ifnull 3
            aload 6 /* env */
            ldc "java.naming.security.sasl.callback"
            invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast javax.security.auth.callback.CallbackHandler
            goto 4
      StackMap locals: javax.security.sasl.SaslClient int
      StackMap stack:
         3: aconst_null
         4: .line 102
      StackMap locals:
      StackMap stack: javax.security.auth.callback.CallbackHandler
            astore 10 /* cbh */
        start local 10 // javax.security.auth.callback.CallbackHandler cbh
         5: .line 104
            aload 10 /* cbh */
            ifnonnull 8
         6: .line 105
            new com.sun.jndi.ldap.sasl.DefaultCallbackHandler
            dup
            aload 3 /* dn */
            aload 4 /* pw */
            aload 6 /* env */
            ldc "java.naming.security.sasl.realm"
            invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.lang.String
            invokespecial com.sun.jndi.ldap.sasl.DefaultCallbackHandler.<init>:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/String;)V
            astore 10 /* cbh */
         7: .line 106
            iconst_1
            istore 9 /* cleanupHandler */
         8: .line 110
      StackMap locals: javax.security.auth.callback.CallbackHandler
      StackMap stack:
            aload 6 /* env */
            ifnull 9
            aload 6 /* env */
            ldc "java.naming.security.sasl.authorizationId"
            invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.lang.String
            goto 10
      StackMap locals:
      StackMap stack:
         9: aconst_null
      StackMap locals:
      StackMap stack: java.lang.String
        10: astore 11 /* authzId */
        start local 11 // java.lang.String authzId
        11: .line 111
            aload 5 /* authMech */
            invokestatic com.sun.jndi.ldap.sasl.LdapSasl.getSaslMechanismNames:(Ljava/lang/String;)[Ljava/lang/String;
            astore 12 /* mechs */
        start local 12 // java.lang.String[] mechs
        12: .line 116
            aload 12 /* mechs */
            aload 11 /* authzId */
            ldc "ldap"
            aload 2 /* server */
            aload 6 /* env */
            aload 10 /* cbh */
        13: .line 115
            invokestatic javax.security.sasl.Sasl.createSaslClient:([Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljavax/security/auth/callback/CallbackHandler;)Ljavax/security/sasl/SaslClient;
            astore 8 /* saslClnt */
        14: .line 118
            aload 8 /* saslClnt */
            ifnonnull 16
        15: .line 119
            new javax.naming.AuthenticationNotSupportedException
            dup
            aload 5 /* authMech */
            invokespecial javax.naming.AuthenticationNotSupportedException.<init>:(Ljava/lang/String;)V
            athrow
        16: .line 123
      StackMap locals: java.lang.String java.lang.String[]
      StackMap stack:
            aload 8 /* saslClnt */
            invokeinterface javax.security.sasl.SaslClient.getMechanismName:()Ljava/lang/String;
            astore 14 /* mechName */
        start local 14 // java.lang.String mechName
        17: .line 124
            aload 8 /* saslClnt */
            invokeinterface javax.security.sasl.SaslClient.hasInitialResponse:()Z
            ifeq 19
        18: .line 125
            aload 8 /* saslClnt */
            getstatic com.sun.jndi.ldap.sasl.LdapSasl.NO_BYTES:[B
            invokeinterface javax.security.sasl.SaslClient.evaluateChallenge:([B)[B
            goto 20
      StackMap locals: com.sun.jndi.ldap.LdapClient com.sun.jndi.ldap.Connection java.lang.String java.lang.String java.lang.Object java.lang.String java.util.Hashtable javax.naming.ldap.Control[] javax.security.sasl.SaslClient int javax.security.auth.callback.CallbackHandler java.lang.String java.lang.String[] top java.lang.String
      StackMap stack:
        19: aconst_null
        20: .line 124
      StackMap locals:
      StackMap stack: byte[]
            astore 15 /* response */
        start local 15 // byte[] response
        21: .line 127
            aload 0 /* clnt */
            aconst_null
            aload 15 /* response */
            aload 7 /* bindCtls */
            aload 14 /* mechName */
            iconst_1
            invokevirtual com.sun.jndi.ldap.LdapClient.ldapBind:(Ljava/lang/String;[B[Ljavax/naming/ldap/Control;Ljava/lang/String;Z)Lcom/sun/jndi/ldap/LdapResult;
            astore 13 /* res */
        start local 13 // com.sun.jndi.ldap.LdapResult res
        22: .line 129
            goto 33
        23: .line 133
      StackMap locals: com.sun.jndi.ldap.LdapClient com.sun.jndi.ldap.Connection java.lang.String java.lang.String java.lang.Object java.lang.String java.util.Hashtable javax.naming.ldap.Control[] javax.security.sasl.SaslClient int javax.security.auth.callback.CallbackHandler java.lang.String java.lang.String[] com.sun.jndi.ldap.LdapResult java.lang.String byte[]
      StackMap stack:
            aload 8 /* saslClnt */
        24: .line 134
            aload 13 /* res */
            getfield com.sun.jndi.ldap.LdapResult.serverCreds:[B
            ifnull 25
            aload 13 /* res */
            getfield com.sun.jndi.ldap.LdapResult.serverCreds:[B
            goto 26
      StackMap locals:
      StackMap stack: javax.security.sasl.SaslClient
        25: getstatic com.sun.jndi.ldap.sasl.LdapSasl.NO_BYTES:[B
        26: .line 133
      StackMap locals: com.sun.jndi.ldap.LdapClient com.sun.jndi.ldap.Connection java.lang.String java.lang.String java.lang.Object java.lang.String java.util.Hashtable javax.naming.ldap.Control[] javax.security.sasl.SaslClient int javax.security.auth.callback.CallbackHandler java.lang.String java.lang.String[] com.sun.jndi.ldap.LdapResult java.lang.String byte[]
      StackMap stack: javax.security.sasl.SaslClient byte[]
            invokeinterface javax.security.sasl.SaslClient.evaluateChallenge:([B)[B
            astore 15 /* response */
        27: .line 135
            aload 13 /* res */
            getfield com.sun.jndi.ldap.LdapResult.status:I
            ifne 32
        28: .line 136
            aload 15 /* response */
            ifnull 36
        29: .line 137
            new javax.naming.AuthenticationException
            dup
        30: .line 138
            ldc "SASL client generated response after success"
        31: .line 137
            invokespecial javax.naming.AuthenticationException.<init>:(Ljava/lang/String;)V
            athrow
        32: .line 142
      StackMap locals:
      StackMap stack:
            aload 0 /* clnt */
            aconst_null
            aload 15 /* response */
            aload 7 /* bindCtls */
            aload 14 /* mechName */
            iconst_1
            invokevirtual com.sun.jndi.ldap.LdapClient.ldapBind:(Ljava/lang/String;[B[Ljavax/naming/ldap/Control;Ljava/lang/String;Z)Lcom/sun/jndi/ldap/LdapResult;
            astore 13 /* res */
        33: .line 129
      StackMap locals:
      StackMap stack:
            aload 8 /* saslClnt */
            invokeinterface javax.security.sasl.SaslClient.isComplete:()Z
            ifne 36
        34: .line 130
            aload 13 /* res */
            getfield com.sun.jndi.ldap.LdapResult.status:I
            bipush 14
            if_icmpeq 23
        35: .line 131
            aload 13 /* res */
            getfield com.sun.jndi.ldap.LdapResult.status:I
            ifeq 23
        36: .line 145
      StackMap locals:
      StackMap stack:
            aload 13 /* res */
            getfield com.sun.jndi.ldap.LdapResult.status:I
            ifne 53
        37: .line 146
            aload 8 /* saslClnt */
            invokeinterface javax.security.sasl.SaslClient.isComplete:()Z
            ifne 41
        38: .line 147
            new javax.naming.AuthenticationException
            dup
        39: .line 148
            ldc "SASL authentication not complete despite server claims"
        40: .line 147
            invokespecial javax.naming.AuthenticationException.<init>:(Ljava/lang/String;)V
            athrow
        41: .line 151
      StackMap locals:
      StackMap stack:
            aload 8 /* saslClnt */
            ldc "javax.security.sasl.qop"
            invokeinterface javax.security.sasl.SaslClient.getNegotiatedProperty:(Ljava/lang/String;)Ljava/lang/Object;
            checkcast java.lang.String
            astore 16 /* qop */
        start local 16 // java.lang.String qop
        42: .line 154
            aload 16 /* qop */
            ifnull 52
            aload 16 /* qop */
            ldc "auth-int"
            invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
            ifne 44
        43: .line 155
            aload 16 /* qop */
            ldc "auth-conf"
            invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
            ifeq 52
        44: .line 157
      StackMap locals: java.lang.String
      StackMap stack:
            new com.sun.jndi.ldap.sasl.SaslInputStream
            dup
            aload 8 /* saslClnt */
        45: .line 158
            aload 1 /* conn */
            getfield com.sun.jndi.ldap.Connection.inStream:Ljava/io/InputStream;
        46: .line 157
            invokespecial com.sun.jndi.ldap.sasl.SaslInputStream.<init>:(Ljavax/security/sasl/SaslClient;Ljava/io/InputStream;)V
            astore 17 /* newIn */
        start local 17 // java.io.InputStream newIn
        47: .line 159
            new com.sun.jndi.ldap.sasl.SaslOutputStream
            dup
            aload 8 /* saslClnt */
        48: .line 160
            aload 1 /* conn */
            getfield com.sun.jndi.ldap.Connection.outStream:Ljava/io/OutputStream;
        49: .line 159
            invokespecial com.sun.jndi.ldap.sasl.SaslOutputStream.<init>:(Ljavax/security/sasl/SaslClient;Ljava/io/OutputStream;)V
            astore 18 /* newOut */
        start local 18 // java.io.OutputStream newOut
        50: .line 162
            aload 1 /* conn */
            aload 17 /* newIn */
            aload 18 /* newOut */
            invokevirtual com.sun.jndi.ldap.Connection.replaceStreams:(Ljava/io/InputStream;Ljava/io/OutputStream;)V
        end local 18 // java.io.OutputStream newOut
        end local 17 // java.io.InputStream newIn
        51: .line 163
            goto 53
        52: .line 164
      StackMap locals:
      StackMap stack:
            aload 8 /* saslClnt */
            invokeinterface javax.security.sasl.SaslClient.dispose:()V
        end local 16 // java.lang.String qop
        53: .line 167
      StackMap locals:
      StackMap stack:
            aload 13 /* res */
            astore 20
        54: .line 174
            iload 9 /* cleanupHandler */
            ifeq 56
        55: .line 175
            aload 10 /* cbh */
            checkcast com.sun.jndi.ldap.sasl.DefaultCallbackHandler
            invokevirtual com.sun.jndi.ldap.sasl.DefaultCallbackHandler.clearPassword:()V
        56: .line 167
      StackMap locals: com.sun.jndi.ldap.LdapClient com.sun.jndi.ldap.Connection java.lang.String java.lang.String java.lang.Object java.lang.String java.util.Hashtable javax.naming.ldap.Control[] javax.security.sasl.SaslClient int javax.security.auth.callback.CallbackHandler java.lang.String java.lang.String[] com.sun.jndi.ldap.LdapResult java.lang.String byte[] top top top top com.sun.jndi.ldap.LdapResult
      StackMap stack:
            aload 20
            areturn
        end local 15 // byte[] response
        end local 14 // java.lang.String mechName
        end local 13 // com.sun.jndi.ldap.LdapResult res
        57: .line 168
      StackMap locals: com.sun.jndi.ldap.LdapClient com.sun.jndi.ldap.Connection java.lang.String java.lang.String java.lang.Object java.lang.String java.util.Hashtable javax.naming.ldap.Control[] javax.security.sasl.SaslClient int javax.security.auth.callback.CallbackHandler java.lang.String java.lang.String[]
      StackMap stack: javax.security.sasl.SaslException
            astore 13 /* e */
        start local 13 // javax.security.sasl.SaslException e
        58: .line 169
            new javax.naming.AuthenticationException
            dup
        59: .line 170
            aload 5 /* authMech */
        60: .line 169
            invokespecial javax.naming.AuthenticationException.<init>:(Ljava/lang/String;)V
            astore 14 /* ne */
        start local 14 // javax.naming.NamingException ne
        61: .line 171
            aload 14 /* ne */
            aload 13 /* e */
            invokevirtual javax.naming.NamingException.setRootCause:(Ljava/lang/Throwable;)V
        62: .line 172
            aload 14 /* ne */
            athrow
        end local 14 // javax.naming.NamingException ne
        end local 13 // javax.security.sasl.SaslException e
        63: .line 173
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 19
        64: .line 174
            iload 9 /* cleanupHandler */
            ifeq 66
        65: .line 175
            aload 10 /* cbh */
            checkcast com.sun.jndi.ldap.sasl.DefaultCallbackHandler
            invokevirtual com.sun.jndi.ldap.sasl.DefaultCallbackHandler.clearPassword:()V
        66: .line 177
      StackMap locals: com.sun.jndi.ldap.LdapClient com.sun.jndi.ldap.Connection java.lang.String java.lang.String java.lang.Object java.lang.String java.util.Hashtable javax.naming.ldap.Control[] javax.security.sasl.SaslClient int javax.security.auth.callback.CallbackHandler java.lang.String java.lang.String[] top top top top top top java.lang.Throwable
      StackMap stack:
            aload 19
            athrow
        end local 12 // java.lang.String[] mechs
        end local 11 // java.lang.String authzId
        end local 10 // javax.security.auth.callback.CallbackHandler cbh
        end local 9 // boolean cleanupHandler
        end local 8 // javax.security.sasl.SaslClient saslClnt
        end local 7 // javax.naming.ldap.Control[] bindCtls
        end local 6 // java.util.Hashtable env
        end local 5 // java.lang.String authMech
        end local 4 // java.lang.Object pw
        end local 3 // java.lang.String dn
        end local 2 // java.lang.String server
        end local 1 // com.sun.jndi.ldap.Connection conn
        end local 0 // com.sun.jndi.ldap.LdapClient clnt
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0   67     0            clnt  Lcom/sun/jndi/ldap/LdapClient;
            0   67     1            conn  Lcom/sun/jndi/ldap/Connection;
            0   67     2          server  Ljava/lang/String;
            0   67     3              dn  Ljava/lang/String;
            0   67     4              pw  Ljava/lang/Object;
            0   67     5        authMech  Ljava/lang/String;
            0   67     6             env  Ljava/util/Hashtable<**>;
            0   67     7        bindCtls  [Ljavax/naming/ldap/Control;
            1   67     8        saslClnt  Ljavax/security/sasl/SaslClient;
            2   67     9  cleanupHandler  Z
            5   67    10             cbh  Ljavax/security/auth/callback/CallbackHandler;
           11   67    11         authzId  Ljava/lang/String;
           12   67    12           mechs  [Ljava/lang/String;
           22   57    13             res  Lcom/sun/jndi/ldap/LdapResult;
           17   57    14        mechName  Ljava/lang/String;
           21   57    15        response  [B
           42   53    16             qop  Ljava/lang/String;
           47   51    17           newIn  Ljava/io/InputStream;
           50   51    18          newOut  Ljava/io/OutputStream;
           58   63    13               e  Ljavax/security/sasl/SaslException;
           61   63    14              ne  Ljavax/naming/NamingException;
      Exception table:
        from    to  target  type
          12    54      57  Class javax.security.sasl.SaslException
          12    54      63  any
          57    63      63  any
    Exceptions:
      throws java.io.IOException, javax.naming.NamingException
    Signature: (Lcom/sun/jndi/ldap/LdapClient;Lcom/sun/jndi/ldap/Connection;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/String;Ljava/util/Hashtable<**>;[Ljavax/naming/ldap/Control;)Lcom/sun/jndi/ldap/LdapResult;
    MethodParameters:
          Name  Flags
      clnt      
      conn      
      server    
      dn        
      pw        
      authMech  
      env       
      bindCtls  

  private static java.lang.String[] getSaslMechanismNames(java.lang.String);
    descriptor: (Ljava/lang/String;)[Ljava/lang/String;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=5, args_size=1
        start local 0 // java.lang.String str
         0: .line 188
            new java.util.StringTokenizer
            dup
            aload 0 /* str */
            invokespecial java.util.StringTokenizer.<init>:(Ljava/lang/String;)V
            astore 1 /* parser */
        start local 1 // java.util.StringTokenizer parser
         1: .line 189
            new java.util.Vector
            dup
            bipush 10
            invokespecial java.util.Vector.<init>:(I)V
            astore 2 /* mechs */
        start local 2 // java.util.Vector mechs
         2: .line 190
            goto 4
         3: .line 191
      StackMap locals: java.util.StringTokenizer java.util.Vector
      StackMap stack:
            aload 2 /* mechs */
            aload 1 /* parser */
            invokevirtual java.util.StringTokenizer.nextToken:()Ljava/lang/String;
            invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
         4: .line 190
      StackMap locals:
      StackMap stack:
            aload 1 /* parser */
            invokevirtual java.util.StringTokenizer.hasMoreTokens:()Z
            ifne 3
         5: .line 193
            aload 2 /* mechs */
            invokevirtual java.util.Vector.size:()I
            anewarray java.lang.String
            astore 3 /* mechNames */
        start local 3 // java.lang.String[] mechNames
         6: .line 194
            iconst_0
            istore 4 /* i */
        start local 4 // int i
         7: goto 10
         8: .line 195
      StackMap locals: java.lang.String[] int
      StackMap stack:
            aload 3 /* mechNames */
            iload 4 /* i */
            aload 2 /* mechs */
            iload 4 /* i */
            invokevirtual java.util.Vector.elementAt:(I)Ljava/lang/Object;
            checkcast java.lang.String
            aastore
         9: .line 194
            iinc 4 /* i */ 1
      StackMap locals:
      StackMap stack:
        10: iload 4 /* i */
            aload 2 /* mechs */
            invokevirtual java.util.Vector.size:()I
            if_icmplt 8
        end local 4 // int i
        11: .line 197
            aload 3 /* mechNames */
            areturn
        end local 3 // java.lang.String[] mechNames
        end local 2 // java.util.Vector mechs
        end local 1 // java.util.StringTokenizer parser
        end local 0 // java.lang.String str
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   12     0        str  Ljava/lang/String;
            1   12     1     parser  Ljava/util/StringTokenizer;
            2   12     2      mechs  Ljava/util/Vector<Ljava/lang/String;>;
            6   12     3  mechNames  [Ljava/lang/String;
            7   11     4          i  I
    MethodParameters:
      Name  Flags
      str   
}
SourceFile: "LdapSasl.java"