Interface OracleDataSourceAttributes<T extends OracleDataSourceAttributes>

Type Parameters:
T - the data source generic type

@Internal public interface OracleDataSourceAttributes<T extends OracleDataSourceAttributes>
Represents the attributes of a DataSource that a Wallet can configure. Only the attributes that a io.micronaut.oraclecloud.adb.wallet can influence are enumerated in this type.
  • Method Summary

    Modifier and Type
    Method
    Description
    char[]
    The configured database password if any.
    password(char[] password)
    Configure the database password to use to connect to the database.
    The configured SSLContext if any.
    sslContext(SSLContext sslContext)
    Configure the SSLContext used to create TLS connections to the database.
    url()
    The configured JDBC URL if any.
    url(String url)
    Configure the JDBC url to use to connect to the database.
    The configured database user if any.
    user(String user)
    Configure the database user to connect to.
  • Method Details

    • sslContext

      SSLContext sslContext()
      The configured SSLContext if any.
      Returns:
      SSLContext instance, or null if no instance configured
    • sslContext

      T sslContext(SSLContext sslContext)
      Configure the SSLContext used to create TLS connections to the database.
      Parameters:
      sslContext - The SSLContext holding the certificates used to secure access to the database
      Returns:
      self
    • url

      String url()
      The configured JDBC URL if any.
      Returns:
      String instance or null if no JDBC url configured
    • url

      T url(String url)
      Configure the JDBC url to use to connect to the database.
      Parameters:
      url - The JDBC url of the database
      Returns:
      self
    • user

      String user()
      The configured database user if any.
      Returns:
      Database user name, or null if no username configured
    • user

      T user(String user)
      Configure the database user to connect to.
      Parameters:
      user - The database username
      Returns:
      self
    • password

      char[] password()
      The configured database password if any. Note a copy of the password is returned, the caller is responsible for zeroing out the array once the password value has been consumed.
      Returns:
      char[] array holding a copy of the password, or null if no password has been configured
    • password

      T password(char[] password)
      Configure the database password to use to connect to the database.
      Parameters:
      password - The password to use to connect to the database. The caller should zero out this array after this method has been invoked. The implementor must create a copy of the supplied array
      Returns:
      self