This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private IProvisioningAgent getProvisioingAgent() { | |
final IProvisioningAgent agent = (IProvisioningAgent) ServiceHelper.getService(FraudPlugin.bundleContext, | |
IProvisioningAgent.SERVICE_NAME); | |
if (agent == null) { | |
LogHelper.log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, | |
"No provisioning agent found. This application is not set up for updates.")); | |
} | |
return agent; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void addRuntimeP2Repository(IProgressMonitor monitor, ProvisioningSession session, URI runtimeRepoURI) throws ProvisionException, OperationCanceledException { | |
//Create Metadata repository manager and add the new repository location | |
IMetadataRepositoryManager metaDataRepoManager = ProvUI.getMetadataRepositoryManager(session); | |
metaDataRepoManager.loadRepository(runtimeRepoURI, monitor); | |
//Create artifact repository manager and add the new repository location | |
IArtifactRepositoryManager artifactDataRepoManager = ProvUI.getArtifactRepositoryManager(session); | |
artifactDataRepoManager.loadRepository(runtimeRepoURI, monitor); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.security.cert.CertificateException; | |
import java.security.cert.X509Certificate; | |
import javax.net.ssl.X509TrustManager; | |
public class BlindTrustManager implements X509TrustManager { | |
public X509Certificate[] getAcceptedIssuers() { | |
return null; | |
} |