Package net.sourceforge.jnlp.security
Class KeystorePasswordAttempter
- java.lang.Object
-
- net.sourceforge.jnlp.security.KeystorePasswordAttempter
-
class KeystorePasswordAttempter extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classKeystorePasswordAttempter.KeystoreOperation(package private) static classKeystorePasswordAttempter.SavedPassword
-
Field Summary
Fields Modifier and Type Field Description private static char[]DEFAULT_PASSWORD(package private) static KeystorePasswordAttempterINSTANCEprivate static LoggerLOGprivate java.util.List<KeystorePasswordAttempter.SavedPassword>passesprivate java.util.Map<java.lang.String,KeystorePasswordAttempter.SavedPassword>successfulPerKeystore
-
Constructor Summary
Constructors Modifier Constructor Description privateKeystorePasswordAttempter(KeystorePasswordAttempter.SavedPassword... initialPasswords)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddPnewPassword(java.lang.String s, java.util.List<KeystorePasswordAttempter.SavedPassword> localPases)private voidfinish(java.lang.Exception ex)private static char[]getTrustedCertsPassword()(package private) java.security.KeyunlockKeystore(KeystorePasswordAttempter.KeystoreOperation operation)
-
-
-
Field Detail
-
LOG
private static final Logger LOG
-
DEFAULT_PASSWORD
private static final char[] DEFAULT_PASSWORD
-
INSTANCE
static final KeystorePasswordAttempter INSTANCE
-
passes
private final java.util.List<KeystorePasswordAttempter.SavedPassword> passes
-
successfulPerKeystore
private final java.util.Map<java.lang.String,KeystorePasswordAttempter.SavedPassword> successfulPerKeystore
-
-
Constructor Detail
-
KeystorePasswordAttempter
private KeystorePasswordAttempter(KeystorePasswordAttempter.SavedPassword... initialPasswords)
-
-
Method Detail
-
getTrustedCertsPassword
private static char[] getTrustedCertsPassword()
-
unlockKeystore
java.security.Key unlockKeystore(KeystorePasswordAttempter.KeystoreOperation operation) throws java.security.KeyStoreException, java.security.NoSuchAlgorithmException, java.security.UnrecoverableKeyException, java.io.IOException, java.security.cert.CertificateException
- Throws:
java.security.KeyStoreExceptionjava.security.NoSuchAlgorithmExceptionjava.security.UnrecoverableKeyExceptionjava.io.IOExceptionjava.security.cert.CertificateException
-
addPnewPassword
private void addPnewPassword(java.lang.String s, java.util.List<KeystorePasswordAttempter.SavedPassword> localPases)
-
finish
private void finish(java.lang.Exception ex) throws java.security.KeyStoreException, java.security.NoSuchAlgorithmException, java.security.UnrecoverableKeyException, java.io.IOException, java.security.cert.CertificateException- Throws:
java.security.KeyStoreExceptionjava.security.NoSuchAlgorithmExceptionjava.security.UnrecoverableKeyExceptionjava.io.IOExceptionjava.security.cert.CertificateException
-
-