List of usage examples for com.amazonaws.services.ec2.model KeyPairInfo setKeyFingerprint
public void setKeyFingerprint(String keyFingerprint)
If you used CreateKeyPair to create the key pair, this is the SHA-1 digest of the DER encoded private key.
From source file:jp.primecloud.auto.aws.typica.converter.KeyPairInfoConverter.java
License:Open Source License
@Override protected KeyPairInfo convertObject(com.xerox.amazonws.ec2.KeyPairInfo from) { KeyPairInfo to = new KeyPairInfo(); to.setKeyName(from.getKeyName());/*from w w w . ja va 2 s.c o m*/ to.setKeyFingerprint(from.getKeyFingerprint()); return to; }
From source file:org.jenkinsci.plugins.ec2harness.MockAmazonEC2.java
License:Open Source License
public DescribeKeyPairsResult describeKeyPairs() throws AmazonServiceException, AmazonClientException { printcall();//from w ww.ja va2s . co m DescribeKeyPairsResult describeKeyPairsResult = new DescribeKeyPairsResult(); ArrayList<KeyPairInfo> keyPairs = new ArrayList<KeyPairInfo>(); KeyPairInfo myKey = new KeyPairInfo(); myKey.setKeyFingerprint(fingerprint); myKey.setKeyName(keyName); keyPairs.add(myKey); describeKeyPairsResult.setKeyPairs(keyPairs); return describeKeyPairsResult; }