語言

IAlgorithmConstraints 介面

定義

此介面規範密碼學演算法的限制條件、金鑰(金鑰大小)及其他演算法參數。

[Android.Runtime.Register("java/security/AlgorithmConstraints", "", "Java.Security.IAlgorithmConstraintsInvoker", ApiSince=24)]
public interface IAlgorithmConstraints : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("java/security/AlgorithmConstraints", "", "Java.Security.IAlgorithmConstraintsInvoker", ApiSince=24)>]
type IAlgorithmConstraints = interface
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
屬性
實作

備註

此介面規範密碼學演算法的限制條件、金鑰(金鑰大小)及其他演算法參數。

AlgorithmConstraints 物體是不可變的。 此介面的實作不應提供能在實例建立後改變狀態的方法。

請注意, AlgorithmConstraints 可以用來表示安全屬性 jdk.certpath.disabledAlgorithmsjdk.tls.disabledAlgorithms所描述的限制,或被具體 PKIXCertPathChecker 體用來檢查認證路徑中指定的憑證是否包含所需的演算法約束。

在 1.7 版本中加入。

Java 文件 java.security.AlgorithmConstraints

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

屬性

名稱 Description
Handle

取得底層 Android 物件的 JNI 值。

(繼承來源 IJavaObject)
JniIdentityHashCode

回傳包裹實例的 java.lang.System.identityHashCode() 值。

(繼承來源 IJavaPeerable)
JniManagedPeerState

管理貴族的狀況。

(繼承來源 IJavaPeerable)
JniObjectReferenceControlBlock

此介面規範密碼學演算法的限制條件、金鑰(金鑰大小)及其他演算法參數。

(繼承來源 IJavaPeerable)
JniPeerMembers

成員存取與召喚支援。

(繼承來源 IJavaPeerable)
PeerReference

回傳JniObjectReference包裹後的 Java 物件實例。

(繼承來源 IJavaPeerable)

方法

名稱 Description
Disposed()

當實例被處理後才被召喚。

(繼承來源 IJavaPeerable)
DisposeUnlessReferenced()

如果沒有未解決的參考資料,則 Dispose()呼叫;否則,則不做任何事。

(繼承來源 IJavaPeerable)
Finalized()

當實例完成後才會被通知。

(繼承來源 IJavaPeerable)
Permits(ICollection<CryptoPrimitive>, IKey)

判斷金鑰是否獲得指定密碼學原語的權限。

Permits(ICollection<CryptoPrimitive>, String, AlgorithmParameters)

判斷演算法是否獲得指定密碼學原語的權限。

Permits(ICollection<CryptoPrimitive>, String, IKey, AlgorithmParameters)

判斷演算法及其對應金鑰是否被賦予指定密碼學原語的權限。

SetJniIdentityHashCode(Int32)

將回傳的值設為 JniIdentityHashCode

(繼承來源 IJavaPeerable)
SetJniManagedPeerState(JniManagedPeerStates)

此介面規範密碼學演算法的限制條件、金鑰(金鑰大小)及其他演算法參數。

(繼承來源 IJavaPeerable)
SetPeerReference(JniObjectReference)

將回傳的值設為 PeerReference

(繼承來源 IJavaPeerable)
UnregisterFromRuntime()

取消註冊此實例,讓執行時不會在未來 Java.Interop.JniRuntime+JniValueManager.PeekValue 的呼叫中回傳該實例。

(繼承來源 IJavaPeerable)

擴充方法

名稱 Description
GetJniTypeName(IJavaPeerable)

取得實例 self類型的 JNI 名稱。

JavaAs<TResult>(IJavaPeerable)

試著強制self輸入 TResult,檢查 強制在 Java 端是否有效。

JavaCast<TResult>(IJavaObject)

執行 Android 執行時檢查型別轉換。

JavaCast<TResult>(IJavaObject)

此介面規範密碼學演算法的限制條件、金鑰(金鑰大小)及其他演算法參數。

TryJavaCast<TResult>(IJavaPeerable, TResult)

試著強制self輸入 TResult,檢查 強制在 Java 端是否有效。

適用於