This commit is contained in:
Radek Davidek 2025-10-21 19:52:15 +02:00
parent 0176e0ce90
commit 8d7bc54713
3 changed files with 3 additions and 3 deletions

View File

@ -34,6 +34,8 @@ public abstract class AbstractProcess {
protected static final String PARAM_SOURCE_APIM = "source_apim"; protected static final String PARAM_SOURCE_APIM = "source_apim";
protected static final String VERSION_32 = "v32"; protected static final String VERSION_32 = "v32";
public static final String PRIVATE_KEY_APIM_32 = "wso2apim32-pk.pem";
public static ObjectMapper mapper; public static ObjectMapper mapper;
public static ObjectMapper mapperYaml; public static ObjectMapper mapperYaml;

View File

@ -5,7 +5,6 @@ import java.io.FileOutputStream;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Set;
import java.util.concurrent.ExecutorService; import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors; import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
@ -16,7 +15,6 @@ import java.util.zip.ZipOutputStream;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.wso2.carbon.apimgt.api.APIDefinition; import org.wso2.carbon.apimgt.api.APIDefinition;
import org.wso2.carbon.apimgt.api.model.URITemplate;
import org.wso2.carbon.apimgt.impl.definitions.OASParserUtil; import org.wso2.carbon.apimgt.impl.definitions.OASParserUtil;
import cz.trask.migration.AbstractProcess; import cz.trask.migration.AbstractProcess;

View File

@ -236,7 +236,7 @@ public class ApiDefinitionMapper {
newSec.setType(oldSec.getType()); newSec.setType(oldSec.getType());
newSec.setTokenUrl(oldSec.getTokenUrl()); newSec.setTokenUrl(oldSec.getTokenUrl());
newSec.setClientId(oldSec.getClientId()); newSec.setClientId(oldSec.getClientId());
newSec.setClientSecret(CredentialsDecoder.decodeCredentials(oldSec.getClientSecret(), "wso2apim32-pk.pem")); newSec.setClientSecret(CredentialsDecoder.decodeCredentials(oldSec.getClientSecret(), AbstractProcess.PRIVATE_KEY_APIM_32));
newSec.setUsername(oldSec.getUsername()); newSec.setUsername(oldSec.getUsername());
newSec.setPassword(oldSec.getPassword()); newSec.setPassword(oldSec.getPassword());
newSec.setGrantType(oldSec.getGrantType()); newSec.setGrantType(oldSec.getGrantType());