Skip to content

Commit c694eb7

Browse files
committed
Generated 2016-01-20 for Kms.
1 parent 3a536de commit c694eb7

File tree

5 files changed

+261
-1
lines changed

5 files changed

+261
-1
lines changed

aliyun-java-sdk-kms/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-08-30 Version: 2.16.6
2+
- Generated 2016-01-20 for `Kms`.
3+
14
2024-08-13 Version: 2.16.5
25
- Support DryRun parameter OpenAPI.
36

aliyun-java-sdk-kms/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-kms</artifactId>
66
<packaging>jar</packaging>
7-
<version>2.16.5</version>
7+
<version>2.16.6</version>
88
<name>aliyun-java-sdk-kms</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.kms.model.v20160120;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.ProtocolType;
19+
import com.aliyuncs.http.MethodType;
20+
import com.aliyuncs.kms.Endpoint;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class AdvanceEncryptRequest extends RpcAcsRequest<AdvanceEncryptResponse> {
27+
28+
29+
private String paddingMode;
30+
31+
private String aad;
32+
33+
private String keyId;
34+
35+
private String plaintext;
36+
37+
private String iv;
38+
39+
private String algorithm;
40+
public AdvanceEncryptRequest() {
41+
super("Kms", "2016-01-20", "AdvanceEncrypt", "kms");
42+
setProtocol(ProtocolType.HTTPS);
43+
setMethod(MethodType.POST);
44+
try {
45+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
46+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
47+
} catch (Exception e) {}
48+
}
49+
50+
public String getPaddingMode() {
51+
return this.paddingMode;
52+
}
53+
54+
public void setPaddingMode(String paddingMode) {
55+
this.paddingMode = paddingMode;
56+
if(paddingMode != null){
57+
putQueryParameter("PaddingMode", paddingMode);
58+
}
59+
}
60+
61+
public String getAad() {
62+
return this.aad;
63+
}
64+
65+
public void setAad(String aad) {
66+
this.aad = aad;
67+
if(aad != null){
68+
putQueryParameter("Aad", aad);
69+
}
70+
}
71+
72+
public String getKeyId() {
73+
return this.keyId;
74+
}
75+
76+
public void setKeyId(String keyId) {
77+
this.keyId = keyId;
78+
if(keyId != null){
79+
putQueryParameter("KeyId", keyId);
80+
}
81+
}
82+
83+
public String getPlaintext() {
84+
return this.plaintext;
85+
}
86+
87+
public void setPlaintext(String plaintext) {
88+
this.plaintext = plaintext;
89+
if(plaintext != null){
90+
putQueryParameter("Plaintext", plaintext);
91+
}
92+
}
93+
94+
public String getIv() {
95+
return this.iv;
96+
}
97+
98+
public void setIv(String iv) {
99+
this.iv = iv;
100+
if(iv != null){
101+
putQueryParameter("Iv", iv);
102+
}
103+
}
104+
105+
public String getAlgorithm() {
106+
return this.algorithm;
107+
}
108+
109+
public void setAlgorithm(String algorithm) {
110+
this.algorithm = algorithm;
111+
if(algorithm != null){
112+
putQueryParameter("Algorithm", algorithm);
113+
}
114+
}
115+
116+
@Override
117+
public Class<AdvanceEncryptResponse> getResponseClass() {
118+
return AdvanceEncryptResponse.class;
119+
}
120+
121+
}
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.kms.model.v20160120;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.kms.transform.v20160120.AdvanceEncryptResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class AdvanceEncryptResponse extends AcsResponse {
26+
27+
private String requestId;
28+
29+
private String ciphertextBlob;
30+
31+
private String algorithm;
32+
33+
private String keyId;
34+
35+
private String keyVersionId;
36+
37+
private String iv;
38+
39+
private String paddingMode;
40+
41+
public String getRequestId() {
42+
return this.requestId;
43+
}
44+
45+
public void setRequestId(String requestId) {
46+
this.requestId = requestId;
47+
}
48+
49+
public String getCiphertextBlob() {
50+
return this.ciphertextBlob;
51+
}
52+
53+
public void setCiphertextBlob(String ciphertextBlob) {
54+
this.ciphertextBlob = ciphertextBlob;
55+
}
56+
57+
public String getAlgorithm() {
58+
return this.algorithm;
59+
}
60+
61+
public void setAlgorithm(String algorithm) {
62+
this.algorithm = algorithm;
63+
}
64+
65+
public String getKeyId() {
66+
return this.keyId;
67+
}
68+
69+
public void setKeyId(String keyId) {
70+
this.keyId = keyId;
71+
}
72+
73+
public String getKeyVersionId() {
74+
return this.keyVersionId;
75+
}
76+
77+
public void setKeyVersionId(String keyVersionId) {
78+
this.keyVersionId = keyVersionId;
79+
}
80+
81+
public String getIv() {
82+
return this.iv;
83+
}
84+
85+
public void setIv(String iv) {
86+
this.iv = iv;
87+
}
88+
89+
public String getPaddingMode() {
90+
return this.paddingMode;
91+
}
92+
93+
public void setPaddingMode(String paddingMode) {
94+
this.paddingMode = paddingMode;
95+
}
96+
97+
@Override
98+
public AdvanceEncryptResponse getInstance(UnmarshallerContext context) {
99+
return AdvanceEncryptResponseUnmarshaller.unmarshall(this, context);
100+
}
101+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.kms.transform.v20160120;
16+
17+
import com.aliyuncs.kms.model.v20160120.AdvanceEncryptResponse;
18+
import com.aliyuncs.transform.UnmarshallerContext;
19+
20+
21+
public class AdvanceEncryptResponseUnmarshaller {
22+
23+
public static AdvanceEncryptResponse unmarshall(AdvanceEncryptResponse advanceEncryptResponse, UnmarshallerContext _ctx) {
24+
25+
advanceEncryptResponse.setRequestId(_ctx.stringValue("AdvanceEncryptResponse.RequestId"));
26+
advanceEncryptResponse.setCiphertextBlob(_ctx.stringValue("AdvanceEncryptResponse.CiphertextBlob"));
27+
advanceEncryptResponse.setAlgorithm(_ctx.stringValue("AdvanceEncryptResponse.Algorithm"));
28+
advanceEncryptResponse.setKeyId(_ctx.stringValue("AdvanceEncryptResponse.KeyId"));
29+
advanceEncryptResponse.setKeyVersionId(_ctx.stringValue("AdvanceEncryptResponse.KeyVersionId"));
30+
advanceEncryptResponse.setIv(_ctx.stringValue("AdvanceEncryptResponse.Iv"));
31+
advanceEncryptResponse.setPaddingMode(_ctx.stringValue("AdvanceEncryptResponse.PaddingMode"));
32+
33+
return advanceEncryptResponse;
34+
}
35+
}

0 commit comments

Comments
 (0)