Package com.cloud.api.response

Examples of com.cloud.api.response.SSHKeyPairResponse


   
 
  @Override
  public void execute() { 
    SSHKeyPair result = _mgr.registerSSHKeyPair(this);
        SSHKeyPairResponse response = new SSHKeyPairResponse(result.getName(), result.getFingerprint());
        response.setResponseName(getCommandName());
    response.setObjectName("keypair");
        this.setResponseObject(response);
  }
View Full Code Here


  @Override
  public void execute() {
    List<? extends SSHKeyPair> resultList = _mgr.listSSHKeyPairs(this);
    List<SSHKeyPairResponse> responses = new ArrayList<SSHKeyPairResponse>();
    for (SSHKeyPair result : resultList) {
      SSHKeyPairResponse r = new SSHKeyPairResponse(result.getName(), result.getFingerprint());
      r.setObjectName("sshkeypair");
      responses.add(r);
    }
   
        ListResponse<SSHKeyPairResponse> response = new ListResponse<SSHKeyPairResponse>();
        response.setResponses(responses);
View Full Code Here

    }  

  @Override
  public void execute() {
    SSHKeyPair r = _mgr.createSSHKeyPair(this);
    SSHKeyPairResponse response = new SSHKeyPairResponse(r.getName(), r.getFingerprint(), r.getPrivateKey());
    response.setResponseName(getCommandName());
    response.setObjectName("keypair");
    this.setResponseObject(response);
  }
View Full Code Here

TOP

Related Classes of com.cloud.api.response.SSHKeyPairResponse

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.