Examples of DescribeKeyPairsResponseItemType


Examples of com.amazon.ec2.DescribeKeyPairsResponseItemType

        EC2SSHKeyPair[] keyPairs = response.getKeyPairSet();

        DescribeKeyPairsResponseInfoType respInfoType = new DescribeKeyPairsResponseInfoType();
        if (keyPairs != null && keyPairs.length > 0) {
            for (final EC2SSHKeyPair key : keyPairs) {
                DescribeKeyPairsResponseItemType respItemType = new DescribeKeyPairsResponseItemType();
                respItemType.setKeyFingerprint(key.getFingerprint());
                respItemType.setKeyName(key.getKeyName());
                respInfoType.addItem(respItemType);
            }
        }

        DescribeKeyPairsResponseType respType = new DescribeKeyPairsResponseType();
View Full Code Here

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

            final SSHKey key = allKeys[i];
            if (key == null) {
                logger.error("null in allKeys[]");
                continue; // *** SKIP ***
            }
            final DescribeKeyPairsResponseItemType one = this.getAPair(key);
            if (one == null) {
                continue; // *** SKIP ***
            }
            retList.add(one);
        }
View Full Code Here

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

            final String keyname = filter[i].trim();
            final SSHKey key = this.sshKeys.findKey(ownerID, keyname);
            if (key == null) {
                continue; // *** SKIP ***
            }
            final DescribeKeyPairsResponseItemType one = this.getAPair(key);
            if (one == null) {
                continue; // *** SKIP ***
            }
            retList.add(one);
        }
View Full Code Here

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

    protected DescribeKeyPairsResponseItemType getAPair(SSHKey key) {
        if (key == null) {
            throw new IllegalArgumentException("key may not be null");
        }
        final DescribeKeyPairsResponseItemType dkprit =
                new DescribeKeyPairsResponseItemType();
        dkprit.setKeyName(key.getKeyName());
        dkprit.setKeyFingerprint(key.getFingerprint());
        return dkprit;
    }
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.