/** * Create a wrapper, overriding the algorithm type that is stored in the public key. * * @param algorithmParameterSpec the parameterSpec for encryption algorithm to be used. * @param publicKey the public key to be used. */ public JceAsymmetricKeyWrapper(AlgorithmParameterSpec algorithmParameterSpec, PublicKey publicKey) { super(extractFromSpec(algorithmParameterSpec)); this.publicKey = publicKey; }