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

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

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

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.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;
  }   
}
org.apache.catalina.realmJDBCRealmgetObjectName

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
  • setConnectionName
    Set the username to use to connect to the database.
  • 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.
  • setConnectionURL,
  • setDriverName,
  • digest,
  • hasMessageDigest,
  • isRoleStoreDefined,
  • getCredentialHandler,
  • compareCredentials

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • String (java.lang)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JTable (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Best IntelliJ 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