Android Guides | Samples

Java.Security.Identity Class

Identity represents an identity like a person or a company.

See Also: Identity

Syntax

[Android.Runtime.Register("java/security/Identity", DoNotGenerateAcw=true)]
[System.Obsolete("This class is obsoleted in this android platform")]
public abstract class Identity : Object, ISerializable, IPrincipal, IDisposable

Remarks

Identity represents an identity like a person or a company.

[Android Documentation]

Requirements

Namespace: Java.Security
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1Deprecated since API level 1

The members of Java.Security.Identity are listed below.

See Also: Object

Public Constructors

Creates a new instance of Identity with the specified name.
Creates a new instance of Identity with the specified name and the scope of this Identity.

Protected Constructors

Constructs a new instance of Identity.
A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

InfoString. Returns the information string of this Identity.
[read-only]
NameString. Returns the name of this Identity.
PublicKeyIPublicKey. Returns the PublicKey associated with this Identity.
[read-only]
ScopeIdentityScope. Returns the IdentityScope of this Identity.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

AddCertificate(ICertificate)
Adds a Certificate to this Identity.
Certificates() : ICertificate[]
Returns the certificates for this Identity.
override
Equals(Object) : Boolean
Compares the specified object with this Identity for equality and returns true if the specified object is equal, false otherwise.
RemoveCertificate(ICertificate)
Removes the specified Certificate from this Identity.
ToString(Boolean) : String
Returns a string containing a concise, human-readable description of the this Identity.

Protected Methods

IdentityEquals(Identity) : Boolean
Compares the specified Identity with this Identity for equality and returns true if the specified object is equal, false otherwise.