Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Besedin2008-03-14 14:45:33 +0000
committerOleg Besedin2008-03-14 14:45:33 +0000
commitfd6da0c9ab73dfca72e89eb6eae1c91e350e3fa5 (patch)
treec82496b9edf980f53b44207c82e2af98c182265c /bundles/org.eclipse.equinox.security.win32.x86
parentf0a5fb1253575250ea4b43a2cc549fd2d8f5d43c (diff)
downloadrt.equinox.bundles-fd6da0c9ab73dfca72e89eb6eae1c91e350e3fa5.tar.gz
rt.equinox.bundles-fd6da0c9ab73dfca72e89eb6eae1c91e350e3fa5.tar.xz
rt.equinox.bundles-fd6da0c9ab73dfca72e89eb6eae1c91e350e3fa5.zip
Bug 222074 Streamline password managementv20080316
Diffstat (limited to 'bundles/org.eclipse.equinox.security.win32.x86')
-rw-r--r--bundles/org.eclipse.equinox.security.win32.x86/src/org/eclipse/equinox/internal/security/win32/WinCrypto.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/bundles/org.eclipse.equinox.security.win32.x86/src/org/eclipse/equinox/internal/security/win32/WinCrypto.java b/bundles/org.eclipse.equinox.security.win32.x86/src/org/eclipse/equinox/internal/security/win32/WinCrypto.java
index 724fe80c2..bc8811e2a 100644
--- a/bundles/org.eclipse.equinox.security.win32.x86/src/org/eclipse/equinox/internal/security/win32/WinCrypto.java
+++ b/bundles/org.eclipse.equinox.security.win32.x86/src/org/eclipse/equinox/internal/security/win32/WinCrypto.java
@@ -47,7 +47,7 @@ public class WinCrypto extends PasswordProvider {
*/
private final static int PASSWORD_LENGTH = 250;
- public PBEKeySpec login(IPreferencesContainer container) {
+ public PBEKeySpec getPassword(IPreferencesContainer container, int passwordType) {
byte[] encryptedPassord = getEncryptedPassword(container);
if (encryptedPassord != null) {
byte[] decryptedPassword = windecrypt(encryptedPassord);
@@ -128,7 +128,7 @@ public class WinCrypto extends PasswordProvider {
return true;
}
- public boolean changePassword(Exception e, IPreferencesContainer container) {
+ public boolean retryOnError(Exception e, IPreferencesContainer container) {
// It would be rather dangerous to allow this password to be changed
// as it would permanently trash all entries in the secure storage.
// Rather applications using get...() should handle exceptions and offer to overwrite
@@ -136,8 +136,4 @@ public class WinCrypto extends PasswordProvider {
return false;
}
- public void logout(IPreferencesContainer container) {
- // nothing to do
- }
-
}

Back to the top