org.dasein.cloud.cloudstack.identity
Class Keypair

java.lang.Object
  extended by org.dasein.cloud.cloudstack.identity.Keypair
All Implemented Interfaces:
AccessControlledService, ShellKeySupport

public class Keypair
extends Object
implements ShellKeySupport

Implements the CSCloud 3.0 SSH keypair support

Since:
2012.02
Version:
2012.02
Author:
George Reese

Field Summary
 
Fields inherited from interface org.dasein.cloud.identity.ShellKeySupport
ANY, CREATE_KEYPAIR, GET_KEYPAIR, LIST_KEYPAIR, REMOVE_KEYPAIR
 
Method Summary
 SSHKeypair createKeypair(String name)
           
 void deleteKeypair(String providerId)
           
 String getFingerprint(String providerId)
           
 Requirement getKeyImportSupport()
           
 SSHKeypair getKeypair(String providerId)
           
 String getProviderTermForKeypair(Locale locale)
           
 SSHKeypair importKeypair(String name, String publicKey)
           
 boolean isSubscribed()
           
 Collection<SSHKeypair> list()
           
 String[] mapServiceAction(ServiceAction action)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createKeypair

@Nonnull
public SSHKeypair createKeypair(@Nonnull
                                        String name)
                         throws InternalException,
                                CloudException
Specified by:
createKeypair in interface ShellKeySupport
Throws:
InternalException
CloudException

deleteKeypair

public void deleteKeypair(@Nonnull
                          String providerId)
                   throws InternalException,
                          CloudException
Specified by:
deleteKeypair in interface ShellKeySupport
Throws:
InternalException
CloudException

getFingerprint

@Nullable
public String getFingerprint(@Nonnull
                                      String providerId)
                      throws InternalException,
                             CloudException
Specified by:
getFingerprint in interface ShellKeySupport
Throws:
InternalException
CloudException

getKeyImportSupport

public Requirement getKeyImportSupport()
                                throws CloudException,
                                       InternalException
Specified by:
getKeyImportSupport in interface ShellKeySupport
Throws:
CloudException
InternalException

getKeypair

@Nullable
public SSHKeypair getKeypair(@Nonnull
                                      String providerId)
                      throws InternalException,
                             CloudException
Specified by:
getKeypair in interface ShellKeySupport
Throws:
InternalException
CloudException

getProviderTermForKeypair

@Nonnull
public String getProviderTermForKeypair(@Nonnull
                                                Locale locale)
Specified by:
getProviderTermForKeypair in interface ShellKeySupport

importKeypair

@Nonnull
public SSHKeypair importKeypair(@Nonnull
                                        String name,
                                        @Nonnull
                                        String publicKey)
                         throws InternalException,
                                CloudException
Specified by:
importKeypair in interface ShellKeySupport
Throws:
InternalException
CloudException

isSubscribed

public boolean isSubscribed()
                     throws CloudException,
                            InternalException
Specified by:
isSubscribed in interface ShellKeySupport
Throws:
CloudException
InternalException

list

@Nonnull
public Collection<SSHKeypair> list()
                            throws InternalException,
                                   CloudException
Specified by:
list in interface ShellKeySupport
Throws:
InternalException
CloudException

mapServiceAction

@Nonnull
public String[] mapServiceAction(@Nonnull
                                         ServiceAction action)
Specified by:
mapServiceAction in interface AccessControlledService


Copyright © 2012 enStratus Networks Inc. All Rights Reserved.