congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
BindRequest.setDn
Code IndexAdd Tabnine to your IDE (free)

How to use
setDn
method
in
org.apache.directory.api.ldap.model.message.BindRequest

Best Java code snippets using org.apache.directory.api.ldap.model.message.BindRequest.setDn (Showing top 12 results out of 315)

origin: org.apache.directory.api/api-all

/**
 * {@inheritDoc}
 */
@Override
public BindRequest setDn( Dn dn )
{
  getDecorated().setDn( dn );
  return this;
}
origin: org.apache.directory.api/api-ldap-codec-core

/**
 * {@inheritDoc}
 */
@Override
public BindRequest setDn( Dn dn )
{
  getDecorated().setDn( dn );
  return this;
}
origin: org.apache.directory.api/api-all

/**
 * {@inheritDoc}
 */
@Override
public BindRequest setDn( Dn dn )
{
  getDecorated().setDn( dn );
  return this;
}
origin: org.apache.directory.api/api-ldap-client-all

/**
 * {@inheritDoc}
 */
@Override
public BindRequest setDn( Dn dn )
{
  getDecorated().setDn( dn );
  return this;
}
origin: org.apache.directory.api/api-ldap-client-all

/**
 * {@inheritDoc}
 */
@Override
public void bind( Dn name ) throws LdapException
{
  byte[] credBytes = Strings.EMPTY_BYTES;
  BindRequest bindRequest = new BindRequestImpl();
  bindRequest.setDn( name );
  bindRequest.setCredentials( credBytes );
  BindResponse bindResponse = bind( bindRequest );
  processResponse( bindResponse );
}
origin: org.apache.directory.api/api-ldap-client-api

/**
 * {@inheritDoc}
 */
@Override
public void bind( Dn name ) throws LdapException
{
  byte[] credBytes = Strings.EMPTY_BYTES;
  BindRequest bindRequest = new BindRequestImpl();
  bindRequest.setDn( name );
  bindRequest.setCredentials( credBytes );
  BindResponse bindResponse = bind( bindRequest );
  processResponse( bindResponse );
}
origin: org.apache.directory.api/api-all

/**
 * {@inheritDoc}
 */
@Override
public void bind( Dn name ) throws LdapException
{
  byte[] credBytes = Strings.EMPTY_BYTES;
  BindRequest bindRequest = new BindRequestImpl();
  bindRequest.setDn( name );
  bindRequest.setCredentials( credBytes );
  BindResponse bindResponse = bind( bindRequest );
  processResponse( bindResponse );
}
origin: org.apache.directory.api/api-all

/**
 * {@inheritDoc}
 */
@Override
public void bind( Dn name, String credentials ) throws LdapException
{
  byte[] credBytes = credentials == null ? Strings.EMPTY_BYTES : Strings.getBytesUtf8( credentials );
  BindRequest bindRequest = new BindRequestImpl();
  bindRequest.setDn( name );
  bindRequest.setCredentials( credBytes );
  BindResponse bindResponse = bind( bindRequest );
  processResponse( bindResponse );
}
origin: org.apache.directory.api/api-ldap-client-api

/**
 * {@inheritDoc}
 */
@Override
public void bind( Dn name, String credentials ) throws LdapException
{
  byte[] credBytes = credentials == null ? Strings.EMPTY_BYTES : Strings.getBytesUtf8( credentials );
  BindRequest bindRequest = new BindRequestImpl();
  bindRequest.setDn( name );
  bindRequest.setCredentials( credBytes );
  BindResponse bindResponse = bind( bindRequest );
  processResponse( bindResponse );
}
origin: org.apache.directory.api/api-ldap-client-all

/**
 * {@inheritDoc}
 */
@Override
public void bind( Dn name, String credentials ) throws LdapException
{
  byte[] credBytes = credentials == null ? Strings.EMPTY_BYTES : Strings.getBytesUtf8( credentials );
  BindRequest bindRequest = new BindRequestImpl();
  bindRequest.setDn( name );
  bindRequest.setCredentials( credBytes );
  BindResponse bindResponse = bind( bindRequest );
  processResponse( bindResponse );
}
origin: org.apache.directory.fortress/fortress-core

/**
 * Calls the PoolMgr to perform an LDAP bind for a user/password combination.  This function is valid
 * if and only if the user entity is a member of the USERS data set.
 *
 * @param connection connection to ldap server.
 * @param szUserDn   contains the LDAP dn to the user entry in String format.
 * @param password   contains the password in clear text.
 * @return bindResponse contains the result of the operation.
 * @throws LdapException in the event of LDAP error.
 */
protected BindResponse bind( LdapConnection connection, String szUserDn, String password ) throws LdapException
{
  COUNTERS.incrementBind();
  Dn userDn = new Dn( szUserDn );
  BindRequest bindReq = new BindRequestImpl();
  bindReq.setDn( userDn );
  bindReq.setCredentials( password );
  bindReq.addControl( PP_REQ_CTRL );
  return connection.bind( bindReq );
}
origin: org.apache.directory.server/apacheds-protocol-ldap

bindRequest.setDn( bindDn );
org.apache.directory.api.ldap.model.messageBindRequestsetDn

Javadoc

Sets the DN of the subject in this authentication request. This field may take on a null value (or a zero length string) for the purposes of anonymous binds, when authentication has been performed at a lower layer, or when using SASL credentials with a mechanism that includes the DN in the credentials.

Popular methods of BindRequest

  • setCredentials
    Sets the simple credentials associated with a simple authentication attempt. Ignored if this request
  • getName
    Gets the name of the subject in this authentication request. This field may take on a null value (a
  • isSimple
    Checks to see if the authentication mechanism is simple and not SASL based.
  • getCredentials
    Gets the simple credentials associated with a simple authentication attempt or null if this request
  • getDn
    Gets the DN of the subject in this authentication request. This field may take on a null value (a ze
  • getSaslMechanism
    Gets the SASL mechanism String associated with this BindRequest if the bind operation is using SASL.
  • setName
    Sets the name of the subject in this authentication request. This field may take on a null value (or
  • getControls
  • getVersion3
    Gets whether or not the Ldap v3 protocol is used. Normally this would extract a version number from
  • addControl
  • isVersion3
    Checks to see if the Ldap v3 protocol is used. Normally this would extract a version number from the
  • setMessageId
  • isVersion3,
  • setMessageId,
  • setSaslMechanism,
  • setSimple,
  • setVersion3,
  • addAllControls,
  • getMessageId,
  • getSimple,
  • getType

Popular in Java

  • Reading from database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now