Skip to content

Commit a2d3546

Browse files
committed
Support asymmetric keys.
1 parent 9fd8266 commit a2d3546

File tree

3 files changed

+89
-1
lines changed

3 files changed

+89
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 1.8.41 - 2019-12-31
4+
- Support asymmetric keys.
5+
6+
37
## 1.8.40 - 2019-12-31
48
- Add request parameter groupType for OnsGroupCreate.
59

src/Kms/V20160120/KmsApiResolver.php

+84
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@
55
use AlibabaCloud\Client\Resolver\ApiResolver;
66

77
/**
8+
* @method AsymmetricDecrypt asymmetricDecrypt(array $options = [])
9+
* @method AsymmetricEncrypt asymmetricEncrypt(array $options = [])
10+
* @method AsymmetricSign asymmetricSign(array $options = [])
11+
* @method AsymmetricVerify asymmetricVerify(array $options = [])
812
* @method CancelKeyDeletion cancelKeyDeletion(array $options = [])
913
* @method CreateAlias createAlias(array $options = [])
1014
* @method CreateKey createKey(array $options = [])
15+
* @method CreateKeyVersion createKeyVersion(array $options = [])
1116
* @method Decrypt decrypt(array $options = [])
1217
* @method DeleteAlias deleteAlias(array $options = [])
1318
* @method DeleteKeyMaterial deleteKeyMaterial(array $options = [])
@@ -21,6 +26,7 @@
2126
* @method GenerateDataKey generateDataKey(array $options = [])
2227
* @method GenerateDataKeyWithoutPlaintext generateDataKeyWithoutPlaintext(array $options = [])
2328
* @method GetParametersForImport getParametersForImport(array $options = [])
29+
* @method GetPublicKey getPublicKey(array $options = [])
2430
* @method ImportKeyMaterial importKeyMaterial(array $options = [])
2531
* @method ListAliases listAliases(array $options = [])
2632
* @method ListAliasesByKeyId listAliasesByKeyId(array $options = [])
@@ -56,6 +62,64 @@ class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
5662
public $serviceCode = 'kms';
5763
}
5864

65+
/**
66+
* @method string getKeyVersionId()
67+
* @method $this withKeyVersionId($value)
68+
* @method string getKeyId()
69+
* @method $this withKeyId($value)
70+
* @method string getCiphertextBlob()
71+
* @method $this withCiphertextBlob($value)
72+
* @method string getAlgorithm()
73+
* @method $this withAlgorithm($value)
74+
*/
75+
class AsymmetricDecrypt extends Rpc
76+
{
77+
}
78+
79+
/**
80+
* @method string getKeyVersionId()
81+
* @method $this withKeyVersionId($value)
82+
* @method string getKeyId()
83+
* @method $this withKeyId($value)
84+
* @method string getPlaintext()
85+
* @method $this withPlaintext($value)
86+
* @method string getAlgorithm()
87+
* @method $this withAlgorithm($value)
88+
*/
89+
class AsymmetricEncrypt extends Rpc
90+
{
91+
}
92+
93+
/**
94+
* @method string getKeyVersionId()
95+
* @method $this withKeyVersionId($value)
96+
* @method string getDigest()
97+
* @method $this withDigest($value)
98+
* @method string getKeyId()
99+
* @method $this withKeyId($value)
100+
* @method string getAlgorithm()
101+
* @method $this withAlgorithm($value)
102+
*/
103+
class AsymmetricSign extends Rpc
104+
{
105+
}
106+
107+
/**
108+
* @method string getKeyVersionId()
109+
* @method $this withKeyVersionId($value)
110+
* @method string getDigest()
111+
* @method $this withDigest($value)
112+
* @method string getKeyId()
113+
* @method $this withKeyId($value)
114+
* @method string getValue()
115+
* @method $this withValue($value)
116+
* @method string getAlgorithm()
117+
* @method $this withAlgorithm($value)
118+
*/
119+
class AsymmetricVerify extends Rpc
120+
{
121+
}
122+
59123
/**
60124
* @method string getKeyId()
61125
* @method $this withKeyId($value)
@@ -83,6 +147,8 @@ class CreateAlias extends Rpc
83147
* @method $this withOrigin($value)
84148
* @method string getDescription()
85149
* @method $this withDescription($value)
150+
* @method string getKeySpec()
151+
* @method $this withKeySpec($value)
86152
* @method string getRotationInterval()
87153
* @method $this withRotationInterval($value)
88154
* @method string getEnableAutomaticRotation()
@@ -92,6 +158,14 @@ class CreateKey extends Rpc
92158
{
93159
}
94160

161+
/**
162+
* @method string getKeyId()
163+
* @method $this withKeyId($value)
164+
*/
165+
class CreateKeyVersion extends Rpc
166+
{
167+
}
168+
95169
/**
96170
* @method string getEncryptionContext()
97171
* @method $this withEncryptionContext($value)
@@ -212,6 +286,16 @@ class GetParametersForImport extends Rpc
212286
{
213287
}
214288

289+
/**
290+
* @method string getKeyVersionId()
291+
* @method $this withKeyVersionId($value)
292+
* @method string getKeyId()
293+
* @method $this withKeyId($value)
294+
*/
295+
class GetPublicKey extends Rpc
296+
{
297+
}
298+
215299
/**
216300
* @method string getImportToken()
217301
* @method $this withImportToken($value)

src/Release.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Release
1616
/**
1717
* Version of the SDK
1818
*/
19-
const VERSION = '1.8.40';
19+
const VERSION = '1.8.41';
2020

2121
/**
2222
* @param Event $event

0 commit comments

Comments
 (0)