OCIシグネチャ・バージョン1
APIキーを使用して保護されたOCI REST APIの呼出しをサポートするには、OCI_SIGNATURE_VERSION1管理対象セキュリティ・ポリシーを使用します。
概要
OCIシグネチャ・バージョン1ポリシーをドキュメントに追加するには、使用可能な認証スキーム・テンプレートを使用します。 「新規接続定義の実装」を参照してください。
接続定義に必要なセキュリティ・ポリシーをカスタマイズできます。
セキュリティ・プロパティ
このセキュリティ・ポリシーを使用する接続定義は、securityPropertiesセクションで次のプロパティを定義します。 「接続プロパティおよびサンプル・コード」を参照してください。
name, displayName, shortDescription列およびdescription列の値は、アダプタ定義ドキュメントにセキュリティ・ポリシーを挿入したときに表示されるデフォルト値を示します。 これらの値は、必要に応じて更新できます。
| name | displayName | shortDescription | description | データ型 | 必須 |
|---|---|---|---|---|---|
|
|
|
|
|
String |
はい |
|
|
|
|
|
String |
はい |
|
|
|
|
|
URL_OR_FILE |
はい |
|
|
|
|
|
String |
はい |
|
|
|
|
|
パスワード |
いいえ |
サンプル・コード: OCIシグネチャ・バージョン1
次のサンプル・コードは、接続でOCI Signature Versio 1ポリシーを定義する方法を示しています。
"securityPolicies": [
{
"type": "managed",
"policy": "OCI_SIGNATURE_VERSION1",
"description": "OCI Signature Version 1",
"displayName": "OCI Signature Version 1",
"scope": "ACTION",
"securityProperties": [
{
"name": "TenancyOCID",
"displayName": "Tenancy OCID",
"description": "Tenancy OCID of OCI.",
"shortDescription": "Example: ocid1.tenancy.oc1..mockId",
"hidden": false,
"required": true
},
{
"name": "UserOCID",
"displayName": "User OCID",
"description": "User OCID of OCI.",
"shortDescription": "Example: ocid1.user.oc1..mockUser",
"hidden": false,
"required": true
},
{
"name": "PrivateKey",
"displayName": "Private Key",
"description": "OCI Private Key File.",
"shortDescription": "Upload the private key file",
"hidden": false,
"required": true
},
{
"name": "FingerPrint",
"displayName": "Finger Print",
"description": "Key Finger Print.",
"shortDescription": "Example: 4c:8e:79:e3:a3:31:b3:8f:18:71:93:0c:c4:49:52:1c",
"hidden": false,
"required": true
},
{
"name": "PassPhrase",
"displayName": "Pass Phrase",
"description": "Password entered at the time of generating the public/private key.",
"shortDescription": "Password entered at the time of generating the public/private key.",
"hidden": false,
"required": true
}
]
}
]