public class TrustManagersFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<TrustManager[]>, org.springframework.beans.factory.InitializingBean
TrustManager
s.
Uses the TrustManagerFactory
to create the TrustManager
s.
TrustManager
,
TrustManagerFactory
Constructor and Description |
---|
TrustManagersFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
TrustManager[] |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setAlgorithm(String algorithm)
Sets the algorithm of the
TrustManager to use. |
void |
setKeyStore(KeyStore keyStore)
Sets the source of certificate authorities and related trust material.
|
void |
setProvider(String provider)
Sets the provider of the trust manager to use.
|
public void setProvider(String provider)
public void setAlgorithm(String algorithm)
TrustManager
to use. If this is not set, the
default is used.public void setKeyStore(KeyStore keyStore)
TrustManagerFactory.init(KeyStore)
public TrustManager[] getObject() throws Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<TrustManager[]>
Exception
public Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<TrustManager[]>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<TrustManager[]>
Copyright © 2020 Pivotal Software. All rights reserved.