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

How to use
getUser
method
in
org.apache.catalina.realm.JNDIRealm

Best Java code snippets using org.apache.catalina.realm.JNDIRealm.getUser (Showing top 20 results out of 315)

origin: org.apache.tomcat/tomcat-catalina

/**
 * Return a User object containing information about the user
 * with the specified username, if found in the directory;
 * otherwise return <code>null</code>.
 *
 * @param context The directory context
 * @param username Username to be looked up
 * @return the User object
 * @exception NamingException if a directory server error occurs
 *
 * @see #getUser(DirContext, String, String, int)
 */
protected User getUser(DirContext context, String username)
  throws NamingException {
  return getUser(context, username, null, -1);
}
origin: org.apache.catalina/com.springsource.org.apache.catalina

/**
 * Return a User object containing information about the user
 * with the specified username, if found in the directory;
 * otherwise return <code>null</code>.
 *
 * @param context The directory context
 * @param username Username to be looked up
 *
 * @exception NamingException if a directory server error occurs
 *
 * @see #getUser(DirContext, String, String, int)
 */
protected User getUser(DirContext context, String username)
  throws NamingException {
  return getUser(context, username, null, -1);
}
origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Return a User object containing information about the user
 * with the specified username, if found in the directory;
 * otherwise return <code>null</code>.
 *
 * @param context The directory context
 * @param username Username to be looked up
 *
 * @exception NamingException if a directory server error occurs
 *
 * @see #getUser(DirContext, String, String, int)
 */
protected User getUser(DirContext context, String username)
  throws NamingException {
  return getUser(context, username, null, -1);
}
origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Return a User object containing information about the user
 * with the specified username, if found in the directory;
 * otherwise return <code>null</code>.
 *
 * @param context The directory context
 * @param username Username to be looked up
 *
 * @exception NamingException if a directory server error occurs
 *
 * @see #getUser(DirContext, String, String, int)
 */
protected User getUser(DirContext context, String username)
  throws NamingException {
  return getUser(context, username, null, -1);
}
origin: codefollower/Tomcat-Research

/**
 * Return a User object containing information about the user
 * with the specified username, if found in the directory;
 * otherwise return <code>null</code>.
 *
 * @param context The directory context
 * @param username Username to be looked up
 *
 * @exception NamingException if a directory server error occurs
 *
 * @see #getUser(DirContext, String, String, int)
 */
protected User getUser(DirContext context, String username)
  throws NamingException {
  return getUser(context, username, null, -1);
}
origin: org.apache.tomcat/tomcat-catalina

/**
 * Return a User object containing information about the user
 * with the specified username, if found in the directory;
 * otherwise return <code>null</code>.
 *
 * @param context The directory context
 * @param username Username to be looked up
 * @param credentials User credentials (optional)
 * @return the User object
 * @exception NamingException if a directory server error occurs
 *
 * @see #getUser(DirContext, String, String, int)
 */
protected User getUser(DirContext context, String username, String credentials)
  throws NamingException {
  return getUser(context, username, credentials, -1);
}
origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Return a User object containing information about the user
 * with the specified username, if found in the directory;
 * otherwise return <code>null</code>.
 *
 * @param context The directory context
 * @param username Username to be looked up
 *
 * @exception NamingException if a directory server error occurs
 *
 * @see #getUser(DirContext, String, String, int)
 */
