Package org.xipki.util.http
Class SslContextConf
- java.lang.Object
-
- org.xipki.util.http.SslContextConf
-
public class SslContextConf extends java.lang.ObjectConfiguration of SSL context.- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description SslContextConf(java.lang.String sslStoreType, FileOrBinary sslKeystore, java.lang.String sslKeystorePassword, FileOrBinary[] sslTrustanchors, java.lang.String sslHostnameVerifier)SslContextConf(FileOrBinary[] sslTrustanchors, java.lang.String sslHostnameVerifier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.net.ssl.HostnameVerifiergetHostnameVerifier()javax.net.ssl.SSLContextgetSslContext()java.lang.StringgetSslHostnameVerifier()FileOrBinarygetSslKeystore()java.lang.StringgetSslKeystorePassword()javax.net.ssl.SSLSocketFactorygetSslSocketFactory()java.lang.StringgetSslStoreType()FileOrBinary[]getSslTrustanchors()voidinit()static SslContextConfofSslConf(SslConf ssl)
-
-
-
Constructor Detail
-
SslContextConf
public SslContextConf(FileOrBinary[] sslTrustanchors, java.lang.String sslHostnameVerifier)
-
SslContextConf
public SslContextConf(java.lang.String sslStoreType, FileOrBinary sslKeystore, java.lang.String sslKeystorePassword, FileOrBinary[] sslTrustanchors, java.lang.String sslHostnameVerifier)
-
-
Method Detail
-
init
public void init() throws ObjectCreationException- Throws:
ObjectCreationException
-
getSslStoreType
public java.lang.String getSslStoreType()
-
getSslKeystore
public FileOrBinary getSslKeystore()
-
getSslKeystorePassword
public java.lang.String getSslKeystorePassword()
-
getSslTrustanchors
public FileOrBinary[] getSslTrustanchors()
-
getSslHostnameVerifier
public java.lang.String getSslHostnameVerifier()
-
getSslContext
public javax.net.ssl.SSLContext getSslContext() throws ObjectCreationException- Throws:
ObjectCreationException
-
getSslSocketFactory
public javax.net.ssl.SSLSocketFactory getSslSocketFactory() throws ObjectCreationException- Throws:
ObjectCreationException
-
getHostnameVerifier
public javax.net.ssl.HostnameVerifier getHostnameVerifier() throws ObjectCreationException- Throws:
ObjectCreationException
-
ofSslConf
public static SslContextConf ofSslConf(SslConf ssl)
-
-