Interface OracleDataSourceAttributes<T extends OracleDataSourceAttributes>
-
- Type Parameters:
T
- the data source generic type
@Internal public interface OracleDataSourceAttributes<T extends OracleDataSourceAttributes>
Represents the attributes of aDataSource
that aWallet
can configure. Only the attributes that a io.micronaut.oraclecloud.adb.wallet can influence are enumerated in this type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description char[]
password()
The configured database password if any.T
password(char[] password)
Configure the database password to use to connect to the database.javax.net.ssl.SSLContext
sslContext()
The configuredSSLContext
if any.T
sslContext(javax.net.ssl.SSLContext sslContext)
Configure theSSLContext
used to create TLS connections to the database.java.lang.String
url()
The configured JDBC URL if any.T
url(java.lang.String url)
Configure the JDBC url to use to connect to the database.java.lang.String
user()
The configured database user if any.T
user(java.lang.String user)
Configure the database user to connect to.
-
-
-
Method Detail
-
sslContext
javax.net.ssl.SSLContext sslContext()
The configuredSSLContext
if any.- Returns:
- SSLContext instance, or null if no instance configured
-
sslContext
T sslContext(javax.net.ssl.SSLContext 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
java.lang.String url()
The configured JDBC URL if any.- Returns:
- String instance or null if no JDBC url configured
-
url
T url(java.lang.String url)
Configure the JDBC url to use to connect to the database.- Parameters:
url
- The JDBC url of the database- Returns:
- self
-
user
java.lang.String user()
The configured database user if any.- Returns:
- Database user name, or null if no username configured
-
user
T user(java.lang.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
-
-