com.silverpeas.util.security
Class SilverpeasX509TrustManager
java.lang.Object
com.silverpeas.util.security.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SilverpeasX509TrustManager
public SilverpeasX509TrustManager(String trustStoreFile,
char[] password)
checkClientTrusted
public void checkClientTrusted(X509Certificate[] xcs,
String string)
throws CertificateException
- Specified by:
checkClientTrusted
in interface X509TrustManager
- Throws:
CertificateException
checkServerTrusted
public void checkServerTrusted(X509Certificate[] xcs,
String string)
throws CertificateException
- Specified by:
checkServerTrusted
in interface X509TrustManager
- Throws:
CertificateException
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuers
in interface X509TrustManager
Copyright © 2016 Silverpeas. All Rights Reserved.