IdentityScope.GetIdentity Method

Definition

Overloads

GetIdentity(IPrincipal)
Obsolete.

Retrieves the identity whose name is the same as that of the specified principal.

GetIdentity(IPublicKey)
Obsolete.

Retrieves the identity with the specified public key.

GetIdentity(String)
Obsolete.

Returns the identity in this scope with the specified name (if any).

GetIdentity(IPrincipal)

Caution

deprecated

Retrieves the identity whose name is the same as that of the specified principal.

[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

Parameters

principal
IPrincipal

the principal corresponding to the identity to be retrieved.

Returns

the identity whose name is the same as that of the principal, or null if there are no identities of the same name in this scope.

Attributes

Remarks

Retrieves the identity whose name is the same as that of the specified principal. (Note: Identity implements Principal.)

Java documentation for java.security.IdentityScope.getIdentity(java.security.Principal).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetIdentity(IPublicKey)

Caution

deprecated

Retrieves the identity with the specified public key.

[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

Parameters

key
IPublicKey

the public key for the identity to be returned.

Returns

the identity with the given key, or null if there are no identities in this scope with that key.

Attributes

Remarks

Retrieves the identity with the specified public key.

Java documentation for java.security.IdentityScope.getIdentity(java.security.PublicKey).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetIdentity(String)

Caution

deprecated

Returns the identity in this scope with the specified name (if any).

[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

Parameters

name
String

the name of the identity to be retrieved.

Returns

the identity named name, or null if there are no identities named name in this scope.

Attributes

Remarks

Returns the identity in this scope with the specified name (if any).

Java documentation for java.security.IdentityScope.getIdentity(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to