Package com.openshift.internal.client.response

Examples of com.openshift.internal.client.response.KeyResourceDTO


    if (hasSSHPublicKey(name)) {
      throw new OpenShiftSSHKeyException(
          "Could not add new key {0} with the name {1}. The key is already stored with a different name. Public key have to be unique.",
          key.getPublicKey(), name);
    }
    KeyResourceDTO keyDTO = new AddSShKeyRequest().execute(key.getKeyType(), name, key.getPublicKey());
    return put(keyDTO);
  }
View Full Code Here


  public void setKeyType(SSHKeyType type, String publicKey) throws OpenShiftException {
    Assert.notNull(type);
    Assert.notNull(publicKey);

    KeyResourceDTO dto = new UpdateKeyRequest().execute(type, publicKey);
    update(dto);
  }
View Full Code Here

  }

  public void setPublicKey(String publicKey) throws OpenShiftException {
    Assert.notNull(publicKey);

    KeyResourceDTO dto = new UpdateKeyRequest().execute(getKeyType(), publicKey);
    update(dto);
  }
View Full Code Here

  @Override
  public IOpenShiftSSHKey putSSHKey(String name, ISSHPublicKey key) throws OpenShiftException {
    Assert.notNull(name);
    Assert.notNull(key);

    KeyResourceDTO keyDTO = new AddSShKeyRequest().execute(key.getKeyType(), name, key.getPublicKey());
    return put(keyDTO);
  }
View Full Code Here

    if (hasSSHPublicKey(name)) {
      throw new OpenShiftSSHKeyException(
          "Could not add new key {0} with the name {1}. The key is already stored with a different name. Public key have to be unique.",
          key.getPublicKey(), name);
    }
    KeyResourceDTO keyDTO = new AddSShKeyRequest().execute(key.getKeyType(), name, key.getPublicKey());
    return put(keyDTO);
  }
View Full Code Here

    if (hasSSHPublicKey(name)) {
      throw new OpenShiftSSHKeyException(
          "Could not add new key {0} with the name {1}. The key is already stored with a different name. Public key have to be unique.",
          key.getPublicKey(), name);
    }
    KeyResourceDTO keyDTO = new AddSShKeyRequest().execute(key.getKeyType(), name, key.getPublicKey());
    return put(keyDTO);
  }
View Full Code Here

  public void setKeyType(SSHKeyType type, String publicKey) throws OpenShiftException {
    Assert.notNull(type);
    Assert.notNull(publicKey);

    KeyResourceDTO dto = new UpdateKeyRequest().execute(type, publicKey);
    update(dto);
  }
View Full Code Here

  }

  public void setPublicKey(String publicKey) throws OpenShiftException {
    Assert.notNull(publicKey);

    KeyResourceDTO dto = new UpdateKeyRequest().execute(getKeyType(), publicKey);
    update(dto);
  }
View Full Code Here

  @Override
  public IOpenShiftSSHKey putSSHKey(String name, ISSHPublicKey key) throws OpenShiftException {
    Assert.notNull(name);
    Assert.notNull(key);

    KeyResourceDTO keyDTO = new AddSShKeyRequest().execute(key.getKeyType(), name, key.getPublicKey());
    return put(keyDTO);
  }
View Full Code Here

    if (hasSSHPublicKey(name)) {
      throw new OpenShiftSSHKeyException(
          "Could not add new key {0} with the name {1}. The key is already stored with a different name. Public key have to be unique.",
          key.getPublicKey(), name);
    }
    KeyResourceDTO keyDTO = new AddSShKeyRequest().execute(key.getKeyType(), name, key.getPublicKey());
    return put(keyDTO);
  }
View Full Code Here

TOP

Related Classes of com.openshift.internal.client.response.KeyResourceDTO

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.