| java.lang.Object com.sun.jndi.ldap.sasl.LdapSasl
LdapSasl | final public class LdapSasl (Code) | | Handles SASL support.
author: Vincent Ryan author: Rosanna Lee |
Method Summary | |
public static LdapResult | saslBind(LdapClient clnt, Connection conn, String server, String dn, Object pw, String authMech, Hashtable env, Control[] bindCtls) Performs SASL bind.
Creates a SaslClient by using a default CallbackHandler
that uses the Context.SECURITY_PRINCIPAL and Context.SECURITY_CREDENTIALS
properties to satisfy the callbacks, and by using the
SASL_AUTHZ_ID property as the authorization id. |
saslBind | public static LdapResult saslBind(LdapClient clnt, Connection conn, String server, String dn, Object pw, String authMech, Hashtable env, Control[] bindCtls) throws IOException, NamingException(Code) | | Performs SASL bind.
Creates a SaslClient by using a default CallbackHandler
that uses the Context.SECURITY_PRINCIPAL and Context.SECURITY_CREDENTIALS
properties to satisfy the callbacks, and by using the
SASL_AUTHZ_ID property as the authorization id. If the SASL_AUTHZ_ID
property has not been set, Context.SECURITY_PRINCIPAL is used.
If SASL_CALLBACK has been set, use that instead of the default
CallbackHandler.
If bind is successful and the selected SASL mechanism has a security
layer, set inStream and outStream to be filter streams that use
the security layer. These will be used for subsequent communication
with the server.
Parameters: conn - The non-null connection to use for sending an LDAP BIND Parameters: server - Non-null string name of host to connect to Parameters: dn - Non-null DN to bind as; also used as authentication ID Parameters: pw - Possibly null password; can be byte[], char[] or String Parameters: authMech - A non-null space-separated list of SASL authenticationmechanisms. Parameters: env - The possibly null environment of the context, possibly containingproperties for used by SASL mechanisms Parameters: bindCtls - The possibly null controls to accompany the bind LdapResult containing status of the bind |
|
|