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 CertificategenerateV3Certificate(Date startDate, Date expirationDate, String dnName)CertificategetCertificate()ECDSAPrivateKeygetPrivateKey()ECDSAPublicKeygetPublicKey()-
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:
NoSuchAlgorithmExceptionInvalidParameterSpecExceptionInvalidAlgorithmParameterExceptionorg.bouncycastle.operator.OperatorCreationExceptionCertificateExceptionorg.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:
generateV3Certificatein classKeyFactory<ECDSAPrivateKey,ECDSAPublicKey>- Throws:
org.bouncycastle.operator.OperatorCreationExceptionCertificateExceptionorg.bouncycastle.cert.CertIOException
-
getPrivateKey
public ECDSAPrivateKey getPrivateKey()
- Specified by:
getPrivateKeyin classKeyFactory<ECDSAPrivateKey,ECDSAPublicKey>
-
getPublicKey
public ECDSAPublicKey getPublicKey()
- Specified by:
getPublicKeyin classKeyFactory<ECDSAPrivateKey,ECDSAPublicKey>
-
getCertificate
public Certificate getCertificate()
- Specified by:
getCertificatein classKeyFactory<ECDSAPrivateKey,ECDSAPublicKey>
-
-