Skip to content

Commit df1b27d

Browse files
committed
review feedback
1 parent e2077f1 commit df1b27d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

examples/authentication/src/main/java/cloud/stackit/sdk/authentication/examples/AuthenticationExample.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ public static void main(String[] args) throws IOException {
1313
///////////////////////////////////////////////////////
1414
// Option 1: setting the paths to service account key (and private key) as configuration
1515
///////////////////////////////////////////////////////
16-
String SERVICE_ACCOUNT_KEY_PATH = "/path/to/sa_key.json";
17-
String PRIVATE_KEY_PATH = "/path/to/private_key.pem";
18-
String SERVICE_ACCOUNT_MAIL = "[email protected]";
16+
final String SERVICE_ACCOUNT_KEY_PATH = "/path/to/sa_key.json";
17+
final String PRIVATE_KEY_PATH = "/path/to/private_key.pem";
18+
final String SERVICE_ACCOUNT_MAIL = "[email protected]";
1919

2020
try {
2121
ResourceManagerApi api =
@@ -64,16 +64,16 @@ public static void main(String[] args) throws IOException {
6464
throw new RuntimeException(e);
6565
}
6666

67-
String SERVICE_ACCOUNT_KEY = serviceAccountKeyContent.toString();
68-
String PRIVATE_KEY = privateKeyContent.toString();
67+
String serviceAccountKey = serviceAccountKeyContent.toString();
68+
String privateKey = privateKeyContent.toString();
6969

7070
try {
7171
ResourceManagerApi api =
7272
new ResourceManagerApi(
7373
new CoreConfiguration()
74-
.serviceAccountKey(SERVICE_ACCOUNT_KEY)
74+
.serviceAccountKey(serviceAccountKey)
7575
// Optional: if private key not included in service account key
76-
.privateKey(PRIVATE_KEY));
76+
.privateKey(privateKey));
7777

7878
/* list all organizations */
7979
ListOrganizationsResponse response =

0 commit comments

Comments
 (0)