public class Trust
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OIDC_TRUST_STORE |
| Constructor and Description |
|---|
Trust() |
| Modifier and Type | Method and Description |
|---|---|
static javax.net.ssl.SSLSocketFactory |
getSocketFactory(java.io.File trustStoreFile)
Gets the socket factory.
|
static void |
trustSpecific(javax.net.ssl.HttpsURLConnection connection,
java.io.File trustStoreFile)
Trust a specific certificate (or set of) for a specific connection.
|
public static final java.lang.String OIDC_TRUST_STORE
public static void trustSpecific(javax.net.ssl.HttpsURLConnection connection,
java.io.File trustStoreFile)
throws java.security.KeyManagementException,
java.security.NoSuchAlgorithmException,
java.security.cert.CertificateException,
java.io.FileNotFoundException,
java.security.KeyStoreException,
java.io.IOException
connection - the connectiontrustStoreFile - the trust store filejava.security.KeyManagementException - the key management exceptionjava.security.NoSuchAlgorithmException - the no such algorithm exceptionjava.security.cert.CertificateException - the certificate exceptionjava.io.FileNotFoundException - the file not found exceptionjava.security.KeyStoreException - the key store exceptionjava.io.IOException - Signals that an I/O exception has occurred.public static javax.net.ssl.SSLSocketFactory getSocketFactory(java.io.File trustStoreFile)
throws java.security.KeyManagementException,
java.security.NoSuchAlgorithmException,
java.security.cert.CertificateException,
java.io.FileNotFoundException,
java.security.KeyStoreException,
java.io.IOException
trustStoreFile - the trust store filejava.security.KeyManagementException - the key management exceptionjava.security.NoSuchAlgorithmException - the no such algorithm exceptionjava.security.cert.CertificateException - the certificate exceptionjava.io.FileNotFoundException - the file not found exceptionjava.security.KeyStoreException - the key store exceptionjava.io.IOException - Signals that an I/O exception has occurred.