Examples of ImportKeyPairResponseType


Examples of com.amazon.ec2.ImportKeyPairResponseType

        return toImportKeyPair(engine.importKeyPair(ec2Request));
    }

    public static ImportKeyPairResponse toImportKeyPair(final EC2SSHKeyPair key) {
        ImportKeyPairResponseType respType = new ImportKeyPairResponseType();
        respType.setRequestId(UUID.randomUUID().toString());
        respType.setKeyName(key.getKeyName());
        respType.setKeyFingerprint(key.getFingerprint());

        ImportKeyPairResponse response = new ImportKeyPairResponse();
        response.setImportKeyPairResponse(respType);

        return response;
View Full Code Here

Examples of org.nimbustools.messaging.gt4_0_elastic.generated.v2010_08_31.ImportKeyPairResponseType

        final byte[] bytes = Base64.decode(publicKeyMaterial.getBytes());
        final String keyMaterial = new String(bytes);

        this.sshKeys.newKey(ownerID, keyName, keyMaterial, FAKE_FINGERPRINT);

        final ImportKeyPairResponseType resp =
                new ImportKeyPairResponseType(FAKE_FINGERPRINT, keyName, null);

        logger.info("SSH key registered, name='" + keyName +
                "', owner ID='" + ownerID + "'");

        return resp;
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.