KeyStoreSpi.EngineSetCertificateEntry(String, Certificate) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Assigns the given certificate to the given alias.
[Android.Runtime.Register("engineSetCertificateEntry", "(Ljava/lang/String;Ljava/security/cert/Certificate;)V", "GetEngineSetCertificateEntry_Ljava_lang_String_Ljava_security_cert_Certificate_Handler")]
public abstract void EngineSetCertificateEntry (string? alias, Java.Security.Cert.Certificate? cert);
[<Android.Runtime.Register("engineSetCertificateEntry", "(Ljava/lang/String;Ljava/security/cert/Certificate;)V", "GetEngineSetCertificateEntry_Ljava_lang_String_Ljava_security_cert_Certificate_Handler")>]
abstract member EngineSetCertificateEntry : string * Java.Security.Cert.Certificate -> unit
Parameters
- alias
- String
the alias name
- cert
- Certificate
the certificate
- Attributes
Exceptions
if an existing alias is not associated to an entry containing a trusted certificate, or this method fails for any other reason.
Remarks
Assigns the given certificate to the given alias.
If the given alias identifies an existing entry created by a call to setCertificateEntry
, or created by a call to setEntry
with a TrustedCertificateEntry
, the trusted certificate in the existing entry is overridden by the given certificate.
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.