- key
- the key to initialize this key agreement.
- params
- the parameters for this key agreement algorithm.
Type Reason Java.Security.InvalidKeyException if the specified key cannot be used to initialize this key agreement. Java.Security.InvalidAlgorithmParameterException if the specified parameters are invalid for this key agreement algorithm.
Initializes this KeyAgreement with the specified key and the algorithm parameters.