Package io.jans.as.model.crypto
Class KeyFactory<E extends PrivateKey,F extends PublicKey>
java.lang.Object
io.jans.as.model.crypto.KeyFactory<E,F>
- Direct Known Subclasses:
ECDSAKeyFactory,EDDSAKeyFactory,RSAKeyFactory
Factory to create asymmetric Public and Private Keys
- Author:
- Javier Rojas Blum Date: 10.22.2012
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Certificateprotected KeyPairprotected SignatureAlgorithm -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateV3Certificate(Date startDate, Date expirationDate, String dnName) abstract CertificategetKey()abstract Eabstract F
-
Field Details
-
signatureAlgorithm
-
keyPair
-
certificate
-
-
Constructor Details
-
KeyFactory
public KeyFactory()
-
-
Method Details
-
getPrivateKey
-
getPublicKey
-
getCertificate
-
getKey
-
generateV3Certificate
public Certificate generateV3Certificate(Date startDate, Date expirationDate, String dnName) throws org.bouncycastle.operator.OperatorCreationException, CertificateException, org.bouncycastle.cert.CertIOException, SignatureException - Throws:
org.bouncycastle.operator.OperatorCreationExceptionCertificateExceptionorg.bouncycastle.cert.CertIOExceptionSignatureException
-