/** * Initializes a new instance of the SshSettingPublicKey class with required * arguments. * * @param fingerprint Specifies the SHA1 fingerprint of an X509 certificate * associated with the hosted service that includes the SSH public key. * @param path Specifies the full path of a file on the virtual machine * which stores the SSH public key. If the file already exists, the * specified key is appended to the file. Example: * /home/user/.ssh/authorized_keys. */ public SshSettingPublicKey(String fingerprint, String path) { if (fingerprint == null) { throw new NullPointerException("fingerprint"); } if (path == null) { throw new NullPointerException("path"); } this.setFingerprint(fingerprint); this.setPath(path); } }
SshSettingPublicKey sspk = new SshSettingPublicKey(); sspk.setFingerprint(getFingerprint(vmName)); sspk.setPath("/home/" + adminUserName + "/.ssh/authorized_keys"); //TODO: update for windows pks.add(sspk);
String pathInstance2; pathInstance2 = pathElement2.getTextContent(); publicKeyInstance.setPath(pathInstance2);
String pathInstance2; pathInstance2 = pathElement2.getTextContent(); publicKeyInstance.setPath(pathInstance2);
String pathInstance2; pathInstance2 = pathElement2.getTextContent(); publicKeyInstance.setPath(pathInstance2);
String pathInstance2; pathInstance2 = pathElement2.getTextContent(); publicKeyInstance.setPath(pathInstance2);
String pathInstance2; pathInstance2 = pathElement2.getTextContent(); publicKeyInstance.setPath(pathInstance2);
String pathInstance2; pathInstance2 = pathElement2.getTextContent(); publicKeyInstance.setPath(pathInstance2);
String pathInstance2; pathInstance2 = pathElement2.getTextContent(); publicKeyInstance.setPath(pathInstance2);
String pathInstance2; pathInstance2 = pathElement2.getTextContent(); publicKeyInstance.setPath(pathInstance2);