Methods Summary |
---|
public final java.lang.String | getAlgorithm()Returns the name of the key management algorithm.
return algorithm;
|
public static final java.lang.String | getDefaultAlgorithm()Returns the default key manager factory algorithm name.
The default algorithm name is specified by the security property:
{@code 'ssl.KeyManagerFactory.algorithm'}.
return AccessController
.doPrivileged(new java.security.PrivilegedAction<String>() {
public String run() {
return Security.getProperty(PROPERTY_NAME);
}
});
|
public static final javax.net.ssl.KeyManagerFactory | getInstance(java.lang.String algorithm)Creates a new {@code KeyManagerFactory} instance for the specified key
management algorithm.
if (algorithm == null) {
throw new NullPointerException("algorith is null");
}
synchronized (engine) {
engine.getInstance(algorithm, null);
return new KeyManagerFactory((KeyManagerFactorySpi) engine.spi,
engine.provider, algorithm);
}
|
public static final javax.net.ssl.KeyManagerFactory | getInstance(java.lang.String algorithm, java.lang.String provider)Creates a new {@code KeyManagerFactory} instance for the specified key
management algorithm from the specified provider.
if ((provider == null) || (provider.length() == 0)) {
throw new IllegalArgumentException("Provider is null or empty");
}
Provider impProvider = Security.getProvider(provider);
if (impProvider == null) {
throw new NoSuchProviderException(provider);
}
return getInstance(algorithm, impProvider);
|
public static final javax.net.ssl.KeyManagerFactory | getInstance(java.lang.String algorithm, java.security.Provider provider)Creates a new {@code KeyManagerFactory} instance for the specified key
management algorithm from the specified provider.
if (provider == null) {
throw new IllegalArgumentException("Provider is null");
}
if (algorithm == null) {
throw new NullPointerException("algorith is null");
}
synchronized (engine) {
engine.getInstance(algorithm, provider, null);
return new KeyManagerFactory((KeyManagerFactorySpi) engine.spi,
provider, algorithm);
}
|
public final javax.net.ssl.KeyManager[] | getKeyManagers()Returns a list of key managers, one instance for each type of key in the
key store.
return spiImpl.engineGetKeyManagers();
|
public final java.security.Provider | getProvider()Returns the provider for this {@code KeyManagerFactory} instance.
return provider;
|
public final void | init(java.security.KeyStore ks, char[] password)Initializes this instance with the specified key store and password.
spiImpl.engineInit(ks, password);
|
public final void | init(javax.net.ssl.ManagerFactoryParameters spec)Initializes this instance with the specified factory parameters.
spiImpl.engineInit(spec);
|