src/share/classes/javax/security/sasl/SaslClient.java

Print this page

        

@@ -36,17 +36,17 @@
  * As the authentication proceeds, the instance
  * encapsulates the state of a SASL client's authentication exchange.
  *<p>
  * Here's an example of how an LDAP library might use a <tt>SaslClient</tt>.
  * It first gets an instance of a <tt>SaslClient</tt>:
- *<blockquote><pre>
+ *<blockquote><pre>{@code
  * SaslClient sc = Sasl.createSaslClient(mechanisms,
  *     authorizationId, protocol, serverName, props, callbackHandler);
- *</pre></blockquote>
+ *}</pre></blockquote>
  * It can then proceed to use the client for authentication.
  * For example, an LDAP library might use the client as follows:
- *<blockquote><pre>
+ *<blockquote><pre>{@code
  * // Get initial response and send to server
  * byte[] response = (sc.hasInitialResponse() ? sc.evaluateChallenge(new byte[0]) :
  *     null);
  * LdapResult res = ldap.sendBindRequest(dn, sc.getName(), response);
  * while (!sc.isComplete() &&

@@ -72,11 +72,11 @@
  *      // communication with server
  *      ldap.in = new SecureInputStream(sc, ldap.in);
  *      ldap.out = new SecureOutputStream(sc, ldap.out);
  *    }
  * }
- *</pre></blockquote>
+ *}</pre></blockquote>
  *
  * If the mechanism has an initial response, the library invokes
  * <tt>evaluateChallenge()</tt> with an empty
  * challenge and to get initial response.
  * Protocols such as IMAP4, which do not include an initial response with