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
public abstract class KeyFactory<E extends PrivateKey,F extends PublicKey> extends Object
Factory to create asymmetric Public and Private Keys- Author:
- Javier Rojas Blum Date: 10.22.2012
-
-
Field Summary
Fields Modifier and Type Field Description protected Certificate
certificate
protected KeyPair
keyPair
protected SignatureAlgorithm
signatureAlgorithm
-
Constructor Summary
Constructors Constructor Description KeyFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Certificate
generateV3Certificate(Date startDate, Date expirationDate, String dnName)
abstract Certificate
getCertificate()
Key<E,F>
getKey()
abstract E
getPrivateKey()
abstract F
getPublicKey()
-
-
-
Field Detail
-
signatureAlgorithm
protected SignatureAlgorithm signatureAlgorithm
-
keyPair
protected KeyPair keyPair
-
certificate
protected Certificate certificate
-
-
Method Detail
-
getPrivateKey
public abstract E getPrivateKey()
-
getPublicKey
public abstract F getPublicKey()
-
getCertificate
public abstract Certificate getCertificate()
-
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.OperatorCreationException
CertificateException
org.bouncycastle.cert.CertIOException
SignatureException
-
-