Class TLSSocketFactoryFactoryBean
- java.lang.Object
-
- org.springframework.beans.factory.config.AbstractFactoryBean<org.apache.http.conn.socket.LayeredConnectionSocketFactory>
-
- net.shibboleth.idp.profile.spring.relyingparty.metadata.TLSSocketFactoryFactoryBean
-
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,DisposableBean,FactoryBean<org.apache.http.conn.socket.LayeredConnectionSocketFactory>,InitializingBean
public class TLSSocketFactoryFactoryBean extends AbstractFactoryBean<org.apache.http.conn.socket.LayeredConnectionSocketFactory>
A factory bean for producing instances ofLayeredConnectionSocketFactoryfor use inHttpClient.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanconnectionDisregardTLSCertificateWhether the responder's SSL/TLS certificate should be ignored.private HttpClientSecurityParametershttpClientSecurityParametersThe optional HttpClient security parameters instance that will be used with the HttpClient instance.private TrustEngine<?>tlsTrustEngineThe optional trust engine used in evaluating server TLS credentials.-
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
-
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description TLSSocketFactoryFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected org.apache.http.conn.socket.LayeredConnectionSocketFactorycreateInstance()Class<org.apache.http.conn.socket.LayeredConnectionSocketFactory>getObjectType()voidsetConnectionDisregardTLSCertificate(boolean disregard)Sets whether the responder's SSL/TLS certificate should be ignored.voidsetHttpClientSecurityParameters(HttpClientSecurityParameters params)Sets the optional HttpClient security parameters instance that will be used with the HttpClient instance.voidsetTLSTrustEngine(TrustEngine<? super X509Credential> engine)Deprecated.use setHttpClientSecurityParameters instead-
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
-
-
-
Field Detail
-
tlsTrustEngine
private TrustEngine<?> tlsTrustEngine
The optional trust engine used in evaluating server TLS credentials.
-
httpClientSecurityParameters
private HttpClientSecurityParameters httpClientSecurityParameters
The optional HttpClient security parameters instance that will be used with the HttpClient instance.
-
connectionDisregardTLSCertificate
private boolean connectionDisregardTLSCertificate
Whether the responder's SSL/TLS certificate should be ignored.
-
-
Method Detail
-
setTLSTrustEngine
@Deprecated public void setTLSTrustEngine(@Nullable TrustEngine<? super X509Credential> engine)
Deprecated.use setHttpClientSecurityParameters insteadSets the optional trust engine used in evaluating server TLS credentials.- Parameters:
engine- the trust engine instance to use, or null
-
setHttpClientSecurityParameters
public void setHttpClientSecurityParameters(@Nullable HttpClientSecurityParameters params)Sets the optional HttpClient security parameters instance that will be used with the HttpClient instance.- Parameters:
params- the parameters, or null
-
setConnectionDisregardTLSCertificate
public void setConnectionDisregardTLSCertificate(boolean disregard)
Sets whether the responder's SSL/TLS certificate should be ignored.- Parameters:
disregard- whether the responder's SSL/TLS certificate should be ignored
-
getObjectType
public Class<org.apache.http.conn.socket.LayeredConnectionSocketFactory> getObjectType()
- Specified by:
getObjectTypein interfaceFactoryBean<org.apache.http.conn.socket.LayeredConnectionSocketFactory>- Specified by:
getObjectTypein classAbstractFactoryBean<org.apache.http.conn.socket.LayeredConnectionSocketFactory>
-
createInstance
protected org.apache.http.conn.socket.LayeredConnectionSocketFactory createInstance() throws Exception- Specified by:
createInstancein classAbstractFactoryBean<org.apache.http.conn.socket.LayeredConnectionSocketFactory>- Throws:
Exception
-
-