BasicDataSourceMXBean (Apache Tomcat 11.0.24 API Documentation)
Description: declaration: package: org.apache.tomcat.dbcp.dbcp2, interface: BasicDataSourceMXBean

# Interface BasicDataSourceMXBean

All Superinterfaces:
  `DataSourceMXBean`

All Known Implementing Classes:
  `BasicDataSource, BasicManagedDataSource`

public interface BasicDataSourceMXBean extends DataSourceMXBean
Interface to keep API compatibility. Methods listed here are not made available to JMX.

As of 2.9.0, this interface extends `DataSourceMXBean`.

Since:
  2.0

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getPassword()`
  Deprecated.
  Exposing passwords via JMX is an Information Exposure issue.

  ### Methods inherited from interface DataSourceMXBean

  `getAbandonedUsageTracking, getCacheState, getConnectionInitSqlsAsArray, getDefaultAutoCommit, getDefaultCatalog, getDefaultReadOnly, getDefaultSchema, getDefaultTransactionIsolation, getDisconnectionIgnoreSqlCodesAsArray, getDisconnectionSqlCodesAsArray, getDriverClassName, getFastFailValidation, getInitialSize, getLifo, getLogAbandoned, getLogExpiredConnections, getMaxConnLifetimeMillis, getMaxIdle, getMaxOpenPreparedStatements, getMaxTotal, getMaxWaitMillis, getMinEvictableIdleTimeMillis, getMinIdle, getNumActive, getNumIdle, getNumTestsPerEvictionRun, getRemoveAbandonedOnBorrow, getRemoveAbandonedOnMaintenance, getRemoveAbandonedTimeout, getSoftMinEvictableIdleTimeMillis, getTestOnBorrow, getTestOnCreate, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, getUrl, getUsername, getUserName, getValidationQuery, getValidationQueryTimeout, isAccessToUnderlyingConnectionAllowed, isClearStatementPoolOnReturn, isClosed, isPoolPreparedStatements, restart, start`

- ## Method Details

  - ### getPassword

    @Deprecated String getPassword()
    Deprecated.
    Exposing passwords via JMX is an Information Exposure issue.
    See `BasicDataSource.getPassword()`
    Returns:
      `BasicDataSource.getPassword()`