- alias
- the alias for the key.
- key
- the key.
- password
- the password.
- chain
- the certificate chain.
Type Reason Java.Security.KeyStoreException if this KeyStore is not initialized. Java.Lang.IllegalArgumentException if key is a PrivateKey and chain does not contain any certificates. Java.Lang.NullPointerException if alias is null.
Associates the given alias with the key, password and certificate chain.
If the specified alias already exists, it will be reassigned.