- alias
- the alias for the key.
- key
- the key.
- password
- the password.
- chain
- the certificate chain.
Type Reason Java.Security.KeyStoreException if the specified key can not be protected, or if this operation fails for another reason. Java.Lang.IllegalArgumentException if key is a PrivateKey and chain does not contain any certificates.
Associates the given alias with the key, password and certificate chain.
If the specified alias already exists, it will be reassigned.