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 TypeMethodDescriptionchar[]
password()
The configured database password if any.password
(char[] password) Configure the database password to use to connect to the database.The configuredSSLContext
if any.sslContext
(SSLContext sslContext) Configure theSSLContext
used to create TLS connections to the database.url()
The configured JDBC URL if any.Configure the JDBC url to use to connect to the database.user()
The configured database user if any.Configure the database user to connect to.
-
Method Details
-
sslContext
SSLContext sslContext()The configuredSSLContext
if any.- Returns:
- SSLContext instance, or null if no instance configured
-
sslContext
Configure theSSLContext
used to create TLS connections to the database.- Parameters:
sslContext
- TheSSLContext
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
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
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
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
-