Examples of CumulocityCredentials


Examples of com.cumulocity.model.authentication.CumulocityCredentials

        String userKey = bootstrap ? "cumulocity.bootstrap.user" : "cumulocity.user";
        String userPassword = bootstrap ? "cumulocity.bootstrap.password" : "cumulocity.password";
        SystemPropertiesOverrider p = new SystemPropertiesOverrider(cumulocityProps);
        return new PlatformImpl(
                p.get("cumulocity.host"),
                new CumulocityCredentials(p.get("cumulocity.tenant"),
                        p.get(userKey),
                        p.get(userPassword),
                        null));
    }
View Full Code Here

Examples of com.cumulocity.model.authentication.CumulocityCredentials

        cumulocityProps.load(InventoryIT.class.getClassLoader().getResourceAsStream("cumulocity-test.properties"));

        SystemPropertiesOverrider p = new SystemPropertiesOverrider(cumulocityProps);
        return new PlatformImpl(
                p.get("cumulocity.host"),
               new CumulocityCredentials(p.get("cumulocity.tenant"),
                p.get("cumulocity.user"),
                p.get("cumulocity.password"),
                null),
                5);
    }
View Full Code Here

Examples of com.cumulocity.model.authentication.CumulocityCredentials

        super(getHostUrl(host, port), credentials, new ClientConfiguration(), pageSize);
    }
   
    @Deprecated
    public PlatformImpl(String host, String tenantId, String user, String password, String applicationKey) {
        super(host, new CumulocityCredentials(tenantId, user, password,applicationKey), new ClientConfiguration());
    }
View Full Code Here

Examples of com.cumulocity.model.authentication.CumulocityCredentials

        super(host, new CumulocityCredentials(tenantId, user, password,applicationKey), new ClientConfiguration());
    }

    @Deprecated
    public PlatformImpl(String host, String tenantId, String user, String password, String applicationKey, int pageSize) {
        super(host, new CumulocityCredentials(tenantId, user, password,applicationKey), new ClientConfiguration(), pageSize);
    }
View Full Code Here

Examples of com.cumulocity.model.authentication.CumulocityCredentials

            if (host == null || tenantId == null || user == null || password == null) {
                throw new SDKException("Cannot Create Platform as Mandatory Param are not set");
            }
            if (System.getProperty(CUMULOCITY_PAGE_SIZE) != null) {
                int pageSize = Integer.parseInt(System.getProperty(CUMULOCITY_PAGE_SIZE));
                platform = new PlatformImpl(host, port, new CumulocityCredentials(tenantId, user, password,applicationKey), pageSize);
            } else {
                platform = new PlatformImpl(host, port, new CumulocityCredentials(tenantId, user, password,applicationKey));
            }
            String proxyHost = System.getProperty(CUMOLOCITY_PROXY_HOST);
            int proxyPort = -1;
            if (System.getProperty(CUMULOCITY_PROXY_PORT) != null) {
                proxyPort = Integer.parseInt(System.getProperty(CUMULOCITY_PROXY_PORT));
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.