KeyStore.GetEntry(String, KeyStore+IProtectionParameter) Method

Definition

Gets a keystore Entry for the specified alias with the specified protection parameter.

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

Parameters

alias
String

get the keystore Entry for this alias

protParam
KeyStore.IProtectionParameter

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

Returns

the keystore Entry for the specified alias, or null if there is no such entry

Attributes

Exceptions

if the required algorithm is not available.

if the entry can not be recovered.

if this KeyStore is not initialized.

if alias is null.

Remarks

Java documentation for java.security.KeyStore.getEntry(java.lang.String, 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