public class AlibabaKeyPairUtils extends Object
| 构造器和说明 |
|---|
AlibabaKeyPairUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static com.aliyuncs.ecs.model.v20140526.DescribeKeyPairsResponse.KeyPair |
find(String pemData,
AlibabaCredentials credentials,
String regionNo)
Finds the
DescribeKeyPairsResponse.KeyPair that corresponds to this key in ECS. |
static com.aliyuncs.ecs.model.v20140526.DescribeKeyPairsResponse.KeyPair |
find(String pemData,
AlibabaCredentials credentials,
String regionNo,
boolean isVpcEnv) |
static String |
getPublicFingerprint(String pemData) |
static boolean |
isPrivateKey(String pemData)
Is this file really a private key?
|
public static com.aliyuncs.ecs.model.v20140526.DescribeKeyPairsResponse.KeyPair find(String pemData, AlibabaCredentials credentials, String regionNo)
DescribeKeyPairsResponse.KeyPair that corresponds to this key in ECS.public static com.aliyuncs.ecs.model.v20140526.DescribeKeyPairsResponse.KeyPair find(String pemData, AlibabaCredentials credentials, String regionNo, boolean isVpcEnv)
public static boolean isPrivateKey(String pemData) throws IOException
IOExceptionCopyright © 2016–2022. All rights reserved.