|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.net.util.TrustManagerUtils
public final class TrustManagerUtils
TrustManager utilities for generating TrustManagers.
| Constructor Summary | |
|---|---|
TrustManagerUtils()
|
|
| Method Summary | |
|---|---|
static X509TrustManager |
getAcceptAllTrustManager()
Generate a TrustManager that performs no checks. |
static X509TrustManager |
getDefaultTrustManager(KeyStore keyStore)
Return the default TrustManager provided by the JVM. |
static X509TrustManager |
getValidateServerCertificateTrustManager()
Generate a TrustManager that checks server certificates for validity, but otherwise performs no checks. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TrustManagerUtils()
| Method Detail |
|---|
public static X509TrustManager getAcceptAllTrustManager()
public static X509TrustManager getValidateServerCertificateTrustManager()
public static X509TrustManager getDefaultTrustManager(KeyStore keyStore)
throws GeneralSecurityException
This should be the same as the default used by SSLContext#init(KeyManager[], TrustManager[], SecureRandom)
when the TrustManager parameter is set to null
keyStore - the KeyStore to use, may be null
GeneralSecurityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||