Skip to content

Commit

Permalink
[MOSIP-33780] added new interface for ECC support.
Browse files Browse the repository at this point in the history
Signed-off-by: Mahammed Taheer <mohd.taheer@gmail.com>
  • Loading branch information
mahammedtaheer committed Jul 4, 2024
1 parent 36c05ce commit ecc2b78
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package io.mosip.kernel.core.keymanager.spi;

import io.mosip.kernel.core.keymanager.model.CertificateParameters;

/**
* Keymanager interface to generate and store Elliptic Curve Cryptographic keys.
*
* @author Mahammed Taheer
* @since 1.2.1
*
*/
public interface ECKeyStore extends KeyStore {

/**
* Elliptic Curve Asymmetric(keypair) keys will be generated based on the provider specified and Store the keys
* along with certificate in provider specific keystore. Supported Curve (secp256k1, secp256r1)
*
* @param alias the alias
* @param signKeyAlias alias used to sign the generated key
* @param certParams required Certificate Parameters to create the certificate
* @param ecCurve ECC Curve type.
*/
void generateAndStoreAsymmetricKey(String alias, String signKeyAlias, CertificateParameters certParams, String ecCurve);
}

0 comments on commit ecc2b78

Please sign in to comment.