Tabnine Logo
LdapPrincipal.setClientAddress
Code IndexAdd Tabnine to your IDE (free)

How to use
setClientAddress
method
in
org.apache.directory.server.core.api.LdapPrincipal

Best Java code snippets using org.apache.directory.server.core.api.LdapPrincipal.setClientAddress (Showing top 4 results out of 315)

origin: org.apache.directory.server/apacheds-interceptors-authn

principal.setClientAddress( clientAddress );
SocketAddress serverAddress = session.getServiceAddress();
principal.setServerAddress( serverAddress );
origin: org.apache.directory.server/apacheds-interceptors-authn

  /**
   * User has already been authenticated during SASL negotiation. Set the authentication level
   * to strong and return an {@link LdapPrincipal}.
   */
  @Override
  public LdapPrincipal authenticate( BindOperationContext bindContext ) throws LdapAuthenticationException
  {
    // Possibly check if user account is disabled, other account checks.
    LdapPrincipal principal = new LdapPrincipal( getDirectoryService().getSchemaManager(), bindContext.getDn(),
      AuthenticationLevel.STRONG );

    IoSession session = bindContext.getIoSession();

    if ( session != null )
    {
      SocketAddress clientAddress = session.getRemoteAddress();
      principal.setClientAddress( clientAddress );
      SocketAddress serverAddress = session.getServiceAddress();
      principal.setServerAddress( serverAddress );
    }

    return principal;
  }
}
origin: org.apache.directory.server/apacheds-interceptors-authn

principal.setClientAddress( clientAddress );
SocketAddress serverAddress = session.getServiceAddress();
principal.setServerAddress( serverAddress );
origin: org.apache.directory.server/apacheds-interceptors-authn

principal.setClientAddress( clientAddress );
SocketAddress serverAddress = session.getServiceAddress();
principal.setServerAddress( serverAddress );
org.apache.directory.server.core.apiLdapPrincipalsetClientAddress

Popular methods of LdapPrincipal

  • getName
    Returns the normalized distinguished name of the principal as a String.
  • <init>
    Creates a new LDAP/X500 principal without any group associations. Keep this package friendly so only
  • getDn
    Gets a cloned copy of the normalized distinguished name of this principal as a org.apache.directory.
  • getAuthenticationLevel
    Gets the authentication level associated with this LDAP principle.
  • getUserPasswords
  • setUserPassword
  • clone
    Clone the object. This is done so that we don't store the password in a LdapPrincipal more than nece
  • setSchemaManager
  • setServerAddress

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Reference (javax.naming)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • CodeWhisperer alternatives
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