IdentityScope.GetIdentity 方法

定义

重载

名称 说明
GetIdentity(IPrincipal)
已过时.

检索其名称与指定主体同名的标识。

GetIdentity(IPublicKey)
已过时.

检索具有指定公钥的标识。

GetIdentity(String)
已过时.

返回此作用域中具有指定名称(如果有)的标识。

GetIdentity(IPrincipal)

注意

deprecated

检索其名称与指定主体同名的标识。

[Android.Runtime.Register("getIdentity", "(Ljava/security/Principal;)Ljava/security/Identity;", "GetGetIdentity_Ljava_security_Principal_Handler")]
[System.Obsolete("deprecated")]
public virtual Java.Security.Identity? GetIdentity(Java.Security.IPrincipal? principal);
[<Android.Runtime.Register("getIdentity", "(Ljava/security/Principal;)Ljava/security/Identity;", "GetGetIdentity_Ljava_security_Principal_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member GetIdentity : Java.Security.IPrincipal -> Java.Security.Identity
override this.GetIdentity : Java.Security.IPrincipal -> Java.Security.Identity

参数

principal
IPrincipal

与要检索的标识对应的主体。

返回

其名称与主体名称相同的标识;如果没有在此作用域中具有相同名称的标识,则为 null。

属性

注解

检索其名称与指定主体同名的标识。 (注意:标识实现主体。)

Java文档java.security.IdentityScope.getIdentity(java.security.Principal)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

GetIdentity(IPublicKey)

注意

deprecated

检索具有指定公钥的标识。

[Android.Runtime.Register("getIdentity", "(Ljava/security/PublicKey;)Ljava/security/Identity;", "GetGetIdentity_Ljava_security_PublicKey_Handler")]
[System.Obsolete("deprecated")]
public abstract Java.Security.Identity? GetIdentity(Java.Security.IPublicKey? key);
[<Android.Runtime.Register("getIdentity", "(Ljava/security/PublicKey;)Ljava/security/Identity;", "GetGetIdentity_Ljava_security_PublicKey_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member GetIdentity : Java.Security.IPublicKey -> Java.Security.Identity

参数

key
IPublicKey

要返回的标识的公钥。

返回

具有给定密钥的标识;如果没有具有该密钥的此作用域中的标识,则为 null。

属性

注解

检索具有指定公钥的标识。

Java文档java.security.IdentityScope.getIdentity(java.security.PublicKey)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

GetIdentity(String)

注意

deprecated

返回此作用域中具有指定名称(如果有)的标识。

[Android.Runtime.Register("getIdentity", "(Ljava/lang/String;)Ljava/security/Identity;", "GetGetIdentity_Ljava_lang_String_Handler")]
[System.Obsolete("deprecated")]
public abstract Java.Security.Identity? GetIdentity(string? name);
[<Android.Runtime.Register("getIdentity", "(Ljava/lang/String;)Ljava/security/Identity;", "GetGetIdentity_Ljava_lang_String_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member GetIdentity : string -> Java.Security.Identity

参数

name
String

要检索的标识的名称。

返回

命名的标识 name,如果没有在此作用域中命名 name 的标识,则为 null。

属性

注解

返回此作用域中具有指定名称(如果有)的标识。

Java文档java.security.IdentityScope.getIdentity(java.lang.String)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于