Examples of PlatformLayerConnectionConfiguration


Examples of org.platformlayer.federation.model.PlatformLayerConnectionConfiguration

    String federationNamespace = "http://platformlayer.org/service/federation/v1.0";
    boolean federationEnabled = isServiceEnabled(localClient, federationNamespace);

    if (federationEnabled) {
      for (FederatedService service : localClient.listItems(FederatedService.class)) {
        PlatformLayerConnectionConfiguration config = new PlatformLayerConnectionConfiguration();
        config.key = service.getKey();
        config.secret = service.getSecret();
        config.authenticationEndpoint = service.getServer();
        config.tenant = service.getTenant();
        config.username = service.getUsername();
View Full Code Here

Examples of org.platformlayer.federation.model.PlatformLayerConnectionConfiguration

    return build(httpStrategy, config.platformlayerEndpoint, authenticator, projectId,
        config.platformlayerTrustKeys);
  }

  public static HttpPlatformLayerClient buildUsingProperties(HttpStrategy httpStrategy, Properties properties) {
    PlatformLayerConnectionConfiguration config = new PlatformLayerConnectionConfiguration();
    config.tenant = properties.getProperty("platformlayer.tenant");
    config.authenticationEndpoint = properties.getProperty("platformlayer.auth.url");
    config.username = properties.getProperty("platformlayer.username");
    config.secret = properties.getProperty("platformlayer.password");
    config.platformlayerEndpoint = properties.getProperty("platformlayer.url");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.