Skip to content

Commit d10b1ab

Browse files
authored
feat(aws-android-sdk-kms): update models to latest (#3311)
1 parent 2a6dc7e commit d10b1ab

File tree

10 files changed

+1661
-615
lines changed

10 files changed

+1661
-615
lines changed

aws-android-sdk-kms/src/main/java/com/amazonaws/services/kms/AWSKMS.java

Lines changed: 211 additions & 99 deletions
Large diffs are not rendered by default.

aws-android-sdk-kms/src/main/java/com/amazonaws/services/kms/AWSKMSClient.java

Lines changed: 211 additions & 99 deletions
Large diffs are not rendered by default.

aws-android-sdk-kms/src/main/java/com/amazonaws/services/kms/model/AlgorithmSpec.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ public enum AlgorithmSpec {
2525

2626
RSAES_PKCS1_V1_5("RSAES_PKCS1_V1_5"),
2727
RSAES_OAEP_SHA_1("RSAES_OAEP_SHA_1"),
28-
RSAES_OAEP_SHA_256("RSAES_OAEP_SHA_256");
28+
RSAES_OAEP_SHA_256("RSAES_OAEP_SHA_256"),
29+
RSA_AES_KEY_WRAP_SHA_1("RSA_AES_KEY_WRAP_SHA_1"),
30+
RSA_AES_KEY_WRAP_SHA_256("RSA_AES_KEY_WRAP_SHA_256");
2931

3032
private String value;
3133

@@ -44,6 +46,8 @@ public String toString() {
4446
enumMap.put("RSAES_PKCS1_V1_5", RSAES_PKCS1_V1_5);
4547
enumMap.put("RSAES_OAEP_SHA_1", RSAES_OAEP_SHA_1);
4648
enumMap.put("RSAES_OAEP_SHA_256", RSAES_OAEP_SHA_256);
49+
enumMap.put("RSA_AES_KEY_WRAP_SHA_1", RSA_AES_KEY_WRAP_SHA_1);
50+
enumMap.put("RSA_AES_KEY_WRAP_SHA_256", RSA_AES_KEY_WRAP_SHA_256);
4751
}
4852

4953
/**

aws-android-sdk-kms/src/main/java/com/amazonaws/services/kms/model/CreateKeyRequest.java

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,6 @@
117117
* HMAC codes for messages up to 4096 bytes.
118118
* </p>
119119
* <p>
120-
* HMAC KMS keys are not supported in all Amazon Web Services Regions. If you
121-
* try to create an HMAC KMS key in an Amazon Web Services Region in which HMAC
122-
* keys are not supported, the <code>CreateKey</code> operation returns an
123-
* <code>UnsupportedOperationException</code>. For a list of Regions in which
124-
* HMAC KMS keys are supported, see <a
125-
* href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC
126-
* keys in KMS</a> in the <i>Key Management Service Developer Guide</i>.
127-
* </p>
128-
* <p>
129120
* </p></dd>
130121
* <dt>Multi-Region primary keys</dt>
131122
* <dt>Imported key material</dt>
@@ -162,21 +153,23 @@
162153
* </p></dd>
163154
* <dd>
164155
* <p>
165-
* To import your own key material into a KMS key, begin by creating a symmetric
166-
* encryption KMS key with no key material. To do this, use the
167-
* <code>Origin</code> parameter of <code>CreateKey</code> with a value of
168-
* <code>EXTERNAL</code>. Next, use <a>GetParametersForImport</a> operation to
169-
* get a public key and import token, and use the public key to encrypt your key
170-
* material. Then, use <a>ImportKeyMaterial</a> with your import token to import
171-
* the key material. For step-by-step instructions, see <a href=
156+
* To import your own key material into a KMS key, begin by creating a KMS key
157+
* with no key material. To do this, use the <code>Origin</code> parameter of
158+
* <code>CreateKey</code> with a value of <code>EXTERNAL</code>. Next, use
159+
* <a>GetParametersForImport</a> operation to get a public key and import token.
160+
* Use the wrapping public key to encrypt your key material. Then, use
161+
* <a>ImportKeyMaterial</a> with your import token to import the key material.
162+
* For step-by-step instructions, see <a href=
172163
* "https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html"
173164
* >Importing Key Material</a> in the <i> <i>Key Management Service Developer
174165
* Guide</i> </i>.
175166
* </p>
176167
* <p>
177-
* This feature supports only symmetric encryption KMS keys, including
178-
* multi-Region symmetric encryption KMS keys. You cannot import key material
179-
* into any other type of KMS key.
168+
* You can import key material into KMS keys of all supported KMS key types:
169+
* symmetric encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys,
170+
* and asymmetric signing KMS keys. You can also create multi-Region keys with
171+
* imported key material. However, you can't import key material into a KMS key
172+
* in a custom key store.
180173
* </p>
181174
* <p>
182175
* To create a multi-Region primary key with imported key material, use the

aws-android-sdk-kms/src/main/java/com/amazonaws/services/kms/model/DeleteImportedKeyMaterialRequest.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@
2121

2222
/**
2323
* <p>
24-
* Deletes key material that you previously imported. This operation makes the
25-
* specified KMS key unusable. For more information about importing key material
26-
* into KMS, see <a href=
24+
* Deletes key material that was previously imported. This operation makes the
25+
* specified KMS key temporarily unusable. To restore the usability of the KMS
26+
* key, reimport the same key material. For more information about importing key
27+
* material into KMS, see <a href=
2728
* "https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html"
2829
* >Importing Key Material</a> in the <i>Key Management Service Developer
2930
* Guide</i>.
@@ -34,10 +35,6 @@
3435
* key's state to <code>PendingImport</code>.
3536
* </p>
3637
* <p>
37-
* After you delete key material, you can use <a>ImportKeyMaterial</a> to
38-
* reimport the same key material into the KMS key.
39-
* </p>
40-
* <p>
4138
* The KMS key that you use for this operation must be in a compatible key
4239
* state. For details, see <a
4340
* href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html"

0 commit comments

Comments
 (0)