4D v18dataStore.encryptionStatus( ) |
|||||||||||||||||||||||||||||||||||||||||||||||
|
4D v18
dataStore.encryptionStatus( )
|
||||||||||||||||||||||||||||||||||||||||||||||
| プロパティ | 型 | 詳細 | ||
| isEncrypted | ブール | データファイルが暗号化されていればTrue | ||
| keyProvided | ブール | 暗号化されたデータファイルに合致する暗号化キーが提供されていればTrue(*) | ||
| tables | オブジェクト | 暗号化可能テーブルおよび暗号化されたテーブルと同じ数だけのプロパティを持つオブジェクト | ||
| <table name> | オブジェクト | 暗号化可能または暗号化されたテーブル | ||
| name | テキスト | テーブル名 | ||
| num | 数値 | テーブル番号 | ||
| isEncryptable | ブール | テーブルがストラクチャーファイルで暗号化可能と宣言されていればTrue | ||
| isEncrypted | ブール | テーブル内のレコードがデータファイル内で暗号化されていればTrue |
(*) 暗号化キーは、以下の手段のどれかで提供されます:
カレントのデータファイル内で暗号化されているテーブルの数を知りたい場合を考えます:
C_OBJECT($status)
$status:=dataStore.encryptionStatus()
If($status.isEncrypted) //データベースは暗号化されている
C_LONGINT($vcount)
C_TEXT($tabName)
For each($tabName;$status.tables)
If($status.tables[$tabName].isEncrypted)
$vcount:=$vcount+1
End if
End for each
ALERT(String($vcount)+" encrypted table(s) in this datastore.")
Else
ALERT("This database is not encrypted.")
End if
プロダクト: 4D
テーマ: ORDA - データストア
ランゲージリファレンス ( 4D v18)
コメントを追加