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

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

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

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;
}
origin: tomcat/catalina-optional

        List roles = getRoles(context, user);
        return (new GenericPrincipal(this,
                       username,
List roles = getRoles(context, user);
origin: org.apache.geronimo.ext.tomcat/catalina

        List<String> roles = getRoles(context, user);
        if (containerLog.isDebugEnabled()) {
          Iterator<String> it = roles.iterator();
List<String> roles = getRoles(context, user);
if (containerLog.isDebugEnabled()) {
  Iterator<String> it = roles.iterator();
origin: com.ovea.tajin.server/tajin-server-tomcat7

        List<String> roles = getRoles(context, user);
        if (containerLog.isDebugEnabled()) {
          Iterator<String> it = roles.iterator();
List<String> roles = getRoles(context, user);
if (containerLog.isDebugEnabled()) {
  Iterator<String> it = roles.iterator();
origin: org.apache.catalina/com.springsource.org.apache.catalina

        List<String> roles = getRoles(context, user);
        if (containerLog.isDebugEnabled()) {
          Iterator<String> it = roles.iterator();
List<String> roles = getRoles(context, user);
if (containerLog.isDebugEnabled()) {
  Iterator<String> it = roles.iterator();
origin: com.ovea.tajin.server/tajin-server-jetty9

        List<String> roles = getRoles(context, user);
        if (containerLog.isDebugEnabled()) {
          Iterator<String> it = roles.iterator();
List<String> roles = getRoles(context, user);
if (containerLog.isDebugEnabled()) {
  Iterator<String> it = roles.iterator();
origin: codefollower/Tomcat-Research

        List<String> roles = getRoles(context, user);
        if (containerLog.isDebugEnabled()) {
          Iterator<String> it = roles.iterator();
List<String> roles = getRoles(context, user);
if (containerLog.isDebugEnabled()) {
  Iterator<String> it = roles.iterator();
origin: com.ovea.tajin.servers/tajin-server-jetty9

        List<String> roles = getRoles(context, user);
        if (containerLog.isDebugEnabled()) {
          Iterator<String> it = roles.iterator();
List<String> roles = getRoles(context, user);
if (containerLog.isDebugEnabled()) {
  Iterator<String> it = roles.iterator();
origin: org.apache.tomcat/tomcat-catalina

        List<String> roles = getRoles(context, user);
        if (containerLog.isDebugEnabled()) {
          containerLog.debug("Found roles: " + roles.toString());
List<String> roles = getRoles(context, user);
if (containerLog.isDebugEnabled()) {
  containerLog.debug("Found roles: " + roles.toString());
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

        List<String> roles = getRoles(context, user);
        if (containerLog.isDebugEnabled()) {
          containerLog.debug("Found roles: " + roles.toString());
List<String> roles = getRoles(context, user);
if (containerLog.isDebugEnabled()) {
  containerLog.debug("Found roles: " + roles.toString());
origin: org.apache.tomcat/tomcat-catalina

roles = getRoles(context, user);
origin: org.apache.catalina/com.springsource.org.apache.catalina

roles = getRoles(context, user);
origin: org.apache.geronimo.ext.tomcat/catalina

roles = getRoles(context, user);
origin: codefollower/Tomcat-Research

roles = getRoles(context, user);
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

roles = getRoles(context, user);
org.apache.catalina.realmJNDIRealmgetRoles

Javadoc

Return a List of roles associated with the given User. Any roles present in the user's directory entry are supplemented by a directory search. If no roles are associated with this user, a zero-length List is returned.

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.
  • getUser
    Return a User object containing information about the user with the specified username, if found in
  • getDirectoryContextEnvironment,
  • getUser,
  • getUserByPattern,
  • getUserBySearch,
  • open,
  • parseUserPatternString,
  • release,
  • getDistinguishedName,
  • getRoleNested

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Top PhpStorm 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