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:
- June 15, 2016
- Author:
- Javier Rojas Blum
-
-
Constructor Summary
Constructors Constructor Description ECDSAKeyFactory(SignatureAlgorithm signatureAlgorithm, java.lang.String dnName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Certificate
generateV3Certificate(java.util.Date startDate, java.util.Date expirationDate, java.lang.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, java.lang.String dnName) throws java.security.InvalidParameterException, java.security.NoSuchProviderException, java.security.NoSuchAlgorithmException, java.security.InvalidAlgorithmParameterException, java.security.SignatureException, java.security.InvalidKeyException, java.security.cert.CertificateEncodingException
- Throws:
java.security.InvalidParameterException
java.security.NoSuchProviderException
java.security.NoSuchAlgorithmException
java.security.InvalidAlgorithmParameterException
java.security.SignatureException
java.security.InvalidKeyException
java.security.cert.CertificateEncodingException
-
-
Method Detail
-
generateV3Certificate
public Certificate generateV3Certificate(java.util.Date startDate, java.util.Date expirationDate, java.lang.String dnName) throws java.security.cert.CertificateEncodingException, java.security.InvalidKeyException, java.lang.IllegalStateException, java.security.NoSuchProviderException, java.security.NoSuchAlgorithmException, java.security.SignatureException
- Throws:
java.security.cert.CertificateEncodingException
java.security.InvalidKeyException
java.lang.IllegalStateException
java.security.NoSuchProviderException
java.security.NoSuchAlgorithmException
java.security.SignatureException
-
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>
-
-