public class TrustManagerFactoryFactoryBean
extends java.lang.Object
TrustManagerFactory
.
This object holds the configurable properties of a trust manager factory
and uses them to create and load a TrustManagerFactory
instance.
Constructor and Description |
---|
TrustManagerFactoryFactoryBean() |
Modifier and Type | Method and Description |
---|---|
javax.net.ssl.TrustManagerFactory |
createTrustManagerFactory()
Creates a
TrustManagerFactory using the receiver's configuration. |
java.lang.String |
getAlgorithm()
Gets the algorithm name for the trust manager factory.
|
java.lang.String |
getProvider()
Gets the JSSE provider name for the trust manager factory.
|
void |
setAlgorithm(java.lang.String algorithm)
Sets the algorithm name for the trust manager factory.
|
void |
setProvider(java.lang.String provider)
Sets the JSSE provider name for the trust manager factory.
|
public javax.net.ssl.TrustManagerFactory createTrustManagerFactory() throws java.security.NoSuchProviderException, java.security.NoSuchAlgorithmException
TrustManagerFactory
using the receiver's configuration.java.security.NoSuchProviderException
- if the provider specified by
setProvider(String)
is not known to the platformjava.security.NoSuchAlgorithmException
- if the algorithm specified by
setAlgorithm(String)
is not known to the specified provider
(or to the default platform provider if no provider is specified)public java.lang.String getAlgorithm()
PKIX
); the default algorithm
(obtained from TrustManagerFactory.getDefaultAlgorithm()
)
is returned if no algorithm has been configuredpublic void setAlgorithm(java.lang.String algorithm)
algorithm
- an algorithm name, which must be recognized by the
provider specified by setProvider(String)
or by the
platform's default provider if no provider is specified.public java.lang.String getProvider()
public void setProvider(java.lang.String provider)
provider
- name of the JSSE provider to utilize in creating the
trust manager factoryCopyright © 2010 - 2020 Adobe. All Rights Reserved