Package io.jans.fido2.service
Class CertificateService
- java.lang.Object
-
- io.jans.fido2.service.CertificateService
-
@ApplicationScoped public class CertificateService extends Object
Utiltiy class for Certificate related operations- Version:
- May 08, 2020
- Author:
- Yuriy Movchan
-
-
Constructor Summary
Constructors Constructor Description CertificateService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description X509Certificate
getCertificate(InputStream is)
X509Certificate
getCertificate(String x509certificate)
X509Certificate
getCertificate(String certsFolder, String certFileName)
List<X509Certificate>
getCertificates(String rootCertificatePath)
List<X509Certificate>
getCertificates(List<String> certificatePath)
List<X509Certificate>
getCertificates(List<String> certificatePath, boolean checkValidaty)
Map<String,X509Certificate>
getCertificatesMap(String rootCertificatePath)
CertificateFactory
instanceCertificateFactory(String type)
CertificateFactory
instanceCertificateFactoryX509()
CertPathValidator
instanceCertPathValidator(String algorithm)
CertPathValidator
instanceCertPathValidatorPKIX()
void
saveCertificate(X509Certificate certificate)
List<X509Certificate>
selectRootCertificates(Map<String,X509Certificate> trustChainCertificatesMap, List<X509Certificate> certificates)
-
-
-
Method Detail
-
getCertificate
public X509Certificate getCertificate(String x509certificate)
-
getCertificate
public X509Certificate getCertificate(InputStream is)
-
getCertificates
public List<X509Certificate> getCertificates(List<String> certificatePath, boolean checkValidaty)
-
getCertificates
public List<X509Certificate> getCertificates(List<String> certificatePath)
-
getCertificatesMap
public Map<String,X509Certificate> getCertificatesMap(String rootCertificatePath)
-
getCertificates
public List<X509Certificate> getCertificates(String rootCertificatePath)
-
getCertificate
public X509Certificate getCertificate(String certsFolder, String certFileName)
-
selectRootCertificates
public List<X509Certificate> selectRootCertificates(Map<String,X509Certificate> trustChainCertificatesMap, List<X509Certificate> certificates)
-
saveCertificate
public void saveCertificate(X509Certificate certificate)
-
instanceCertificateFactory
public CertificateFactory instanceCertificateFactory(String type) throws CertificateException
- Throws:
CertificateException
-
instanceCertificateFactoryX509
public CertificateFactory instanceCertificateFactoryX509()
-
instanceCertPathValidator
public CertPathValidator instanceCertPathValidator(String algorithm) throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
-
instanceCertPathValidatorPKIX
public CertPathValidator instanceCertPathValidatorPKIX()
-
-