|
|||||||||
| Home >> All >> javax >> net >> [ ssl overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.net.ssl
Class KeyManagerFactory

java.lang.Objectjavax.net.ssl.KeyManagerFactory
- public class KeyManagerFactory
- extends java.lang.Object
A class that creates key manager implementations based on a requested algorithm.
| Field Summary | |
private java.lang.String |
algorithm
The name of this algorithm. |
private static java.lang.String |
DEFAULT_ALGORITHM
The system default trust manager algorithm. |
private static java.lang.String |
KEY_MANAGER_FACTORY
The service name for key manager factories. |
private KeyManagerFactorySpi |
kmfSpi
The underlying engine. |
private java.security.Provider |
provider
The provider of this implementation. |
| Constructor Summary | |
protected |
KeyManagerFactory(KeyManagerFactorySpi kmfSpi,
java.security.Provider provider,
java.lang.String algorithm)
Create a new key manager factory. |
| Method Summary | |
java.lang.String |
getAlgorithm()
Returns the name of this key manager factory algorithm. |
static java.lang.String |
getDefaultAlgorithm()
Get the default algorithm name. |
static KeyManagerFactory |
getInstance(java.lang.String algorithm)
Get an instance of the named key manager factory, from the first provider that implements it. |
static KeyManagerFactory |
getInstance(java.lang.String algorithm,
java.security.Provider provider)
Get an instance of the named key manager factory, from the given provider. |
static KeyManagerFactory |
getInstance(java.lang.String algorithm,
java.lang.String provider)
Get an instance of the named key manager factory, from the named provider. |
KeyManager[] |
getKeyManagers()
Get an array of key managers appropriate for this algorithm, with the most preferred manager first. |
java.security.Provider |
getProvider()
Returns the provider of this implementation. |
void |
init(java.security.KeyStore store,
char[] passwd)
Initialize this instance with a key store and a password for private key entries. |
void |
init(ManagerFactoryParameters params)
Initialize this instance with an implementation-dependent parameter object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
KEY_MANAGER_FACTORY
private static final java.lang.String KEY_MANAGER_FACTORY
- The service name for key manager factories.
- See Also:
- Constant Field Values
DEFAULT_ALGORITHM
private static final java.lang.String DEFAULT_ALGORITHM
- The system default trust manager algorithm.
- See Also:
- Constant Field Values
kmfSpi
private final KeyManagerFactorySpi kmfSpi
- The underlying engine.
provider
private final java.security.Provider provider
- The provider of this implementation.
algorithm
private final java.lang.String algorithm
- The name of this algorithm.
| Constructor Detail |
KeyManagerFactory
protected KeyManagerFactory(KeyManagerFactorySpi kmfSpi, java.security.Provider provider, java.lang.String algorithm)
- Create a new key manager factory.
| Method Detail |
getDefaultAlgorithm
public static final java.lang.String getDefaultAlgorithm()
- Get the default algorithm name. This value may be specified at
run-time via the security property
"ssl.KeyManagerFactory.algorithm". If this property is
not specified, this method returns "JessieX509".
getInstance
public static final KeyManagerFactory getInstance(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException
- Get an instance of the named key manager factory, from the first
provider that implements it.
getInstance
public static final KeyManagerFactory getInstance(java.lang.String algorithm, java.lang.String provider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
- Get an instance of the named key manager factory, from the named
provider.
getInstance
public static final KeyManagerFactory getInstance(java.lang.String algorithm, java.security.Provider provider) throws java.security.NoSuchAlgorithmException
- Get an instance of the named key manager factory, from the given
provider.
getAlgorithm
public final java.lang.String getAlgorithm()
- Returns the name of this key manager factory algorithm.
getKeyManagers
public final KeyManager[] getKeyManagers()
- Get an array of key managers appropriate for this algorithm, with
the most preferred manager first.
getProvider
public final java.security.Provider getProvider()
- Returns the provider of this implementation.
init
public final void init(ManagerFactoryParameters params) throws java.security.InvalidAlgorithmParameterException
- Initialize this instance with an implementation-dependent
parameter object.
init
public final void init(java.security.KeyStore store, char[] passwd) throws java.security.KeyStoreException, java.security.NoSuchAlgorithmException, java.security.UnrecoverableKeyException
- Initialize this instance with a key store and a password for
private key entries.
|
|||||||||
| Home >> All >> javax >> net >> [ ssl overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
javax.net.ssl.KeyManagerFactory