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

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

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

origin: org.apache.directory.server/apacheds-core-shared

/**
 * {@inheritDoc}
 */
@Override
public boolean isAnonymous()
{
  if ( ( authorizedPrincipal == null ) && ( authenticatedPrincipal == null ) )
  {
    return true;
  }
  else
  {
    return authenticatedPrincipal.getAuthenticationLevel() == AuthenticationLevel.NONE;
  }
}
origin: org.apache.directory.server/apacheds-core-shared

/**
 * {@inheritDoc}
 */
@Override
public AuthenticationLevel getAuthenticationLevel()
{
  return getEffectivePrincipal().getAuthenticationLevel();
}
origin: org.apache.directory.server/apacheds-core-api

/**
 * Serializes a LdapPrincipal instance.
 * 
 * @param principal The LdapPrincipal instance to serialize
 * @param out The stream into which we will write the serialized instance
 * @throws IOException If the stream can't be written
 */
public static void serialize( LdapPrincipal principal, ObjectOutput out ) throws IOException
{
  // The Authentication level
  out.writeInt( principal.getAuthenticationLevel().getLevel() );
  // The principal's DN
  if ( principal.getDn() == null )
  {
    Dn.EMPTY_DN.writeExternal( out );
  }
  else
  {
    principal.getDn().writeExternal( out );
  }
}
origin: org.apache.directory.server/apacheds-core-shared

/**
 * Creates a new instance of a DefaultCoreSession
 * @param principal The principal to use to process operation for this session
 * @param directoryService The DirectoryService to which we will send requests
 */
public DefaultCoreSession( LdapPrincipal principal, DirectoryService directoryService )
{
  this.directoryService = directoryService;
  authenticatedPrincipal = principal;
  if ( principal.getAuthenticationLevel() == AuthenticationLevel.NONE )
  {
    anonymousPrincipal = principal;
  }
  else
  {
    anonymousPrincipal = new LdapPrincipal( directoryService.getSchemaManager() );
  }
  // setup attribute type value
  objectClassAT = directoryService.getSchemaManager().getAttributeType( SchemaConstants.OBJECT_CLASS_AT );
}
org.apache.directory.server.core.apiLdapPrincipalgetAuthenticationLevel

Javadoc

Gets the authentication level associated with this LDAP principle.

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.
  • getUserPasswords
  • setUserPassword
  • clone
    Clone the object. This is done so that we don't store the password in a LdapPrincipal more than nece
  • setClientAddress
  • setSchemaManager
  • setServerAddress

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSystemService (Context)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Top Vim plugins
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