|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.net.ssl.TrustManagerFactory
public class TrustManagerFactory
A factory for creating trust manager objects.
Constructor Summary | |
---|---|
protected |
TrustManagerFactory(TrustManagerFactorySpi tmfSpi,
Provider provider,
String algorithm)
Creates a new trust manager factory. |
Method Summary | |
---|---|
String |
getAlgorithm()
Returns the name of this trust manager algorithm. |
static String |
getDefaultAlgorithm()
Returns the default algorithm for trust manager factories. |
static TrustManagerFactory |
getInstance(String algorithm)
Returns an instance of a trust manager factory for the given algorithm from the first provider that implements it. |
static TrustManagerFactory |
getInstance(String algorithm,
Provider provider)
Returns an instance of a trust manager factory for the given algorithm from the specified provider. |
static TrustManagerFactory |
getInstance(String algorithm,
String provider)
Returns an instance of a trust manager factory for the given algorithm from the named provider. |
Provider |
getProvider()
Returns the provider of the underlying implementation. |
TrustManager[] |
getTrustManagers()
Returns the trust managers created by this factory. |
void |
init(KeyStore store)
Initialize this instance with a key store. |
void |
init(ManagerFactoryParameters params)
Initialize this instance with some algorithm-specific parameters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected TrustManagerFactory(TrustManagerFactorySpi tmfSpi, Provider provider, String algorithm)
tmfSpi
- The underlying engine class.provider
- The provider of the engine class.algorithm
- The trust manager algorithm name.Method Detail |
---|
public static final TrustManagerFactory getInstance(String algorithm) throws NoSuchAlgorithmException
algorithm
- The name of the algorithm to get.
NoSuchAlgorithmException
- If no provider implements the given
algorithm.
IllegalArgumentException
- if algorithm
is
null
or is an empty string.public static final TrustManagerFactory getInstance(String algorithm, String provider) throws NoSuchAlgorithmException, NoSuchProviderException
algorithm
- The name of the algorithm to get.provider
- The name of the provider to get the instance from.
NoSuchAlgorithmException
- If the provider does not implement the
given algorithm.
NoSuchProviderException
- If there is no such named provider.
IllegalArgumentException
- if either algorithm
or
provider
is null
, or if
algorithm
is an empty string.public static final TrustManagerFactory getInstance(String algorithm, Provider provider) throws NoSuchAlgorithmException
algorithm
- The name of the algorithm to get.provider
- The provider to get the instance from.
NoSuchAlgorithmException
- If the provider does not implement the
given algorithm.
IllegalArgumentException
- if either algorithm
or
provider
is null
, or if
algorithm
is an empty string.public static final String getDefaultAlgorithm()
Security.getProperty(java.lang.String)
public final String getAlgorithm()
public final Provider getProvider()
public final TrustManager[] getTrustManagers()
public final void init(ManagerFactoryParameters params) throws InvalidAlgorithmParameterException
params
- The parameters.
InvalidAlgorithmParameterException
- If the supplied parameters
are inappropriate for this instance.public final void init(KeyStore store) throws KeyStoreException
store
- The key store.
KeyStoreException
- If there is a problem reading from the
key store.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |