KeyStore.SetCertificateEntry(String, Certificate) Method
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 trusted certificate to the given alias.
[Android.Runtime.Register("setCertificateEntry", "(Ljava/lang/String;Ljava/security/cert/Certificate;)V", "")]
public void SetCertificateEntry (string? alias, Java.Security.Cert.Certificate? cert);
[<Android.Runtime.Register("setCertificateEntry", "(Ljava/lang/String;Ljava/security/cert/Certificate;)V", "")>]
member this.SetCertificateEntry : string * Java.Security.Cert.Certificate -> unit
- alias
- String
the alias name
- cert
- Certificate
the certificate
- Attributes
if this KeyStore
is not initialized, or an existing
alias is not associated to an entry containing a trusted
certificate, or this method fails for any other reason.
if alias
is null
.
Assigns the given trusted 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.