Android Guides | Samples

Java.Security.KeyStoreSpi Class

KeyStoreSpi is the Service Provider Interface (SPI) definition for KeyStore.

See Also: KeyStoreSpi

Syntax

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

Remarks

KeyStoreSpi is the Service Provider Interface (SPI) definition for KeyStore.

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.KeyStoreSpi are listed below.

See Also: Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

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
EngineAliases() : IEnumeration
Returns an Enumeration over all alias names stored in this KeyStoreSpi.
abstract
EngineContainsAlias(String) : Boolean
Indicates whether the given alias is present in this KeyStoreSpi.
abstract
EngineDeleteEntry(String)
Deletes the entry identified with the given alias from this KeyStoreSpi.
EngineEntryInstanceOf(String, Class) : Boolean
abstract
EngineGetCertificate(String) : Certificate
Returns the trusted certificate for the entry with the given alias.
abstract
EngineGetCertificateAlias(Certificate) : String
Returns the alias associated with the first entry whose certificate matches the specified certificate.
abstract
EngineGetCertificateChain(String) : Certificate[]
Returns the certificate chain for the entry with the given alias.
abstract
EngineGetCreationDate(String) : Date
Returns the creation date of the entry with the given alias.
EngineGetEntry(String, KeyStore+IProtectionParameter) : KeyStore+IEntry
Returns the Entry with the given alias, using the specified ProtectionParameter.
abstract
EngineGetKey(String, Char[]) : IKey
Returns the key with the given alias, using the password to recover the key from the store.
abstract
EngineIsCertificateEntry(String) : Boolean
Indicates whether the specified alias is associated with a NoType:java/security/KeyStore$TrustedCertificateEntry;Href=../../../reference/java/security/KeyStore.TrustedCertificateEntry.html.
abstract
EngineIsKeyEntry(String) : Boolean
Indicates whether the specified alias is associated with either a NoType:java/security/KeyStore$PrivateKeyEntry;Href=../../../reference/java/security/KeyStore.PrivateKeyEntry.html or a NoType:java/security/KeyStore$SecretKeyEntry;Href=../../../reference/java/security/KeyStore.SecretKeyEntry.html.
EngineLoad(KeyStore+ILoadStoreParameter)
Loads this KeyStoreSpi using the specified LoadStoreParameter.
abstract
EngineLoad(Stream, Char[])
Loads this KeyStoreSpi from the given InputStream.
abstract
EngineSetCertificateEntry(String, Certificate)
Associates the given alias with a certificate.
EngineSetEntry(String, KeyStore+IEntry, KeyStore+IProtectionParameter)
Stores the given Entry in this KeyStoreSpi and associates the entry with the given alias.
abstract
EngineSetKeyEntry(String, Byte[], Certificate[])
Associates the given alias with a key and a certificate chain.
abstract
EngineSetKeyEntry(String, IKey, Char[], Certificate[])
Associates the given alias with the key, password and certificate chain.
abstract
EngineSize() : Int32
Returns the number of entries stored in this KeyStoreSpi.
EngineStore(KeyStore+ILoadStoreParameter)
Stores this KeyStoreSpi using the specified LoadStoreParameter.
abstract
EngineStore(Stream, Char[])
Writes this KeyStoreSpi to the specified OutputStream.