Class ECDSAKeyFactory
- java.lang.Object
-
- io.jans.as.model.crypto.KeyFactory<ECDSAPrivateKey,ECDSAPublicKey>
-
- io.jans.as.model.crypto.signature.ECDSAKeyFactory
-
public class ECDSAKeyFactory extends KeyFactory<ECDSAPrivateKey,ECDSAPublicKey>
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 Constructor Description ECDSAKeyFactory(SignatureAlgorithm signatureAlgorithm, String dnName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Certificate
generateV3Certificate(Date startDate, Date expirationDate, String dnName)
Certificate
getCertificate()
ECDSAPrivateKey
getPrivateKey()
ECDSAPublicKey
getPublicKey()
-
Methods inherited from class io.jans.as.model.crypto.KeyFactory
getKey
-
-
-
-
Constructor Detail
-
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 Detail
-
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
public ECDSAPrivateKey getPrivateKey()
- Specified by:
getPrivateKey
in classKeyFactory<ECDSAPrivateKey,ECDSAPublicKey>
-
getPublicKey
public ECDSAPublicKey getPublicKey()
- Specified by:
getPublicKey
in classKeyFactory<ECDSAPrivateKey,ECDSAPublicKey>
-
getCertificate
public Certificate getCertificate()
- Specified by:
getCertificate
in classKeyFactory<ECDSAPrivateKey,ECDSAPublicKey>
-
-