Methods Summary |
---|
public final java.lang.String | getAlgorithm()Returns the name of this {@code TrustManagerFactory} algorithm
implementation.
return algorithm;
|
public static final java.lang.String | getDefaultAlgorithm()Returns the default algorithm name for the {@code TrustManagerFactory}. The
default algorithm name is specified by the security property
{@code 'ssl.TrustManagerFactory.algorithm'}.
return AccessController
.doPrivileged(new java.security.PrivilegedAction<String>() {
public String run() {
return Security.getProperty(PROPERTYNAME);
}
});
|
public static final javax.net.ssl.TrustManagerFactory | getInstance(java.lang.String algorithm)Creates a new {@code TrustManagerFactory} instance for the specified
trust management algorithm.
if (algorithm == null) {
throw new NullPointerException("algorithm is null");
}
synchronized (engine) {
engine.getInstance(algorithm, null);
return new TrustManagerFactory((TrustManagerFactorySpi) engine.spi,
engine.provider, algorithm);
}
|
public static final javax.net.ssl.TrustManagerFactory | getInstance(java.lang.String algorithm, java.lang.String provider)Creates a new {@code TrustManagerFactory} instance for the specified
trust management algorithm from the specified provider.
if ((provider == null) || (provider.length() == 0)) {
throw new IllegalArgumentException("Provider is null oe empty");
}
Provider impProvider = Security.getProvider(provider);
if (impProvider == null) {
throw new NoSuchProviderException(provider);
}
return getInstance(algorithm, impProvider);
|
public static final javax.net.ssl.TrustManagerFactory | getInstance(java.lang.String algorithm, java.security.Provider provider)Creates a new {@code TrustManagerFactory} instance for the specified
trust management algorithm from the specified provider.
if (provider == null) {
throw new IllegalArgumentException("Provider is null");
}
if (algorithm == null) {
throw new NullPointerException("algorithm is null");
}
synchronized (engine) {
engine.getInstance(algorithm, provider, null);
return new TrustManagerFactory((TrustManagerFactorySpi) engine.spi,
provider, algorithm);
}
|
public final java.security.Provider | getProvider()Returns the provider for this {@code TrustManagerFactory} instance.
return provider;
|
public final javax.net.ssl.TrustManager[] | getTrustManagers()Returns the list of {@code TrustManager}s with one entry for each type
of trust material.
return spiImpl.engineGetTrustManagers();
|
public final void | init(java.security.KeyStore ks)Initializes this factory instance with the specified keystore as source
of certificate authorities and trust material.
spiImpl.engineInit(ks);
|
public final void | init(javax.net.ssl.ManagerFactoryParameters spec)Initializes this factory instance with the specified provider-specific
parameters for a source of trust material.
spiImpl.engineInit(spec);
|