- alias
- the alias for the key.
- key
- the key in an encoded format.
- chain
- the certificate chain.
Type Reason Java.Security.KeyStoreException if this operation fails. Java.Lang.IllegalArgumentException if key is a PrivateKey and chain does.
Associates the given alias with a key and a certificate chain.
If the specified alias already exists, it will be reassigned.