Package io.fathom.cloud.compute.api.os.model

Examples of io.fathom.cloud.compute.api.os.model.WrappedKeypair


    @Path("{id}")
    public WrappedKeypair getKeypair(@PathParam("id") String id) throws CloudException {
        KeyPairData keypair = keypairs.findKeyPair(getProject(), id);
        notFoundIfNull(keypair);

        WrappedKeypair response = new WrappedKeypair();
        response.keypair = toModel(keypair);
        return response;
    }
View Full Code Here


            // OpenSshUtils.serialize(sshPublicKey);
        }

        KeyPairData created = keypairs.create(getProject(), request.keypair.name, sshPublicKey);

        WrappedKeypair response = new WrappedKeypair();
        response.keypair = toModel(created);

        if (privateKey != null) {
            response.keypair.privateKey = KeyczarUtils.toPem(privateKey);
        }
View Full Code Here

TOP

Related Classes of io.fathom.cloud.compute.api.os.model.WrappedKeypair

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.