Interface UsernameProvider

All Superinterfaces:
OracleResourceProvider

public interface UsernameProvider extends OracleResourceProvider

A provider of usernames for authentication with Oracle Database.

The oracle.jdbc.provider.username connection property identifies the name of a UsernameProvider implementation. Connection properties under the namespace of oracle.jdbc.provider.username configure any parameters that an implementation defines. To illustrate, the connection properties below would identify a provider named "example-provider", and configure a parameter named "vaultId":

  oracle.jdbc.provider.username = example-provider
  oracle.jdbc.provider.username.vaultId = 9999-8888-7777

ServiceLoader locates implementations of UsernameProvider declared by a META-INF/services/oracle.jdbc.spi.UsernameProvider file in the class path, or by a module-info.java file with a "provides oracle.jdbc.spi.UsernameProvider" directive in the module path. Typically, these files are distributed within a jar file that contains a UsernameProvider implementation.

Since:
23