private void applyForcedChanges ( ) { // Disable the legacy system of API Token only if the new system was not installed // in such case it means there was already an upgrade before // and potentially the admin has re-enabled the features ApiTokenPropertyConfiguration apiTokenPropertyConfiguration = ApiTokenPropertyConfiguration . get ( ) ; if ( ! apiTokenPropertyConfiguration . hasExistingConfigFile ( ) ) { LOGGER . log ( Level . INFO , "New API token system configured with insecure options to keep legacy behavior" ) ; apiTokenPropertyConfiguration . setCreationOfLegacyTokenEnabled ( false ) ; apiTokenPropertyConfiguration . setTokenGenerationOnCreationEnabled ( false ) ; } }
Put here the different changes that are enforced after an update .