- alias
- the alias for the key.
- key
- the key in an encoded format.
- chain
- the certificate chain.
Type Reason Java.Security.KeyStoreException if this KeyStore is not initialized or if key is null. Java.Lang.IllegalArgumentException if key is a PrivateKey and chain does. Java.Lang.NullPointerException if alias is null.
Associates the given alias with a key and a certificate chain.
If the specified alias already exists, it will be reassigned.
If this KeyStore is of type "jks", key must be encoded conform to the PKS#8 standard as an Javax.Crypto.EncryptedPrivateKeyInfo.