congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
BindRequest.setCredentials
Code IndexAdd Tabnine to your IDE (free)

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

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

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

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

/**
 * {@inheritDoc}
 */
@Override
public BindRequest setCredentials( byte[] credentials )
{
  getDecorated().setCredentials( credentials );
  return this;
}
origin: org.apache.directory.api/api-ldap-codec-core

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

/**
 * {@inheritDoc}
 */
@Override
public BindRequest setCredentials( byte[] credentials )
{
  getDecorated().setCredentials( credentials );
  return this;
}
origin: org.apache.directory.api/api-ldap-client-all

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

/**
 * {@inheritDoc}
 */
@Override
public BindRequest setCredentials( byte[] credentials )
{
  getDecorated().setCredentials( credentials );
  return this;
}
origin: org.apache.directory.api/api-all

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

/**
 * {@inheritDoc}
 */
@Override
public BindRequest setCredentials( byte[] credentials )
{
  getDecorated().setCredentials( credentials );
  return this;
}
origin: org.apache.directory.server/apacheds-core-api

/**
 * {@inheritDoc}
 */
@Override
public void anonymousBind() throws LdapException
{
  BindRequest bindRequest = new BindRequestImpl();
  bindRequest.setName( "" );
  bindRequest.setCredentials( ( byte[] ) null );
  BindResponse bindResponse = bind( bindRequest );
  processResponse( bindResponse );
}
origin: org.apache.directory.api/api-ldap-codec-core

bindRequestMessage.setCredentials( Strings.EMPTY_BYTES );
bindRequestMessage.setCredentials( tlv.getValue().getData() );
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-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, 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.api/api-ldap-client-api

  @Override
  public ResultResponse process() throws LdapException
  {
    MemoryClearingBuffer passwordBuffer = MemoryClearingBuffer.newInstance( password );
    try
    {
      BindRequest bindRequest = new BindRequestImpl()
        .setDn( userDn )
        .setCredentials( passwordBuffer.getBytes() )
        .addControl( passwordPolicyRequestControl );
      return connection.bind( bindRequest );
    }
    finally
    {
      passwordBuffer.clear();
    }
  }
} );
origin: org.apache.directory.api/api-all

  @Override
  public ResultResponse process() throws LdapException
  {
    MemoryClearingBuffer passwordBuffer = MemoryClearingBuffer.newInstance( password );
    try
    {
      BindRequest bindRequest = new BindRequestImpl()
        .setDn( userDn )
        .setCredentials( passwordBuffer.getBytes() )
        .addControl( passwordPolicyRequestControl );
      return connection.bind( bindRequest );
    }
    finally
    {
      passwordBuffer.clear();
    }
  }
} );
origin: org.apache.directory.api/api-ldap-client-all

  @Override
  public ResultResponse process() throws LdapException
  {
    MemoryClearingBuffer passwordBuffer = MemoryClearingBuffer.newInstance( password );
    try
    {
      BindRequest bindRequest = new BindRequestImpl()
        .setDn( userDn )
        .setCredentials( passwordBuffer.getBytes() )
        .addControl( passwordPolicyRequestControl );
      return connection.bind( bindRequest );
    }
    finally
    {
      passwordBuffer.clear();
    }
  }
} );
org.apache.directory.api.ldap.model.messageBindRequestsetCredentials

Javadoc

Sets the simple credentials associated with a simple authentication attempt. Ignored if this request uses SASL authentication mechanisms.

Popular methods of BindRequest

  • 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.
  • setDn
    Sets the DN of the subject in this authentication request. This field may take on a null value (or a
  • 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

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • startActivity (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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