| Package | Description | 
|---|---|
| java.security | Provides the classes and interfaces for the security framework. | 
| javax.net.ssl | Provides classes for the secure socket package. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract Key | KeyStoreSpi. engineGetKey(String alias,
            char[] password)Returns the key associated with the given alias, using the given
 password to recover it. | 
| Key | KeyStore. getKey(String alias,
      char[] password)Returns the key associated with the given alias, using the given
 password to recover it. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract void | KeyManagerFactorySpi. engineInit(KeyStore ks,
          char[] password)Initializes this factory with a source of key material. | 
| void | KeyManagerFactory. init(KeyStore ks,
    char[] password)Initializes this factory with a source of key material. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.