Package org.xipki.util.http
Class SslContextConf
- java.lang.Object
-
- org.xipki.util.http.SslContextConf
-
public class SslContextConf extends Object
Configuration of SSL context.- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description SslContextConf()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HostnameVerifierbuildHostnameVerifier()org.xipki.password.PasswordResolvergetPasswordResolver()SSLContextgetSslContext()StringgetSslHostnameVerifier()FileOrBinarygetSslKeystore()StringgetSslKeystorePassword()SSLSocketFactorygetSslSocketFactory()StringgetSslStoreType()FileOrBinary[]getSslTrustanchors()booleanisUseSslConf()static SslContextConfofSslConf(SslConf ssl)voidsetPasswordResolver(org.xipki.password.PasswordResolver passwordResolver)voidsetSslHostnameVerifier(String sslHostnameVerifier)voidsetSslKeystore(String sslKeystore)voidsetSslKeystore(FileOrBinary sslKeystore)voidsetSslKeystorePassword(String sslKeystorePassword)voidsetSslStoreType(String sslStoreType)voidsetSslTrustanchors(String sslTrustanchors)voidsetSslTrustanchors(FileOrBinary[] sslTrustanchors)voidsetUseSslConf(boolean useSslConf)
-
-
-
Method Detail
-
ofSslConf
public static SslContextConf ofSslConf(SslConf ssl)
-
isUseSslConf
public boolean isUseSslConf()
-
setUseSslConf
public void setUseSslConf(boolean useSslConf)
-
getPasswordResolver
public org.xipki.password.PasswordResolver getPasswordResolver()
-
setPasswordResolver
public void setPasswordResolver(org.xipki.password.PasswordResolver passwordResolver)
-
getSslStoreType
public String getSslStoreType()
-
setSslStoreType
public void setSslStoreType(String sslStoreType)
-
getSslKeystore
public FileOrBinary getSslKeystore()
-
setSslKeystore
public void setSslKeystore(String sslKeystore)
-
setSslKeystore
public void setSslKeystore(FileOrBinary sslKeystore)
-
getSslKeystorePassword
public String getSslKeystorePassword()
-
setSslKeystorePassword
public void setSslKeystorePassword(String sslKeystorePassword)
-
getSslTrustanchors
public FileOrBinary[] getSslTrustanchors()
-
setSslTrustanchors
public void setSslTrustanchors(String sslTrustanchors)
-
setSslTrustanchors
public void setSslTrustanchors(FileOrBinary[] sslTrustanchors)
-
getSslHostnameVerifier
public String getSslHostnameVerifier()
-
setSslHostnameVerifier
public void setSslHostnameVerifier(String sslHostnameVerifier)
-
getSslContext
public SSLContext getSslContext() throws ObjectCreationException
- Throws:
ObjectCreationException
-
getSslSocketFactory
public SSLSocketFactory getSslSocketFactory() throws ObjectCreationException
- Throws:
ObjectCreationException
-
buildHostnameVerifier
public HostnameVerifier buildHostnameVerifier() throws ObjectCreationException
- Throws:
ObjectCreationException
-
-