Interface OracleDataSourceAttributes<T extends OracleDataSourceAttributes>
-
@Internal public interface OracleDataSourceAttributes<T extends OracleDataSourceAttributes>Represents the attributes of aDataSourcethat aWalletcan 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.Tpassword(char[] password)Configure the database password to use to connect to the databasejavax.net.ssl.SSLContextsslContext()The configuredSSLContextif anyTsslContext(javax.net.ssl.SSLContext sslContext)Configure theSSLContextused to create TLS connections to the databasejava.lang.Stringurl()The configured JDBC URL if anyTurl(java.lang.String url)Configure the JDBC url to use to connect to the databasejava.lang.Stringuser()The configured database user if anyTuser(java.lang.String user)Configure the database user to connect to
-
-
-
Method Detail
-
sslContext
javax.net.ssl.SSLContext sslContext()
The configuredSSLContextif any- Returns:
- SSLContext instance, or null if no instance configured
-
sslContext
T sslContext(javax.net.ssl.SSLContext sslContext)
Configure theSSLContextused to create TLS connections to the database- Parameters:
sslContext- TheSSLContextholding 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
-
-