Generated from protobuf enumIMPORT_METHOD_UNSPECIFIED = 0;
RSA_OAEP_3072_SHA1_AES_256
Value: 1
This ImportMethod represents the CKM_RSA_AES_KEY_WRAP key wrapping
scheme defined in the PKCS #11 standard. In summary, this involves
wrapping the raw key with an ephemeral AES key, and wrapping the
ephemeral AES key with a 3072 bit RSA key. For more details, seeRSA AES key wrap
mechanism.
Generated from protobuf enumRSA_OAEP_3072_SHA1_AES_256 = 1;
RSA_OAEP_4096_SHA1_AES_256
Value: 2
This ImportMethod represents the CKM_RSA_AES_KEY_WRAP key wrapping
scheme defined in the PKCS #11 standard. In summary, this involves
wrapping the raw key with an ephemeral AES key, and wrapping the
ephemeral AES key with a 4096 bit RSA key. For more details, seeRSA AES key wrap
mechanism.
Generated from protobuf enumRSA_OAEP_4096_SHA1_AES_256 = 2;
RSA_OAEP_3072_SHA256_AES_256
Value: 3
This ImportMethod represents the CKM_RSA_AES_KEY_WRAP key wrapping
scheme defined in the PKCS #11 standard. In summary, this involves
wrapping the raw key with an ephemeral AES key, and wrapping the
ephemeral AES key with a 3072 bit RSA key. For more details, seeRSA AES key wrap
mechanism.
Generated from protobuf enumRSA_OAEP_3072_SHA256_AES_256 = 3;
RSA_OAEP_4096_SHA256_AES_256
Value: 4
This ImportMethod represents the CKM_RSA_AES_KEY_WRAP key wrapping
scheme defined in the PKCS #11 standard. In summary, this involves
wrapping the raw key with an ephemeral AES key, and wrapping the
ephemeral AES key with a 4096 bit RSA key. For more details, seeRSA AES key wrap
mechanism.
Generated from protobuf enumRSA_OAEP_4096_SHA256_AES_256 = 4;
RSA_OAEP_3072_SHA256
Value: 5
This ImportMethod represents RSAES-OAEP with a 3072 bit RSA key. The
key material to be imported is wrapped directly with the RSA key. Due
to technical limitations of RSA wrapping, this method cannot be used to
wrap RSA keys for import.
Generated from protobuf enumRSA_OAEP_3072_SHA256 = 5;
RSA_OAEP_4096_SHA256
Value: 6
This ImportMethod represents RSAES-OAEP with a 4096 bit RSA key. The
key material to be imported is wrapped directly with the RSA key. Due
to technical limitations of RSA wrapping, this method cannot be used to
wrap RSA keys for import.
Generated from protobuf enumRSA_OAEP_4096_SHA256 = 6;
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud KMS V1 Client - Class ImportMethod (2.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.1 (latest)](/php/docs/reference/cloud-kms/latest/V1.ImportJob.ImportMethod)\n- [2.3.0](/php/docs/reference/cloud-kms/2.3.0/V1.ImportJob.ImportMethod)\n- [2.2.0](/php/docs/reference/cloud-kms/2.2.0/V1.ImportJob.ImportMethod)\n- [2.1.6](/php/docs/reference/cloud-kms/2.1.6/V1.ImportJob.ImportMethod)\n- [2.0.0](/php/docs/reference/cloud-kms/2.0.0/V1.ImportJob.ImportMethod)\n- [1.23.0](/php/docs/reference/cloud-kms/1.23.0/V1.ImportJob.ImportMethod)\n- [1.22.1](/php/docs/reference/cloud-kms/1.22.1/V1.ImportJob.ImportMethod)\n- [1.21.4](/php/docs/reference/cloud-kms/1.21.4/V1.ImportJob.ImportMethod)\n- [1.20.3](/php/docs/reference/cloud-kms/1.20.3/V1.ImportJob.ImportMethod)\n- [1.19.0](/php/docs/reference/cloud-kms/1.19.0/V1.ImportJob.ImportMethod)\n- [1.18.1](/php/docs/reference/cloud-kms/1.18.1/V1.ImportJob.ImportMethod)\n- [1.17.0](/php/docs/reference/cloud-kms/1.17.0/V1.ImportJob.ImportMethod)\n- [1.16.4](/php/docs/reference/cloud-kms/1.16.4/V1.ImportJob.ImportMethod)\n- [1.15.3](/php/docs/reference/cloud-kms/1.15.3/V1.ImportJob.ImportMethod) \nReference documentation and code samples for the Cloud KMS V1 Client class ImportMethod.\n\n[ImportMethod](/php/docs/reference/cloud-kms/latest/V1.ImportJob.ImportMethod) describes the\nkey wrapping method chosen for this\n[ImportJob](/php/docs/reference/cloud-kms/latest/V1.ImportJob).\n\nProtobuf type `google.cloud.kms.v1.ImportJob.ImportMethod`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Kms \\\\ V1 \\\\ ImportJob\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### IMPORT_METHOD_UNSPECIFIED\n\n Value: 0\n\nNot specified.\n\nGenerated from protobuf enum `IMPORT_METHOD_UNSPECIFIED = 0;`\n\n### RSA_OAEP_3072_SHA1_AES_256\n\n Value: 1\n\nThis ImportMethod represents the CKM_RSA_AES_KEY_WRAP key wrapping\nscheme defined in the PKCS #11 standard. In summary, this involves\nwrapping the raw key with an ephemeral AES key, and wrapping the\nephemeral AES key with a 3072 bit RSA key. For more details, see\n[RSA AES key wrap\nmechanism](http://docs.oasis-open.org/pkcs11/pkcs11-curr/v2.40/cos01/pkcs11-curr-v2.40-cos01.html#_Toc408226908).\n\nGenerated from protobuf enum `RSA_OAEP_3072_SHA1_AES_256 = 1;`\n\n### RSA_OAEP_4096_SHA1_AES_256\n\n Value: 2\n\nThis ImportMethod represents the CKM_RSA_AES_KEY_WRAP key wrapping\nscheme defined in the PKCS #11 standard. In summary, this involves\nwrapping the raw key with an ephemeral AES key, and wrapping the\nephemeral AES key with a 4096 bit RSA key. For more details, see\n[RSA AES key wrap\nmechanism](http://docs.oasis-open.org/pkcs11/pkcs11-curr/v2.40/cos01/pkcs11-curr-v2.40-cos01.html#_Toc408226908).\n\nGenerated from protobuf enum `RSA_OAEP_4096_SHA1_AES_256 = 2;`\n\n### RSA_OAEP_3072_SHA256_AES_256\n\n Value: 3\n\nThis ImportMethod represents the CKM_RSA_AES_KEY_WRAP key wrapping\nscheme defined in the PKCS #11 standard. In summary, this involves\nwrapping the raw key with an ephemeral AES key, and wrapping the\nephemeral AES key with a 3072 bit RSA key. For more details, see\n[RSA AES key wrap\nmechanism](http://docs.oasis-open.org/pkcs11/pkcs11-curr/v2.40/cos01/pkcs11-curr-v2.40-cos01.html#_Toc408226908).\n\nGenerated from protobuf enum `RSA_OAEP_3072_SHA256_AES_256 = 3;`\n\n### RSA_OAEP_4096_SHA256_AES_256\n\n Value: 4\n\nThis ImportMethod represents the CKM_RSA_AES_KEY_WRAP key wrapping\nscheme defined in the PKCS #11 standard. In summary, this involves\nwrapping the raw key with an ephemeral AES key, and wrapping the\nephemeral AES key with a 4096 bit RSA key. For more details, see\n[RSA AES key wrap\nmechanism](http://docs.oasis-open.org/pkcs11/pkcs11-curr/v2.40/cos01/pkcs11-curr-v2.40-cos01.html#_Toc408226908).\n\nGenerated from protobuf enum `RSA_OAEP_4096_SHA256_AES_256 = 4;`\n\n### RSA_OAEP_3072_SHA256\n\n Value: 5\n\nThis ImportMethod represents RSAES-OAEP with a 3072 bit RSA key. The\nkey material to be imported is wrapped directly with the RSA key. Due\nto technical limitations of RSA wrapping, this method cannot be used to\nwrap RSA keys for import.\n\nGenerated from protobuf enum `RSA_OAEP_3072_SHA256 = 5;`\n\n### RSA_OAEP_4096_SHA256\n\n Value: 6\n\nThis ImportMethod represents RSAES-OAEP with a 4096 bit RSA key. The\nkey material to be imported is wrapped directly with the RSA key. Due\nto technical limitations of RSA wrapping, this method cannot be used to\nwrap RSA keys for import.\n\nGenerated from protobuf enum `RSA_OAEP_4096_SHA256 = 6;`"]]