public class SSLJiveTrustManagerFactory extends Object
The Java Keystore (JKS) takes a single password which must apply to both the keystore and the key itself. Users may specify another keystore type and keystore location. Alternatively, don't set a keystore type to use the JVM defaults and configure your JVMs security files (see your JVM documentation) to plug in any TrustManagerFactory provider.
| Constructor and Description |
|---|
SSLJiveTrustManagerFactory() |
| Modifier and Type | Method and Description |
|---|---|
static TrustManager[] |
getTrustManagers(KeyStore truststore,
String trustpass) |
static TrustManager[] |
getTrustManagers(String storeType,
String truststore,
String trustpass)
Creates a TrustManager list which is null if the storeType is null, or
is a standard TrustManager that uses a KeyStore of type storeType,
located at 'keystore' location under home, and uses 'keypass' as
the password for the keystore password and key password (note that
trust managers typically don't need a key password as public keys
are stored in the clear and can be obtained without a key password).
|
public static TrustManager[] getTrustManagers(String storeType, String truststore, String trustpass) throws NoSuchAlgorithmException, KeyStoreException, IOException, CertificateException
storeType - The type of keystore (e.g. "JKS") to use or null to indicate no keystore should be usedtruststore - The relative location of the keystore under hometrustpass - The password for the keystore and keyNoSuchAlgorithmException - If the keystore type doesn't exist (not provided or configured with your JVM)KeyStoreException - If the keystore is corruptIOException - If the keystore could not be located or loadedCertificateException - If there were no certificates to be loaded or they are invalidpublic static TrustManager[] getTrustManagers(KeyStore truststore, String trustpass)
Copyright © 2003-2008 Jive Software.