Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 03a67f3

Browse files
committed
kms sdk 密钥管理服务SDK Release
1 parent 95db71f commit 03a67f3

24 files changed

+251
-21
lines changed

aliyun-java-sdk-kms/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<groupId>com.aliyun</groupId>
44
<artifactId>aliyun-java-sdk-kms</artifactId>
55
<packaging>jar</packaging>
6-
<version>2.3.1</version>
6+
<version>2.4.0</version>
77
<name>aliyun-java-sdk-kms</name>
88
<url>http://www.aliyun.com</url>
99
<description>Aliyun Open API SDK for Java

aliyun-java-sdk-kms/src/main/java/com/aliyuncs/kms/model/v20160120/CancelKeyDeletionRequest.java

100755100644
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
*/
1919
package com.aliyuncs.kms.model.v20160120;
2020

21-
import com.aliyuncs.RpcAcsRequest;
21+
import com.aliyuncs.RpcAcsRequest;
22+
import com.aliyuncs.http.ProtocolType;
2223

2324
/**
2425
* @author auto create
@@ -27,7 +28,8 @@
2728
public class CancelKeyDeletionRequest extends RpcAcsRequest<CancelKeyDeletionResponse> {
2829

2930
public CancelKeyDeletionRequest() {
30-
super("Kms", "2016-01-20", "CancelKeyDeletion", "kms");
31+
super("Kms", "2016-01-20", "CancelKeyDeletion", "kms");
32+
setProtocol(ProtocolType.HTTPS);
3133
}
3234

3335
private String keyId;

aliyun-java-sdk-kms/src/main/java/com/aliyuncs/kms/model/v20160120/CancelKeyDeletionResponse.java

100755100644
File mode changed.

aliyun-java-sdk-kms/src/main/java/com/aliyuncs/kms/model/v20160120/CreateKeyRequest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
*/
1919
package com.aliyuncs.kms.model.v20160120;
2020

21-
import com.aliyuncs.RpcAcsRequest;
21+
import com.aliyuncs.RpcAcsRequest;
22+
import com.aliyuncs.http.ProtocolType;
2223

2324
/**
2425
* @author auto create
@@ -27,7 +28,8 @@
2728
public class CreateKeyRequest extends RpcAcsRequest<CreateKeyResponse> {
2829

2930
public CreateKeyRequest() {
30-
super("Kms", "2016-01-20", "CreateKey", "kms");
31+
super("Kms", "2016-01-20", "CreateKey", "kms");
32+
setProtocol(ProtocolType.HTTPS);
3133
}
3234

3335
private String description;

aliyun-java-sdk-kms/src/main/java/com/aliyuncs/kms/model/v20160120/CreateKeyResponse.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ public static class KeyMetadata {
6262

6363
private String deleteDate;
6464

65+
private String creator;
66+
67+
private String arn;
68+
6569
public String getCreationDate() {
6670
return this.creationDate;
6771
}
@@ -109,6 +113,22 @@ public String getDeleteDate() {
109113
public void setDeleteDate(String deleteDate) {
110114
this.deleteDate = deleteDate;
111115
}
116+
117+
public String getCreator() {
118+
return this.creator;
119+
}
120+
121+
public void setCreator(String creator) {
122+
this.creator = creator;
123+
}
124+
125+
public String getArn() {
126+
return this.arn;
127+
}
128+
129+
public void setArn(String arn) {
130+
this.arn = arn;
131+
}
112132
}
113133

114134
@Override

aliyun-java-sdk-kms/src/main/java/com/aliyuncs/kms/model/v20160120/DecryptRequest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
*/
1919
package com.aliyuncs.kms.model.v20160120;
2020

21-
import com.aliyuncs.RpcAcsRequest;
21+
import com.aliyuncs.RpcAcsRequest;
22+
import com.aliyuncs.http.ProtocolType;
2223

