-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MOSIP-33780] added new interface for ECC support.
Signed-off-by: Mahammed Taheer <mohd.taheer@gmail.com>
- Loading branch information
1 parent
36c05ce
commit ecc2b78
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
kernel/kernel-core/src/main/java/io/mosip/kernel/core/keymanager/spi/ECKeyStore.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |