Package com.openshift.client

Examples of com.openshift.client.IOpenShiftSSHKey.destroy()


  }

  public void deleteKey(String name) {
    IOpenShiftSSHKey key = getSSHKeyByName(name);
    if (key != null) {
      key.destroy();
    }
  }
 
  public IOpenShiftSSHKey getSSHKeyByName(String name)
      throws OpenShiftUnknonwSSHKeyTypeException, OpenShiftException {
View Full Code Here


  public boolean removeSSHKey(String name) {
    IOpenShiftSSHKey key = getSSHKeyByName(name);
    if (key == null) {
      return false;
    }
    key.destroy();
    getCachedOrLoadSSHKeys().remove(name);
    return true;
  }
 
  @Deprecated
View Full Code Here

  }

  public void deleteKey(String name) {
    IOpenShiftSSHKey key = getSSHKeyByName(name);
    if (key != null) {
      key.destroy();
    }
  }
 
  public IOpenShiftSSHKey getSSHKeyByName(String name)
      throws OpenShiftUnknonwSSHKeyTypeException, OpenShiftException {
View Full Code Here

  public boolean removeSSHKey(String name) {
    IOpenShiftSSHKey key = getSSHKeyByName(name);
    if (key == null) {
      return false;
    }
    key.destroy();
    getCachedOrLoadSSHKeys().remove(name);
    return true;
  }
 
  @Deprecated
View Full Code Here

      String publicKeyPath = SSHKeyTestUtils.createDsaKeyPair();
      String keyName = SSHKeyTestUtils.createRandomKeyName();
      key = user.addSSHKey(keyName, new SSHPublicKey(publicKeyPath));
     
      // operation
      key.destroy();
      key = null;
     
      // verification
      assertThat(user.getSSHKeyByName(keyName)).isNull();
    } finally {
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.