Tabnine Logo
JDBCRealm.setConnectionName
Code IndexAdd Tabnine to your IDE (free)

How to use
setConnectionName
method
in
org.apache.catalina.realm.JDBCRealm

Best Java code snippets using org.apache.catalina.realm.JDBCRealm.setConnectionName (Showing top 9 results out of 315)

origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Create a new JDBC Realm.
 *
 * @param parent MBean Name of the associated parent component
 *
 * @exception Exception if an MBean cannot be created or registered
 */
public String createJDBCRealm(String parent, String driverName, 
  String connectionName, String connectionPassword, String connectionURL)
  throws Exception {
  // Create a new JDBCRealm instance
  JDBCRealm realm = new JDBCRealm();
  realm.setDriverName(driverName);
  realm.setConnectionName(connectionName);
  realm.setConnectionPassword(connectionPassword);
  realm.setConnectionURL(connectionURL);
  // Add the new instance to its parent component
  ObjectName pname = new ObjectName(parent);
  ContainerBase containerBase = getParentContainerFromParent(pname);
  // Add the new instance to its parent component
  containerBase.setRealm(realm);
  // Return the corresponding MBean name
  ObjectName oname = realm.getObjectName();
  if (oname != null) {
    return (oname.toString());
  } else {
    return null;
  }   
}
origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Create a new JDBC Realm.
 *
 * @param parent MBean Name of the associated parent component
 *
 * @exception Exception if an MBean cannot be created or registered
 */
public String createJDBCRealm(String parent, String driverName, 
  String connectionName, String connectionPassword, String connectionURL)
  throws Exception {
  // Create a new JDBCRealm instance
  JDBCRealm realm = new JDBCRealm();
  realm.setDriverName(driverName);
  realm.setConnectionName(connectionName);
  realm.setConnectionPassword(connectionPassword);
  realm.setConnectionURL(connectionURL);
  // Add the new instance to its parent component
  ObjectName pname = new ObjectName(parent);
  ContainerBase containerBase = getParentContainerFromParent(pname);
  // Add the new instance to its parent component
  containerBase.setRealm(realm);
  // Return the corresponding MBean name
  ObjectName oname = realm.getObjectName();
  if (oname != null) {
    return (oname.toString());
  } else {
    return null;
  }   
}
origin: tomcat/catalina

/**
 * Create a new JDBC Realm.
 *
 * @param parent MBean Name of the associated parent component
 *
 * @exception Exception if an MBean cannot be created or registered
 */
public String createJDBCRealm(String parent, String driverName, 
    String connectionName, String connectionPassword,
    String connectionURL)
  throws Exception {
  // Create a new JDBCRealm instance
  JDBCRealm realm = new JDBCRealm();
  realm.setDriverName(driverName);
  realm.setConnectionName(connectionName);
  realm.setConnectionPassword(connectionPassword);
  realm.setConnectionURL(connectionURL);
  // Add the new instance to its parent component
  ObjectName pname = new ObjectName(parent);
  ContainerBase containerBase = getParentContainerFromParent(pname);
  // Add the new instance to its parent component
  containerBase.setRealm(realm);
  // Return the corresponding MBean name
  ObjectName oname = realm.getObjectName();
  if (oname != null) {
    return (oname.toString());
  } else {
    return null;
  }   
}
origin: codefollower/Tomcat-Research

/**
 * Create a new JDBC Realm.
 *
 * @param parent MBean Name of the associated parent component
 *
 * @exception Exception if an MBean cannot be created or registered
 */
public String createJDBCRealm(String parent, String driverName,
  String connectionName, String connectionPassword, String connectionURL)
  throws Exception {
  // Create a new JDBCRealm instance
  JDBCRealm realm = new JDBCRealm();
  realm.setDriverName(driverName);
  realm.setConnectionName(connectionName);
  realm.setConnectionPassword(connectionPassword);
  realm.setConnectionURL(connectionURL);
  // Add the new instance to its parent component
  ObjectName pname = new ObjectName(parent);
  Container container = getParentContainerFromParent(pname);
  // Add the new instance to its parent component
  container.setRealm(realm);
  // Return the corresponding MBean name
  ObjectName oname = realm.getObjectName();
  if (oname != null) {
    return (oname.toString());
  } else {
    return null;
  }
}
origin: org.apache.catalina/com.springsource.org.apache.catalina

/**
 * Create a new JDBC Realm.
 *
 * @param parent MBean Name of the associated parent component
 *
 * @exception Exception if an MBean cannot be created or registered
 */
public String createJDBCRealm(String parent, String driverName, 
  String connectionName, String connectionPassword, String connectionURL)
  throws Exception {
  // Create a new JDBCRealm instance
  JDBCRealm realm = new JDBCRealm();
  realm.setDriverName(driverName);
  realm.setConnectionName(connectionName);
  realm.setConnectionPassword(connectionPassword);
  realm.setConnectionURL(connectionURL);
  // Add the new instance to its parent component
  ObjectName pname = new ObjectName(parent);
  ContainerBase containerBase = getParentContainerFromParent(pname);
  // Add the new instance to its parent component
  containerBase.setRealm(realm);
  // Return the corresponding MBean name
  ObjectName oname = realm.getObjectName();
  if (oname != null) {
    return (oname.toString());
  } else {
    return null;
  }   
}
origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Create a new JDBC Realm.
 *
 * @param parent MBean Name of the associated parent component
 *
 * @exception Exception if an MBean cannot be created or registered
 */