2324
/**
2425
* @author auto create
@@ -27,7 +28,8 @@
2728
public class DecryptRequest extends RpcAcsRequest<DecryptResponse> {
2829

2930
public DecryptRequest() {
30-
super("Kms", "2016-01-20", "Decrypt", "kms");
31+
super("Kms", "2016-01-20", "Decrypt", "kms");
32+
setProtocol(ProtocolType.HTTPS);
3133
}
3234

3335
private String ciphertextBlob;

aliyun-java-sdk-kms/src/main/java/com/aliyuncs/kms/model/v20160120/DescribeKeyRequest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
*/
1919
package com.aliyuncs.kms.model.v20160120;
2020

21-
import com.aliyuncs.RpcAcsRequest;
21+
import com.aliyuncs.RpcAcsRequest;
22+
import com.aliyuncs.http.ProtocolType;
2223

2324
/**
2425
* @author auto create
@@ -27,7 +28,8 @@
2728
public class DescribeKeyRequest extends RpcAcsRequest<DescribeKeyResponse> {
2829

2930
public DescribeKeyRequest() {
30-
super("Kms", "2016-01-20", "DescribeKey", "kms");
31+
super("Kms", "2016-01-20", "DescribeKey", "kms");
32+
setProtocol(ProtocolType.HTTPS);
3133
}
3234

3335
private String keyId;

aliyun-java-sdk-kms/src/main/java/com/aliyuncs/kms/model/v20160120/DescribeKeyResponse.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ public static class KeyMetadata {
6464

6565
private String creator;
6666

67+
private String arn;
68+
6769
public String getCreationDate() {
6870
return this.creationDate;
6971
}
@@ -119,6 +121,14 @@ public String getCreator() {
119121
public void setCreator(String creator) {
120122
this.creator = creator;
121123
}
124+
125+
public String getArn() {
126+
return this.arn;
127+
}
128+
129+
public void setArn(String arn) {
130+
this.arn = arn;
131+
}
122132
}
123133

124134
@Override
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
package com.aliyuncs.kms.model.v20160120;
20+
21+
import com.aliyuncs.RpcAcsRequest;
22+
import com.aliyuncs.http.ProtocolType;
23+
24+
/**
25+
* @author auto create
26+
* @version
27+
*/
28+
public class DescribeRegionsRequest extends RpcAcsRequest<DescribeRegionsResponse> {
29+
30+
public DescribeRegionsRequest() {
31+
super("Kms", "2016-01-20", "DescribeRegions", "kms");
32+
setProtocol(ProtocolType.HTTPS);
33+
}
34+
35+
private String sTSToken;
36+
37+
public String getSTSToken() {
38+
return this.sTSToken;
39+
}
40+
41+
public void setSTSToken(String sTSToken) {
42+
this.sTSToken = sTSToken;
43+
putQueryParameter("STSToken", sTSToken);
44+
}
45+
46+
@Override
47+
public Class<DescribeRegionsResponse> getResponseClass() {
48+
return DescribeRegionsResponse.class;
49+
}
50+
51+
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
package com.aliyuncs.kms.model.v20160120;
20+
21+
import java.util.List;
22+
import com.aliyuncs.AcsResponse;
23+
import com.aliyuncs.kms.transform.v20160120.DescribeRegionsResponseUnmarshaller;
24+
import com.aliyuncs.transform.UnmarshallerContext;
25+
26+
/**
27+
* @author auto create
28+
* @version
29+
*/
30+
public class DescribeRegionsResponse extends AcsResponse {
31+
32+
private String requestId;
33+
34+
private List<Region> regions;
35+
36+
public String getRequestId() {
37+
return this.requestId;
38+
}
39+
40+
public void setRequestId(String requestId) {
41+
this.requestId = requestId;
42+
}
43+
44+
public List<Region> getRegions() {
45+
return this.regions;
46+
}
47+
48+
public void setRegions(List<Region> regions) {
49+
this.regions = regions;
50+
}
51+
52+
public static class Region {
53+
54+
private String regionId;
55+
56+
public String getRegionId() {
57+
return this.regionId;
58+
}
59+
60+
public void setRegionId(String regionId) {
61+
this.regionId = regionId;
62+
}
63+
}
64+
65+
@Override
66+
public DescribeRegionsResponse getInstance(UnmarshallerContext context) {
67+
return DescribeRegionsResponseUnmarshaller.unmarshall(this, context);
68+
}
69+
}

0 commit comments

Comments
 (0)