Interface AccessTokenProvider

All Superinterfaces:
OracleResourceProvider

public interface AccessTokenProvider extends OracleResourceProvider

A provider of OAUTH access tokens that authorize logins to Oracle Database.

The oracle.jdbc.provider.accessToken connection property identifies the name of an AccessTokenProvider implementation. Connection properties under the namespace of oracle.jdbc.provider.accessToken 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 "scope":

  oracle.jdbc.provider.accessToken=example-provider
  oracle.jdbc.provider.accessToken.scope=example.database:connect

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

Since:
23