Example usage for com.amazonaws.services.ec2.model KeyPair setKeyMaterial

List of usage examples for com.amazonaws.services.ec2.model KeyPair setKeyMaterial

Introduction

In this page you can find the example usage for com.amazonaws.services.ec2.model KeyPair setKeyMaterial.

Prototype


public void setKeyMaterial(String keyMaterial) 

Source Link

Document

An unencrypted PEM encoded RSA private key.

Usage

From source file:jp.primecloud.auto.aws.typica.converter.KeyPairConverter.java

License:Open Source License

@Override
protected KeyPair convertObject(KeyPairInfo from) {
    KeyPair to = new KeyPair();

    to.setKeyName(from.getKeyName());/*  w ww .  j a  v a  2s.  com*/
    to.setKeyMaterial(from.getKeyMaterial());
    to.setKeyFingerprint(from.getKeyFingerprint());

    return to;
}