KeyStoreSpi.EngineSetKeyEntry 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.
Overloads
EngineSetKeyEntry(String, Byte[], Certificate[]) |
Assigns the given key (that has already been protected) to the given alias. |
EngineSetKeyEntry(String, IKey, Char[], Certificate[]) |
Assigns the given key to the given alias, protecting it with the given password. |
EngineSetKeyEntry(String, Byte[], Certificate[])
Assigns the given key (that has already been protected) to the given alias.
[Android.Runtime.Register("engineSetKeyEntry", "(Ljava/lang/String;[B[Ljava/security/cert/Certificate;)V", "GetEngineSetKeyEntry_Ljava_lang_String_arrayBarrayLjava_security_cert_Certificate_Handler")]
public abstract void EngineSetKeyEntry (string? alias, byte[]? key, Java.Security.Cert.Certificate[]? chain);
[<Android.Runtime.Register("engineSetKeyEntry", "(Ljava/lang/String;[B[Ljava/security/cert/Certificate;)V", "GetEngineSetKeyEntry_Ljava_lang_String_arrayBarrayLjava_security_cert_Certificate_Handler")>]
abstract member EngineSetKeyEntry : string * byte[] * Java.Security.Cert.Certificate[] -> unit
Parameters
- alias
- String
the alias name
- key
- Byte[]
the key (in protected format) to be associated with the alias
- chain
- Certificate[]
the certificate chain for the corresponding public
key (only useful if the protected key is of type
java.security.PrivateKey
).
- Attributes
Exceptions
if this operation fails.
if key
is a PrivateKey
and chain
does.
Remarks
Assigns the given key (that has already been protected) to the given alias.
If the protected key is of type java.security.PrivateKey
, it must be accompanied by a certificate chain certifying the corresponding public key.
If the given alias already exists, the keystore information associated with it is overridden by the given key (and possibly certificate chain).
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
EngineSetKeyEntry(String, IKey, Char[], Certificate[])
Assigns the given key to the given alias, protecting it with the given password.
[Android.Runtime.Register("engineSetKeyEntry", "(Ljava/lang/String;Ljava/security/Key;[C[Ljava/security/cert/Certificate;)V", "GetEngineSetKeyEntry_Ljava_lang_String_Ljava_security_Key_arrayCarrayLjava_security_cert_Certificate_Handler")]
public abstract void EngineSetKeyEntry (string? alias, Java.Security.IKey? key, char[]? password, Java.Security.Cert.Certificate[]? chain);
[<Android.Runtime.Register("engineSetKeyEntry", "(Ljava/lang/String;Ljava/security/Key;[C[Ljava/security/cert/Certificate;)V", "GetEngineSetKeyEntry_Ljava_lang_String_Ljava_security_Key_arrayCarrayLjava_security_cert_Certificate_Handler")>]
abstract member EngineSetKeyEntry : string * Java.Security.IKey * char[] * Java.Security.Cert.Certificate[] -> unit
Parameters
- alias
- String
the alias name
- key
- IKey
the key to be associated with the alias
- password
- Char[]
the password to protect the key
- chain
- Certificate[]
the certificate chain for the corresponding public
key (only required if the given key is of type
java.security.PrivateKey
).
- Attributes
Exceptions
if the specified key can not be protected, or if this operation fails for another reason.
if key
is a PrivateKey
and chain
does
not contain any certificates.
Remarks
Assigns the given key to the given alias, protecting it with the given password.
If the given key is of type java.security.PrivateKey
, it must be accompanied by a certificate chain certifying the corresponding public key.
If the given alias already exists, the keystore information associated with it is overridden by the given key (and possibly certificate chain).
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.