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 of
LayeredConnectionSocketFactory
for use in HttpClient
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
Whether the responder's SSL/TLS certificate should be ignored.private HttpClientSecurityParameters
The optional HttpClient security parameters instance that will be used with the HttpClient instance.private TrustEngine<?>
The 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.http.conn.socket.LayeredConnectionSocketFactory
Class<org.apache.http.conn.socket.LayeredConnectionSocketFactory>
void
setConnectionDisregardTLSCertificate
(boolean disregard) Sets whether the responder's SSL/TLS certificate should be ignored.void
Sets the optional HttpClient security parameters instance that will be used with the HttpClient instance.void
setTLSTrustEngine
(TrustEngine<? super X509Credential> engine) Deprecated.use setHttpClientSecurityParameters insteadMethods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Field Details
-
tlsTrustEngine
The optional trust engine used in evaluating server TLS credentials. -
httpClientSecurityParameters
The optional HttpClient security parameters instance that will be used with the HttpClient instance. -
connectionDisregardTLSCertificate
private boolean connectionDisregardTLSCertificateWhether the responder's SSL/TLS certificate should be ignored.
-
-
Constructor Details
-
TLSSocketFactoryFactoryBean
public TLSSocketFactoryFactoryBean()
-
-
Method Details
-
setTLSTrustEngine
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
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
- Specified by:
getObjectType
in interfaceFactoryBean<org.apache.http.conn.socket.LayeredConnectionSocketFactory>
- Specified by:
getObjectType
in classAbstractFactoryBean<org.apache.http.conn.socket.LayeredConnectionSocketFactory>
-
createInstance
protected org.apache.http.conn.socket.LayeredConnectionSocketFactory createInstance() throws Exception- Specified by:
createInstance
in classAbstractFactoryBean<org.apache.http.conn.socket.LayeredConnectionSocketFactory>
- Throws:
Exception
-