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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyStore
getDefaultKeyStore()
String
getKeyStoreLocation()
void
initialize()
static X509Certificate
readCert(KeyStore ks, String certAlias, String password)
-
-
-
Field Detail
-
DEFAULT_CERTIFICATE_ALGORITHM_STRING
public static final String 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
public static final String DEFAULT_CERTIFICATE_DOMAIN
- See Also:
- Constant Field Values
-
DEFAULT_CERTIFICATE_ALIAS
public static final String DEFAULT_CERTIFICATE_ALIAS
- See Also:
- Constant Field Values
-
DEFAULT_KEYSTORE_NAME
public static final String DEFAULT_KEYSTORE_NAME
- See Also:
- Constant Field Values
-
DEFAULT_KEYSTORE_PASSWORD
public static final String DEFAULT_KEYSTORE_PASSWORD
- See Also:
- Constant Field Values
-
DEFAULT_CERTIFICATE_PASSWORD
public static final String DEFAULT_CERTIFICATE_PASSWORD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
KeyStoreProvider
public KeyStoreProvider(String pluginDir)
-
-
Method Detail
-
initialize
public void initialize()
-
readCert
public static X509Certificate readCert(KeyStore ks, String certAlias, String password)
- Parameters:
password
- unused- Returns:
- null on failure
-
getDefaultKeyStore
public KeyStore getDefaultKeyStore()
- Returns:
- null on failure
-
getKeyStoreLocation
public String getKeyStoreLocation()
-
-