public String createJDBCRealm(String parent, String driverName, 
  String connectionName, String connectionPassword, String connectionURL)
  throws Exception {
  // Create a new JDBCRealm instance
  JDBCRealm realm = new JDBCRealm();
  realm.setDriverName(driverName);
  realm.setConnectionName(connectionName);
  realm.setConnectionPassword(connectionPassword);
  realm.setConnectionURL(connectionURL);
  // Add the new instance to its parent component
  ObjectName pname = new ObjectName(parent);
  ContainerBase containerBase = getParentContainerFromParent(pname);
  // Add the new instance to its parent component
  containerBase.setRealm(realm);
  // Return the corresponding MBean name
  ObjectName oname = realm.getObjectName();
  if (oname != null) {
    return (oname.toString());
  } else {
    return null;
  }   
}
origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Create a new JDBC Realm.
 *
 * @param parent MBean Name of the associated parent component
 *
 * @exception Exception if an MBean cannot be created or registered
 */
public String createJDBCRealm(String parent, String driverName, 
  String connectionName, String connectionPassword, String connectionURL)
  throws Exception {
  // Create a new JDBCRealm instance
  JDBCRealm realm = new JDBCRealm();
  realm.setDriverName(driverName);
  realm.setConnectionName(connectionName);
  realm.setConnectionPassword(connectionPassword);
  realm.setConnectionURL(connectionURL);
  // Add the new instance to its parent component
  ObjectName pname = new ObjectName(parent);
  ContainerBase containerBase = getParentContainerFromParent(pname);
  // Add the new instance to its parent component
  containerBase.setRealm(realm);
  // Return the corresponding MBean name
  ObjectName oname = realm.getObjectName();
  if (oname != null) {
    return (oname.toString());
  } else {
    return null;
  }   
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Create a new JDBC Realm.
 *
 * @param parent MBean Name of the associated parent component
 * @param driverName JDBC driver name
 * @param connectionName the user name for the connection
 * @param connectionPassword the password for the connection
 * @param connectionURL the connection URL to the database
 * @return the object name of the created realm
 *
 * @exception Exception if an MBean cannot be created or registered
 */
public String createJDBCRealm(String parent, String driverName,
  String connectionName, String connectionPassword, String connectionURL)
  throws Exception {
  // Create a new JDBCRealm instance
  JDBCRealm realm = new JDBCRealm();
  realm.setDriverName(driverName);
  realm.setConnectionName(connectionName);
  realm.setConnectionPassword(connectionPassword);
  realm.setConnectionURL(connectionURL);
  // Add the new instance to its parent component
  return addRealmToParent(parent, realm);
}
origin: org.apache.tomcat/tomcat-catalina

/**
 * Create a new JDBC Realm.
 *
 * @param parent MBean Name of the associated parent component
 * @param driverName JDBC driver name
 * @param connectionName the user name for the connection
 * @param connectionPassword the password for the connection
 * @param connectionURL the connection URL to the database
 * @return the object name of the created realm
 *
 * @exception Exception if an MBean cannot be created or registered
 */
public String createJDBCRealm(String parent, String driverName,
  String connectionName, String connectionPassword, String connectionURL)
  throws Exception {
  // Create a new JDBCRealm instance
  JDBCRealm realm = new JDBCRealm();
  realm.setDriverName(driverName);
  realm.setConnectionName(connectionName);
  realm.setConnectionPassword(connectionPassword);
  realm.setConnectionURL(connectionURL);
  // Add the new instance to its parent component
  return addRealmToParent(parent, realm);
}
org.apache.catalina.realmJDBCRealmsetConnectionName

Javadoc

Set the username to use to connect to the database.

Popular methods of JDBCRealm

  • <init>
  • authenticate
    Attempt to authenticate the user with the provided credentials.
  • close
    Close the specified database connection.
  • credentials
    Return a PreparedStatement configured to perform the SELECT required to retrieve user credentials fo
  • getPassword
    Get the password for the specified user.
  • getRoles
    Return the roles associated with the given user name.
  • open
    Open (if necessary) and return a database connection for use by this Realm.
  • roles
    Return a PreparedStatement configured to perform the SELECT required to retrieve user roles for the
  • setConnectionPassword
    Set the password to use to connect to the database.
  • setConnectionURL
    Set the URL to use to connect to the database.
  • setDriverName
    Set the JDBC driver that will be used.
  • getObjectName
  • setDriverName,
  • getObjectName,
  • digest,
  • hasMessageDigest,
  • isRoleStoreDefined,
  • getCredentialHandler,
  • compareCredentials

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • requestLocationUpdates (LocationManager)
  • String (java.lang)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Best plugins for Eclipse
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