Class ECDSAKeyFactory
java.lang.Object
io.jans.as.model.crypto.KeyFactory<ECDSAPrivateKey,ECDSAPublicKey>
io.jans.as.model.crypto.signature.ECDSAKeyFactory
Factory to create asymmetric Public and Private Keys for the Elliptic Curve
Digital Signature Algorithm (ECDSA)
- Version:
- September 13, 2021
- Author:
- Javier Rojas Blum, Sergey Manoylo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateV3Certificate
(Date startDate, Date expirationDate, String dnName) Methods inherited from class io.jans.as.model.crypto.KeyFactory
getKey
-
Constructor Details
-
ECDSAKeyFactory
public ECDSAKeyFactory(SignatureAlgorithm signatureAlgorithm, String dnName) throws NoSuchAlgorithmException, InvalidParameterSpecException, InvalidAlgorithmParameterException, org.bouncycastle.operator.OperatorCreationException, CertificateException, org.bouncycastle.cert.CertIOException - Throws:
NoSuchAlgorithmException
InvalidParameterSpecException
InvalidAlgorithmParameterException
org.bouncycastle.operator.OperatorCreationException
CertificateException
org.bouncycastle.cert.CertIOException
-
-
Method Details
-
generateV3Certificate
public Certificate generateV3Certificate(Date startDate, Date expirationDate, String dnName) throws org.bouncycastle.operator.OperatorCreationException, CertificateException, org.bouncycastle.cert.CertIOException - Overrides:
generateV3Certificate
in classKeyFactory<ECDSAPrivateKey,
ECDSAPublicKey> - Throws:
org.bouncycastle.operator.OperatorCreationException
CertificateException
org.bouncycastle.cert.CertIOException
-
getPrivateKey
- Specified by:
getPrivateKey
in classKeyFactory<ECDSAPrivateKey,
ECDSAPublicKey>
-
getPublicKey
- Specified by:
getPublicKey
in classKeyFactory<ECDSAPrivateKey,
ECDSAPublicKey>
-
getCertificate
- Specified by:
getCertificate
in classKeyFactory<ECDSAPrivateKey,
ECDSAPublicKey>
-