IntegrityResult

sealed class IntegrityResult

ダウンロードしたプラグインJARの整合性検証の結果

どの結果でも、ファイルから計算した sha256 を保持する。 これはtrust-on-first-use(初回信頼)のためにメタデータへ保存され、 次回以降のインストール時に自己検証できるようにする。

Inheritors

Types

Link copied to clipboard
data class Mismatch(val sha256: String, val algorithm: String, val expected: String, val actual: String) : IntegrityResult

ハッシュ不一致

Link copied to clipboard
data class NoReference(val sha256: String) : IntegrityResult

照合可能なハッシュが存在しない

Link copied to clipboard
data class Verified(val sha256: String, val source: IntegritySource) : IntegrityResult

検証成功

Properties

Link copied to clipboard
abstract val sha256: String

検証対象ファイルから計算したSHA-256ハッシュ(メタデータ保存用)