public class ECSPrivateKey extends Object
Constructor and Description |
---|
ECSPrivateKey(String privateKey,
String SSHKeyId,
com.huaweicloud.sdk.ecs.v2.EcsClient client) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object that) |
com.huaweicloud.sdk.ecs.v2.model.NovaKeypair |
find() |
String |
getFingerprint()
Obtains the fingerprint of the key in the "ab:cd:ef:...:12" format.
|
String |
getPrivateKey() |
Secret |
getPrivateKeySecret() |
String |
getPublicFingerprint() |
int |
hashCode() |
boolean |
isPrivateKey()
Is this file really a private key?
|
String |
toString() |
public String getPrivateKey()
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public Secret getPrivateKeySecret()
public String getFingerprint() throws IOException
IOException
- if the underlying private key is invalid: empty or password protected
(password protected private keys are not yet supported)public String getPublicFingerprint() throws IOException
IOException
public boolean isPrivateKey() throws IOException
IOException
public com.huaweicloud.sdk.ecs.v2.model.NovaKeypair find() throws com.huaweicloud.sdk.core.exception.SdkException, IOException
com.huaweicloud.sdk.core.exception.SdkException
IOException
Copyright © 2016–2021. All rights reserved.