Android Guides | Samples

Java.Security.Cert.Certificate Class

Abstract class to represent identity certificates.

See Also: Certificate

Syntax

[Android.Runtime.Register("java/security/cert/Certificate", DoNotGenerateAcw=true)]
public abstract class Certificate : Object, ISerializable, IDisposable

Remarks

Abstract class to represent identity certificates. It represents a way to verify the binding of a Principal and its public key. Examples are X.509, PGP, and SDSI.

[Android Documentation]

Requirements

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

The members of Java.Security.Cert.Certificate are listed below.

See Also: Object

Protected Constructors

Creates a new Certificate with the specified type.
A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
abstract
PublicKeyIPublicKey. Returns the public key corresponding to this certificate.
[read-only]
TypeString. Returns the certificate type.

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

abstract
GetEncoded() : Byte[]
Returns the encoded representation for this certificate.
abstract
ToString() : String
Returns a string containing a concise, human-readable description of the certificate.
abstract
Verify(IPublicKey)
Verifies that this certificate was signed with the given public key.
abstract
Verify(IPublicKey, String)
Verifies that this certificate was signed with the given public key.

Protected Methods

WriteReplace() : Object
Returns an alternate object to be serialized.