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 StringDEFAULT_CERTIFICATE_ALGORITHM_STRINGstatic StringDEFAULT_CERTIFICATE_ALIASstatic StringDEFAULT_CERTIFICATE_DOMAINstatic intDEFAULT_CERTIFICATE_KEY_LENGTHstatic StringDEFAULT_CERTIFICATE_PASSWORDstatic intDEFAULT_CERTIFICATE_VALIDITYstatic StringDEFAULT_KEYSTORE_NAMEstatic StringDEFAULT_KEYSTORE_PASSWORD -
Constructor Summary
Constructors Constructor Description KeyStoreProvider(String pluginDir) -
Method Summary
Modifier and Type Method Description KeyStoregetDefaultKeyStore()StringgetKeyStoreLocation()voidinitialize()static X509CertificatereadCert(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
-