diff --git a/java/jdbc/ConnectionSamples/JdbcTokenAuthentication.java b/java/jdbc/ConnectionSamples/JdbcTokenAuthentication.java index 23925e7a..ec8d5515 100644 --- a/java/jdbc/ConnectionSamples/JdbcTokenAuthentication.java +++ b/java/jdbc/ConnectionSamples/JdbcTokenAuthentication.java @@ -158,6 +158,12 @@ private static AccessToken createAccessToken() { */ private static String requestToken(PublicKey publicKey) { + // Instance principal and resource principal authentication are also supported, and may be used + // as shown below. + // authentication = new InstancePrincipalAuthenticationDetailsProvider(); + // authentication = new ResourcePrincipalAuthenticationDetailsProvider(); + + // In this code sample, authentication is shown using a config file. // Read the configuration identified by the OCI_PROFILE final AuthenticationDetailsProvider authentication; try {