Package net.i2p.i2pcontrol.security
Class KeyStoreProvider
java.lang.Object
net.i2p.i2pcontrol.security.KeyStoreProvider
public class KeyStoreProvider extends Object
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_CERTIFICATE_ALGORITHM_STRING
static String
DEFAULT_CERTIFICATE_ALIAS
static String
DEFAULT_CERTIFICATE_DOMAIN
static int
DEFAULT_CERTIFICATE_KEY_LENGTH
static String
DEFAULT_CERTIFICATE_PASSWORD
static int
DEFAULT_CERTIFICATE_VALIDITY
static String
DEFAULT_KEYSTORE_NAME
static String
DEFAULT_KEYSTORE_PASSWORD
-
Constructor Summary
Constructors Constructor Description KeyStoreProvider(String pluginDir)
-
Method Summary
Modifier and Type Method Description KeyStore
getDefaultKeyStore()
String
getKeyStoreLocation()
void
initialize()
static X509Certificate
readCert(KeyStore ks, String certAlias, String password)
-
Field Details
-
DEFAULT_CERTIFICATE_ALGORITHM_STRING
- See Also:
- Constant Field Values
-
DEFAULT_CERTIFICATE_KEY_LENGTH
public static final int DEFAULT_CERTIFICATE_KEY_LENGTH- See Also:
- Constant Field Values
-
DEFAULT_CERTIFICATE_VALIDITY
public static final int DEFAULT_CERTIFICATE_VALIDITY- See Also:
- Constant Field Values
-
DEFAULT_CERTIFICATE_DOMAIN
- See Also:
- Constant Field Values
-
DEFAULT_CERTIFICATE_ALIAS
- See Also:
- Constant Field Values
-
DEFAULT_KEYSTORE_NAME
- See Also:
- Constant Field Values
-
DEFAULT_KEYSTORE_PASSWORD
- See Also:
- Constant Field Values
-
DEFAULT_CERTIFICATE_PASSWORD
- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
initialize
public void initialize() -
readCert
- Parameters:
password
- unused- Returns:
- null on failure
-
getDefaultKeyStore
- Returns:
- null on failure
-
getKeyStoreLocation
-