protected User getUser(DirContext context, String username)
  throws NamingException {
  return getUser(context, username, null, -1);
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Return a User object containing information about the user
 * with the specified username, if found in the directory;
 * otherwise return <code>null</code>.
 *
 * @param context The directory context
 * @param username Username to be looked up
 * @return the User object
 * @exception NamingException if a directory server error occurs
 *
 * @see #getUser(DirContext, String, String, int)
 */
protected User getUser(DirContext context, String username)
  throws NamingException {
  return getUser(context, username, null, -1);
}
origin: codefollower/Tomcat-Research

/**
 * Return a User object containing information about the user
 * with the specified username, if found in the directory;
 * otherwise return <code>null</code>.
 *
 * @param context The directory context
 * @param username Username to be looked up
 * @param credentials User credentials (optional)
 *
 * @exception NamingException if a directory server error occurs
 *
 * @see #getUser(DirContext, String, String, int)
 */
protected User getUser(DirContext context, String username, String credentials)
  throws NamingException {
  return getUser(context, username, credentials, -1);
}
origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Return a User object containing information about the user
 * with the specified username, if found in the directory;
 * otherwise return <code>null</code>.
 *
 * @param context The directory context
 * @param username Username to be looked up
 *
 * @exception NamingException if a directory server error occurs
 *
 * @see #getUser(DirContext, String, String, int)
 */
protected User getUser(DirContext context, String username)
  throws NamingException {
  return getUser(context, username, null, -1);
}
origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Return a User object containing information about the user
 * with the specified username, if found in the directory;
 * otherwise return <code>null</code>.
 *
 * @param context The directory context
 * @param username Username to be looked up
 * @param credentials User credentials (optional)
 *
 * @exception NamingException if a directory server error occurs
 *
 * @see #getUser(DirContext, String, String, int)
 */
protected User getUser(DirContext context, String username, String credentials)
  throws NamingException {
  return getUser(context, username, credentials, -1);
}
origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Return a User object containing information about the user
 * with the specified username, if found in the directory;
 * otherwise return <code>null</code>.
 *
 * @param context The directory context
 * @param username Username to be looked up
 * @param credentials User credentials (optional)
 *
 * @exception NamingException if a directory server error occurs
 *
 * @see #getUser(DirContext, String, String, int)
 */
protected User getUser(DirContext context, String username, String credentials)
  throws NamingException {
  return getUser(context, username, credentials, -1);
}
origin: org.apache.catalina/com.springsource.org.apache.catalina

/**
 * Return a User object containing information about the user
 * with the specified username, if found in the directory;
 * otherwise return <code>null</code>.
 *
 * @param context The directory context
 * @param username Username to be looked up
 * @param credentials User credentials (optional)
 *
 * @exception NamingException if a directory server error occurs
 *
 * @see #getUser(DirContext, String, String, int)
 */
protected User getUser(DirContext context, String username, String credentials)
  throws NamingException {
  return getUser(context, username, credentials, -1);
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Return a User object containing information about the user
 * with the specified username, if found in the directory;
 * otherwise return <code>null</code>.
 *
 * @param context The directory context
 * @param username Username to be looked up
 * @param credentials User credentials (optional)
 * @return the User object
 * @exception NamingException if a directory server error occurs
 *
 * @see #getUser(DirContext, String, String, int)
 */
protected User getUser(DirContext context, String username, String credentials)
  throws NamingException {
  return getUser(context, username, credentials, -1);
}
origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Return a User object containing information about the user
 * with the specified username, if found in the directory;
 * otherwise return <code>null</code>.
 *
 * @param context The directory context
 * @param username Username to be looked up
 * @param credentials User credentials (optional)
 *
 * @exception NamingException if a directory server error occurs
 *
 * @see #getUser(DirContext, String, String, int)
 */
protected User getUser(DirContext context, String username, String credentials)
  throws NamingException {
  return getUser(context, username, credentials, -1);
}
origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Return a User object containing information about the user
 * with the specified username, if found in the directory;
 * otherwise return <code>null</code>.
 *
 * @param context The directory context
 * @param username Username to be looked up
 * @param credentials User credentials (optional)
 *
 * @exception NamingException if a directory server error occurs
 *
 * @see #getUser(DirContext, String, String, int)
 */
protected User getUser(DirContext context, String username, String credentials)
  throws NamingException {
  return getUser(context, username, credentials, -1);
}
origin: tomcat/catalina-optional

/**
 * Return the Principal associated with the given user name.
 */
protected synchronized Principal getPrincipal(DirContext context,
                       String username)
  throws NamingException {
  
  User user = getUser(context, username);
  
  return new GenericPrincipal(this, user.username, user.password ,
      getRoles(context, user));
}
origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Return the Principal associated with the given user name.
 */
protected synchronized Principal getPrincipal(DirContext context,
                       String username)
  throws NamingException {
  User user = getUser(context, username);
  if (user != null) {
    return new GenericPrincipal(user.getUserName(), user.getPassword(),
        getRoles(context, user));
  }
  
  return null;
}
origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Return the Principal associated with the given user name.
 */
protected synchronized Principal getPrincipal(DirContext context,
                       String username)
  throws NamingException {
  User user = getUser(context, username);
  if (user != null) {
    return new GenericPrincipal(user.getUserName(), user.getPassword(),
        getRoles(context, user));
  }
  
  return null;
}
origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Return the Principal associated with the given user name.
 */
protected synchronized Principal getPrincipal(DirContext context,
                       String username)
  throws NamingException {
  User user = getUser(context, username);
  if (user != null) {
    return new GenericPrincipal(user.getUserName(), user.getPassword(),
        getRoles(context, user));
  }
  
  return null;
}
org.apache.catalina.realmJNDIRealmgetUser

Javadoc

Return a User object containing information about the user with the specified username, if found in the directory; otherwise return null.

Popular methods of JNDIRealm

  • getPrincipal
    Get the principal associated with the specified certificate.
  • <init>
  • addAttributeValues
    Add values of a specified attribute to a list
  • authenticate
    Return the Principal associated with the specified username and credentials, if there is one; otherw
  • bindAsUser
    Check credentials by binding to the directory as the user
  • checkCredentials
    Check whether the given User can be authenticated with the given credentials. If the userPassword co
  • close
    Close any open connection to the directory server for this Realm.
  • compareCredentials
    Check whether the credentials presented by the user match those retrieved from the directory.
  • doRFC2254Encoding
    Given an LDAP search string, returns the string with certain characters escaped according to RFC 225
  • getAttributeValue
    Return a String representing the value of the specified attribute.
  • getDirectoryContextEnvironment
    Create our directory context configuration.
  • getRoles
    Return a List of roles associated with the given User. Any roles present in the user's directory ent
  • getDirectoryContextEnvironment,
  • getRoles,
  • getUserByPattern,
  • getUserBySearch,
  • open,
  • parseUserPatternString,
  • release,
  • getDistinguishedName,
  • getRoleNested

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
  • getSystemService (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • BoxLayout (javax.swing)
  • JComboBox (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 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