public abstract class AbstractSecurityFactory extends Object implements SecurityFactory
| Constructor and Description |
|---|
AbstractSecurityFactory() |
| Modifier and Type | Method and Description |
|---|---|
ConcurrentContentSigner |
createSigner(String type,
SignerConf conf,
X509Certificate cert)
Creates signer.
|
org.bouncycastle.operator.ContentVerifierProvider |
getContentVerifierProvider(X509Certificate cert)
Gets the ContentVerifierProvider from the certificate.
|
org.bouncycastle.operator.ContentVerifierProvider |
getContentVerifierProvider(org.bouncycastle.cert.X509CertificateHolder cert)
Gets the ContentVerifierProvider from the certificate.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatePrivateKeyAndCert, createSigner, extractMinimalKeyStore, generatePublicKey, getContentVerifierProvider, getDfltSignerParallelism, getPasswordResolver, getRandom4Key, getRandom4Sign, getSupportedSignerTypes, refreshTokenForSignerType, verifyPopo, verifyPopopublic ConcurrentContentSigner createSigner(String type, SignerConf conf, X509Certificate cert) throws org.xipki.util.ObjectCreationException
SecurityFactorycreateSigner in interface SecurityFactorytype - Type of the signer. Must not be null.conf - Configuration of the signer. Could be null.cert - Certificate of the signer. If not null, it will be used; otherwise
the certificates contained in the token will be used.org.xipki.util.ObjectCreationException - if could not create the signerpublic org.bouncycastle.operator.ContentVerifierProvider getContentVerifierProvider(X509Certificate cert) throws InvalidKeyException
SecurityFactorygetContentVerifierProvider in interface SecurityFactorycert - Certificate that contains the signature verification key. Must not be null.InvalidKeyException - If the publicKey contained in the certificate is invalid or unsupported.public org.bouncycastle.operator.ContentVerifierProvider getContentVerifierProvider(org.bouncycastle.cert.X509CertificateHolder cert)
throws InvalidKeyException
SecurityFactorygetContentVerifierProvider in interface SecurityFactorycert - Certificate that contains the signature verification key. Must not be null.InvalidKeyException - If the publicKey contained in the certificate is invalid or unsupported.Copyright © 2018. All rights reserved.