Android Guides | Samples

Java.Security.KeyPair Class

KeyPair is a container for a public key and a private key.

See Also: KeyPair

Syntax

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

Remarks

KeyPair is a container for a public key and a private key. Since the private key can be accessed, instances must be treated like a private key.

See Also

[Android Documentation]

Requirements

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

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

See Also: Object

Public Constructors

Constructs a new instance of KeyPair with a public key and the corresponding private key.

Public Properties

[read-only]
PrivateIPrivateKey. Returns the private key.
[read-only]
PublicIPublicKey. Returns the public key.

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.