@@ -212,17 +212,17 @@ protected void loadPrivateKey(CoreConfiguration cfg, ServiceAccountKey saKey)
212212 private String getPrivateKey (CoreConfiguration cfg )
213213 throws CredentialsInFileNotFoundException , IOException {
214214 // Explicit code config
215- // Set private key
215+ // Get private key
216216 if (Utils .isStringSet (cfg .getPrivateKey ())) {
217217 return cfg .getPrivateKey ();
218218 }
219- // Set private key path
219+ // Get private key path
220220 if (Utils .isStringSet (cfg .getPrivateKeyPath ())) {
221221 String privateKeyPath = cfg .getPrivateKeyPath ();
222222 return new String (
223223 Files .readAllBytes (Paths .get (privateKeyPath )), StandardCharsets .UTF_8 );
224224 }
225- // Set credentials file
225+ // Get credentials file
226226 if (Utils .isStringSet (cfg .getCredentialsFilePath ())) {
227227 return readValueFromCredentialsFile (
228228 cfg .getCredentialsFilePath (),
@@ -231,15 +231,18 @@ private String getPrivateKey(CoreConfiguration cfg)
231231 }
232232
233233 // ENVs config
234+ // Get private key
234235 if (Utils .isStringSet (env .getStackitPrivateKey ())) {
235236 return env .getStackitPrivateKey ().trim ();
236237 }
238+ // Get private key path
237239 if (Utils .isStringSet (env .getStackitPrivateKeyPath ())) {
238240 return new String (
239241 Files .readAllBytes (Paths .get (env .getStackitPrivateKeyPath ())),
240242 StandardCharsets .UTF_8 );
241243 }
242244
245+ // Get credentialsFilePath
243246 String credentialsFilePath =
244247 Utils .isStringSet (env .getStackitCredentialsPath ())
245248 ? env .getStackitCredentialsPath ()
0 commit comments