Class SilverpeasX509TrustManager
- java.lang.Object
-
- org.silverpeas.core.security.encryption.SilverpeasX509TrustManager
-
- All Implemented Interfaces:
TrustManager
,X509TrustManager
public class SilverpeasX509TrustManager extends Object implements X509TrustManager
This is our own implementation of X509TrustManager using the default one but specifying our own truststore file thus enabling Silverpeas to configure this system element.- Author:
- ehugonnet
-
-
Constructor Summary
Constructors Constructor Description SilverpeasX509TrustManager(String trustStoreFile, char[] password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkClientTrusted(X509Certificate[] xcs, String string)
void
checkServerTrusted(X509Certificate[] xcs, String string)
X509Certificate[]
getAcceptedIssuers()
-
-
-
Constructor Detail
-
SilverpeasX509TrustManager
public SilverpeasX509TrustManager(String trustStoreFile, char[] password)
-
-
Method Detail
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] xcs, String string) throws CertificateException
- Specified by:
checkClientTrusted
in interfaceX509TrustManager
- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] xcs, String string) throws CertificateException
- Specified by:
checkServerTrusted
in interfaceX509TrustManager
- Throws:
CertificateException
-
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuers
in interfaceX509TrustManager
-
-