Class Ca3sTrustManager
- java.lang.Object
-
- de.trustable.ca3s.core.security.provider.Ca3sTrustManager
-
- All Implemented Interfaces:
TrustManager,X509TrustManager
@Service public class Ca3sTrustManager extends Object implements X509TrustManager
-
-
Constructor Summary
Constructors Constructor Description Ca3sTrustManager(CertificateRepository certificateRepository, CryptoService cryptoUtil, CertificateUtil certUtil, AuditService auditService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckClientTrusted(X509Certificate[] cert, String authType)voidcheckServerTrusted(X509Certificate[] chain, String authType)X509Certificate[]getAcceptedIssuers()
-
-
-
Constructor Detail
-
Ca3sTrustManager
public Ca3sTrustManager(CertificateRepository certificateRepository, CryptoService cryptoUtil, CertificateUtil certUtil, AuditService auditService)
-
-
Method Detail
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] cert, String authType) throws CertificateException
- Specified by:
checkClientTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException
- Specified by:
checkServerTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
getAcceptedIssuers
@Cacheable("AcceptedIssuer") public X509Certificate[] getAcceptedIssuers()- Specified by:
getAcceptedIssuersin interfaceX509TrustManager
-
-