Package com.intel.mtwilson

Examples of com.intel.mtwilson.ApiClient$ListOsData


                    p.setProperty("mtwilson.api.ssl.requireTrustedCertificate", WLMPConfig.getConfiguration().getString("mtwilson.api.ssl.requireTrustedCertificate", "true")); // must be secure out of the box!
                    p.setProperty("mtwilson.api.ssl.verifyHostname", WLMPConfig.getConfiguration().getString("mtwilson.api.ssl.verifyHostname", "true")); // must be secure out of the box!
  
                    // Instantiate the API Client object and store it in the session. Otherwise either we need
                    // to store the password in the session or the decrypted RSA key
                    ApiClient rsaApiClient = new ApiClient(baseURL, keystore, new MapConfiguration(p));
       
                    //Storing variable into a session object used while calling into RESt Services.
                    HttpSession session = req.getSession();
                    session.setAttribute("logged-in", true);
                    session.setAttribute("username",username);
View Full Code Here


                        logger.info("Trust Dashboard: mtwilson.api.ssl.policy="+TDPConfig.getConfiguration().getString("mtwilson.api.ssl.policy"));
                        p.setProperty("mtwilson.api.ssl.policy", TDPConfig.getConfiguration().getString("mtwilson.api.ssl.policy", "TRUST_CA_VERIFY_HOSTNAME")); // must be secure out of the box!
                        p.setProperty("mtwilson.api.ssl.requireTrustedCertificate", TDPConfig.getConfiguration().getString("mtwilson.api.ssl.requireTrustedCertificate", "true")); // must be secure out of the box!
                        p.setProperty("mtwilson.api.ssl.verifyHostname", TDPConfig.getConfiguration().getString("mtwilson.api.ssl.verifyHostname", "true")); // must be secure out of the box!
      
                        ApiClient rsaApiClient = new ApiClient(baseURL, keystore, new MapConfiguration(p));
                        X509Certificate[] trustedCertificates = new X509Certificate[0]; // keystore.getTrustedCertificates(SimpleKeystore.SAML);
      
                        //Storing information into a request session. These variables are used in DemoPortalDataController.
                        HttpSession session = req.getSession();
      session.setAttribute("logged-in", true);
View Full Code Here

        return client;
    }

    private ApiClient createClient() throws ClientException, IOException {
        Configuration conf = ConfigurationUtil.getConfiguration(); // tries jvm properties, environment variables, then mtwilson.properties;  you can set location of mtwilson.properties with -Dmtwilson.home=/path/to/dir
        return new ApiClient(conf);
    }
View Full Code Here

*/
public class GetHostTrust extends AbstractCommand {

    @Override
    public void execute(String[] args) throws Exception {
        ApiClient api = getClient();
        HostTrustResponse response = api.getHostTrust(new Hostname(args[0]));
        System.out.println(toJson(response));
    }
View Full Code Here

TOP

Related Classes of com.intel.mtwilson.ApiClient$ListOsData

Copyright © 2018 www.massapicom. 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.