Condividi tramite


KeyStore.SetEntry Method

Definition

Saves a keystore Entry under the specified alias.

[Android.Runtime.Register("setEntry", "(Ljava/lang/String;Ljava/security/KeyStore$Entry;Ljava/security/KeyStore$ProtectionParameter;)V", "")]
public void SetEntry (string? alias, Java.Security.KeyStore.IEntry? entry, Java.Security.KeyStore.IProtectionParameter? protParam);
[<Android.Runtime.Register("setEntry", "(Ljava/lang/String;Ljava/security/KeyStore$Entry;Ljava/security/KeyStore$ProtectionParameter;)V", "")>]
member this.SetEntry : string * Java.Security.KeyStore.IEntry * Java.Security.KeyStore.IProtectionParameter -> unit

Parameters

alias
String

save the keystore Entry under this alias

entry
KeyStore.IEntry

the Entry to save

protParam
KeyStore.IProtectionParameter

the ProtectionParameter used to protect the Entry, which may be null

Attributes

Exceptions

if this KeyStore is not initialized.

if alias is null or entry is null.

Remarks

Java documentation for java.security.KeyStore.setEntry(java.lang.String, java.security.Entry, java.security.ProtectionParameter).

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