Skip to content

Commit

Permalink
Generated 2016-01-20 for Kms.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Aug 30, 2024
1 parent 3a536de commit c694eb7
Show file tree
Hide file tree
Showing 5 changed files with 261 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-kms/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-08-30 Version: 2.16.6
- Generated 2016-01-20 for `Kms`.

2024-08-13 Version: 2.16.5
- Support DryRun parameter OpenAPI.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-kms/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-kms</artifactId>
<packaging>jar</packaging>
<version>2.16.5</version>
<version>2.16.6</version>
<name>aliyun-java-sdk-kms</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.kms.model.v20160120;

import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.ProtocolType;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.kms.Endpoint;

/**
* @author auto create
* @version
*/
public class AdvanceEncryptRequest extends RpcAcsRequest<AdvanceEncryptResponse> {


private String paddingMode;

private String aad;

private String keyId;

private String plaintext;

private String iv;

private String algorithm;
public AdvanceEncryptRequest() {
super("Kms", "2016-01-20", "AdvanceEncrypt", "kms");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}

public String getPaddingMode() {
return this.paddingMode;
}

public void setPaddingMode(String paddingMode) {
this.paddingMode = paddingMode;
if(paddingMode != null){
putQueryParameter("PaddingMode", paddingMode);
}
}

public String getAad() {
return this.aad;
}

public void setAad(String aad) {
this.aad = aad;
if(aad != null){
putQueryParameter("Aad", aad);
}
}

public String getKeyId() {
return this.keyId;
}

public void setKeyId(String keyId) {
this.keyId = keyId;
if(keyId != null){
putQueryParameter("KeyId", keyId);
}
}

public String getPlaintext() {
return this.plaintext;
}

public void setPlaintext(String plaintext) {
this.plaintext = plaintext;
if(plaintext != null){
putQueryParameter("Plaintext", plaintext);
}
}

public String getIv() {
return this.iv;
}

public void setIv(String iv) {
this.iv = iv;
if(iv != null){
putQueryParameter("Iv", iv);
}
}

public String getAlgorithm() {
return this.algorithm;
}

public void setAlgorithm(String algorithm) {
this.algorithm = algorithm;
if(algorithm != null){
putQueryParameter("Algorithm", algorithm);
}
}

@Override
public Class<AdvanceEncryptResponse> getResponseClass() {
return AdvanceEncryptResponse.class;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.kms.model.v20160120;

import com.aliyuncs.AcsResponse;
import com.aliyuncs.kms.transform.v20160120.AdvanceEncryptResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
* @author auto create
* @version
*/
public class AdvanceEncryptResponse extends AcsResponse {

private String requestId;

private String ciphertextBlob;

private String algorithm;

private String keyId;

private String keyVersionId;

private String iv;

private String paddingMode;

public String getRequestId() {
return this.requestId;
}

public void setRequestId(String requestId) {
this.requestId = requestId;
}

public String getCiphertextBlob() {
return this.ciphertextBlob;
}

public void setCiphertextBlob(String ciphertextBlob) {
this.ciphertextBlob = ciphertextBlob;
}

public String getAlgorithm() {
return this.algorithm;
}

public void setAlgorithm(String algorithm) {
this.algorithm = algorithm;
}

public String getKeyId() {
return this.keyId;
}

public void setKeyId(String keyId) {
this.keyId = keyId;
}

public String getKeyVersionId() {
return this.keyVersionId;
}

public void setKeyVersionId(String keyVersionId) {
this.keyVersionId = keyVersionId;
}

public String getIv() {
return this.iv;
}

public void setIv(String iv) {
this.iv = iv;
}

public String getPaddingMode() {
return this.paddingMode;
}

public void setPaddingMode(String paddingMode) {
this.paddingMode = paddingMode;
}

@Override
public AdvanceEncryptResponse getInstance(UnmarshallerContext context) {
return AdvanceEncryptResponseUnmarshaller.unmarshall(this, context);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.kms.transform.v20160120;

import com.aliyuncs.kms.model.v20160120.AdvanceEncryptResponse;
import com.aliyuncs.transform.UnmarshallerContext;


public class AdvanceEncryptResponseUnmarshaller {

public static AdvanceEncryptResponse unmarshall(AdvanceEncryptResponse advanceEncryptResponse, UnmarshallerContext _ctx) {

advanceEncryptResponse.setRequestId(_ctx.stringValue("AdvanceEncryptResponse.RequestId"));
advanceEncryptResponse.setCiphertextBlob(_ctx.stringValue("AdvanceEncryptResponse.CiphertextBlob"));
advanceEncryptResponse.setAlgorithm(_ctx.stringValue("AdvanceEncryptResponse.Algorithm"));
advanceEncryptResponse.setKeyId(_ctx.stringValue("AdvanceEncryptResponse.KeyId"));
advanceEncryptResponse.setKeyVersionId(_ctx.stringValue("AdvanceEncryptResponse.KeyVersionId"));
advanceEncryptResponse.setIv(_ctx.stringValue("AdvanceEncryptResponse.Iv"));
advanceEncryptResponse.setPaddingMode(_ctx.stringValue("AdvanceEncryptResponse.PaddingMode"));

return advanceEncryptResponse;
}
}

0 comments on commit c694eb7

Please sign in to comment.