KeyStore.Load Method

Definition

Overloads

Load(KeyStore+ILoadStoreParameter)

Loads this KeyStore from the given input stream.

Load(Stream, Char[])

Loads this KeyStore from the given input stream.

Load(KeyStore+ILoadStoreParameter)

Loads this KeyStore from the given input stream.

[Android.Runtime.Register("load", "(Ljava/security/KeyStore$LoadStoreParameter;)V", "")]
public void Load (Java.Security.KeyStore.ILoadStoreParameter? param);
[<Android.Runtime.Register("load", "(Ljava/security/KeyStore$LoadStoreParameter;)V", "")>]
member this.Load : Java.Security.KeyStore.ILoadStoreParameter -> unit

Parameters

param
KeyStore.ILoadStoreParameter

the LoadStoreParameter that specifies how to load this KeyStore, maybe null.

Attributes

Exceptions

if a problem occurred while reading from the stream.

if the required algorithm is not available.

if an exception occurred while loading the certificates of this KeyStore.

if the given KeyStore.ILoadStoreParameter is not recognized.

Remarks

Java documentation for java.security.KeyStore.load(java.io.InputStream, char[]).

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

Load(Stream, Char[])

Loads this KeyStore from the given input stream.

[Android.Runtime.Register("load", "(Ljava/io/InputStream;[C)V", "")]
public void Load (System.IO.Stream? stream, char[]? password);
[<Android.Runtime.Register("load", "(Ljava/io/InputStream;[C)V", "")>]
member this.Load : System.IO.Stream * char[] -> unit

Parameters

stream
Stream

the input stream from which the keystore is loaded, or null

password
Char[]

the password used to check the integrity of the keystore, the password used to unlock the keystore, or null

Attributes

Exceptions

if a problem occurred while reading from the stream.

if the required algorithm is not available.

if an exception occurred while loading the certificates of this KeyStore.

Remarks

Loads this KeyStore from the given input stream.

A password may be given to unlock the keystore (e.g. the keystore resides on a hardware token device), or to check the integrity of the keystore data. If a password is not given for integrity checking, then integrity checking is not performed.

In order to create an empty keystore, or if the keystore cannot be initialized from a stream, pass null as the stream argument.

Note that if this keystore has already been loaded, it is reinitialized and loaded again from the given input stream.

Java documentation for java.security.KeyStore.load(java.io.InputStream, char[]).

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