public class TrustManagerFactory extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
TrustManagerFactory(TrustManagerFactorySpi tmfSpi,
java.security.Provider provider,
java.lang.String algorithm)
Creates a new trust manager factory.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithm()
Returns the name of this trust manager algorithm.
|
static java.lang.String |
getDefaultAlgorithm()
Returns the default algorithm for trust manager factories.
|
static TrustManagerFactory |
getInstance(java.lang.String algorithm)
Returns an instance of a trust manager factory for the given algorithm from
the first provider that implements it.
|
static TrustManagerFactory |
getInstance(java.lang.String algorithm,
java.security.Provider provider)
Returns an instance of a trust manager factory for the given algorithm from
the specified provider.
|
static TrustManagerFactory |
getInstance(java.lang.String algorithm,
java.lang.String provider)
Returns an instance of a trust manager factory for the given algorithm from
the named provider.
|
java.security.Provider |
getProvider()
Returns the provider of the underlying implementation.
|
TrustManager[] |
getTrustManagers()
Returns the trust managers created by this factory.
|
void |
init(java.security.KeyStore store)
Initialize this instance with a key store.
|
void |
init(ManagerFactoryParameters params)
Initialize this instance with some algorithm-specific parameters.
|
protected TrustManagerFactory(TrustManagerFactorySpi tmfSpi, java.security.Provider provider, java.lang.String algorithm)
tmfSpi - The underlying engine class.provider - The provider of the engine class.algorithm - The trust manager algorithm name.public static final TrustManagerFactory getInstance(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException
algorithm - The name of the algorithm to get.java.security.NoSuchAlgorithmException - If no provider implements the given
algorithm.java.lang.IllegalArgumentException - if algorithm is
null or is an empty string.public static final TrustManagerFactory getInstance(java.lang.String algorithm, java.lang.String provider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
algorithm - The name of the algorithm to get.provider - The name of the provider to get the instance from.java.security.NoSuchAlgorithmException - If the provider does not implement the
given algorithm.java.security.NoSuchProviderException - If there is no such named provider.java.lang.IllegalArgumentException - if either algorithm or
provider is null, or if
algorithm is an empty string.public static final TrustManagerFactory getInstance(java.lang.String algorithm, java.security.Provider provider) throws java.security.NoSuchAlgorithmException
algorithm - The name of the algorithm to get.provider - The provider to get the instance from.java.security.NoSuchAlgorithmException - If the provider does not implement the
given algorithm.java.lang.IllegalArgumentException - if either algorithm or
provider is null, or if
algorithm is an empty string.public static final java.lang.String getDefaultAlgorithm()
Security.getProperty(java.lang.String)public final java.lang.String getAlgorithm()
public final java.security.Provider getProvider()
public final TrustManager[] getTrustManagers()
public final void init(ManagerFactoryParameters params) throws java.security.InvalidAlgorithmParameterException
params - The parameters.java.security.InvalidAlgorithmParameterException - If the supplied parameters
are inappropriate for this instance.public final void init(java.security.KeyStore store) throws java.security.KeyStoreException
store - The key store.java.security.KeyStoreException - If there is a problem reading from the
key store.