SignatureSpi.EngineVerify 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| EngineVerify(Byte[]) |
驗證已轉入的簽名。 |
| EngineVerify(Byte[], Int32, Int32) |
從指定的偏移量開始,驗證指定位元組陣列中的傳入簽章。 |
EngineVerify(Byte[])
驗證已轉入的簽名。
[Android.Runtime.Register("engineVerify", "([B)Z", "GetEngineVerify_arrayBHandler")]
protected abstract bool EngineVerify(byte[]? sigBytes);
[<Android.Runtime.Register("engineVerify", "([B)Z", "GetEngineVerify_arrayBHandler")>]
abstract member EngineVerify : byte[] -> bool
參數
- sigBytes
- Byte[]
待驗證的簽名位元組。
傳回
若簽名已驗證,則為 true;未驗證則為 false。
- 屬性
例外狀況
如果這個 SignatureSpi 實例沒有正確初始化。
備註
驗證已轉入的簽名。
Java 文件 java.security.SignatureSpi.engineVerify(byte[])。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
EngineVerify(Byte[], Int32, Int32)
從指定的偏移量開始,驗證指定位元組陣列中的傳入簽章。
[Android.Runtime.Register("engineVerify", "([BII)Z", "GetEngineVerify_arrayBIIHandler")]
protected virtual bool EngineVerify(byte[]? sigBytes, int offset, int length);
[<Android.Runtime.Register("engineVerify", "([BII)Z", "GetEngineVerify_arrayBIIHandler")>]
abstract member EngineVerify : byte[] * int * int -> bool
override this.EngineVerify : byte[] * int * int -> bool
參數
- sigBytes
- Byte[]
待驗證的簽名位元組。
- offset
- Int32
從位元組陣列中起始的偏移量。
- length
- Int32
從偏移量開始使用的位元組數。
傳回
若簽名已驗證,則為 true;未驗證則為 false。
- 屬性
例外狀況
如果這個 SignatureSpi 實例沒有正確初始化。
若 offset 對 有效,則 length 若 不成立 sigBytes。
備註
從指定的偏移量開始,驗證指定位元組陣列中的傳入簽章。
注意:子類別應覆蓋預設實作。
在 1.4 版本加入。
Java 文件 java.security.SignatureSpi.engineVerify(byte[], int, int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。