org.dasein.cloud.cloudstack.identity
Class Keypair
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.