언어

DevicePolicyManager.HasKeyPair 메서드

정의

오버로드

속성 Description
HasKeyPair(String)

다음 API를 호출하여 인증서 및 프라이빗 키가 지정된 별칭<으로 설치되어 있는지 여부를 쿼리할 수 있습니다. ul><li>Device owner</li li><>Profile owner</li><>Delegated certificate installer</li><li>Credential Management app</li><li>An app that holds the android.Manifest.permission#MANAGE_DEVICE_POLICY_CERTIFICATES permission</li></ul>

        If called by the credential management app, the alias must exist in the credential
        management app's <code data-dev-comment-type="c">android.security.AppUriAuthenticationPolicy</code>.
HasKeyPair(String, KeyChainManagerKeyPairScope)

이 API는 지정된 범위에 대해 지정된 별칭으로 인증서 및 프라이빗 키가 설치되어 있는지 여부를 쿼리하기 위해 호출할 수 있습니다. ul>li Device owner</li><li>Profile owner</li><li>Delegated certificate installer</li<>li>Credential Management App(사용자별 키 집합만 해당)</li><li>An 앱이 사용 권한을><< 보유 android.Manifest.permission#MANAGE_DEVICE_POLICY_CERTIFICATES 합니다.><<>

HasKeyPair(String)

다음 API를 호출하여 인증서 및 프라이빗 키가 지정된 별칭<으로 설치되어 있는지 여부를 쿼리할 수 있습니다. ul><li>Device owner</li li><>Profile owner</li><>Delegated certificate installer</li><li>Credential Management app</li><li>An app that holds the android.Manifest.permission#MANAGE_DEVICE_POLICY_CERTIFICATES permission</li></ul>

        If called by the credential management app, the alias must exist in the credential
        management app's <code data-dev-comment-type="c">android.security.AppUriAuthenticationPolicy</code>.
[Android.Runtime.Register("hasKeyPair", "(Ljava/lang/String;)Z", "GetHasKeyPair_Ljava_lang_String_Handler", ApiSince=31)]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_CERTIFICATES")]
public virtual bool HasKeyPair(string alias);
[<Android.Runtime.Register("hasKeyPair", "(Ljava/lang/String;)Z", "GetHasKeyPair_Ljava_lang_String_Handler", ApiSince=31)>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_CERTIFICATES")>]
abstract member HasKeyPair : string -> bool
override this.HasKeyPair : string -> bool

매개 변수

alias
String

키 쌍이 설치된 별칭입니다.

반품

true 이 별칭이 있는 키 쌍이 false 있으면 그렇지 않습니다.

특성

설명

다음 API를 호출하여 인증서 및 프라이빗 키가 지정된 별칭<으로 설치되어 있는지 여부를 쿼리할 수 있습니다. ul><li>Device owner</li li><>Profile owner</li><>Delegated certificate installer</li><li>Credential Management app</li><li>An app that holds the android.Manifest.permission#MANAGE_DEVICE_POLICY_CERTIFICATES permission</li></ul>

자격 증명 관리 앱에서 호출하는 경우 자격 증명 관리 앱에 android.security.AppUriAuthenticationPolicy별칭이 있어야 합니다.

에 대한 android.app.admin.DevicePolicyManager.hasKeyPair(java.lang.String)Java 설명서

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상

HasKeyPair(String, KeyChainManagerKeyPairScope)

이 API는 지정된 범위에 대해 지정된 별칭으로 인증서 및 프라이빗 키가 설치되어 있는지 여부를 쿼리하기 위해 호출할 수 있습니다. ul>li Device owner</li><li>Profile owner</li><li>Delegated certificate installer</li<>li>Credential Management App(사용자별 키 집합만 해당)</li><li>An 앱이 사용 권한을><< 보유 android.Manifest.permission#MANAGE_DEVICE_POLICY_CERTIFICATES 합니다.><<>

[Android.Runtime.Register("hasKeyPair", "(Ljava/lang/String;I)Z", "GetHasKeyPair_Ljava_lang_String_IHandler", ApiSince=37)]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_CERTIFICATES")]
public virtual bool HasKeyPair(string alias, Android.Security.KeyChainManagerKeyPairScope scope);
[<Android.Runtime.Register("hasKeyPair", "(Ljava/lang/String;I)Z", "GetHasKeyPair_Ljava_lang_String_IHandler", ApiSince=37)>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_CERTIFICATES")>]
abstract member HasKeyPair : string * Android.Security.KeyChainManagerKeyPairScope -> bool
override this.HasKeyPair : string * Android.Security.KeyChainManagerKeyPairScope -> bool

매개 변수

alias
String

키 쌍이 설치된 별칭입니다.

scope
KeyChainManagerKeyPairScope

키 쌍의 범위입니다 KeyChainManager#KEYPAIR_SCOPE_USER . 또는 KeyChainManager#KEYPAIR_SCOPE_DEVICE.

반품

true 이 별칭이 있는 키 쌍이 false 있으면 그렇지 않습니다.

특성

적용 대상