refactor
This commit is contained in:
parent
0176e0ce90
commit
8d7bc54713
@ -35,6 +35,8 @@ public abstract class AbstractProcess {
|
||||
protected static final String PARAM_SOURCE_APIM = "source_apim";
|
||||
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 mapperYaml;
|
||||
|
||||
|
||||
@ -5,7 +5,6 @@ import java.io.FileOutputStream;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
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.Logger;
|
||||
import org.wso2.carbon.apimgt.api.APIDefinition;
|
||||
import org.wso2.carbon.apimgt.api.model.URITemplate;
|
||||
import org.wso2.carbon.apimgt.impl.definitions.OASParserUtil;
|
||||
|
||||
import cz.trask.migration.AbstractProcess;
|
||||
|
||||
@ -236,7 +236,7 @@ public class ApiDefinitionMapper {
|
||||
newSec.setType(oldSec.getType());
|
||||
newSec.setTokenUrl(oldSec.getTokenUrl());
|
||||
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.setPassword(oldSec.getPassword());
|
||||
newSec.setGrantType(oldSec.getGrantType());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user