
org.cryptomator.windows.keychain.WindowsProtectedKeychainAccess Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of integrations-win Show documentation
Show all versions of integrations-win Show documentation
Provides optional Windows services used by Cryptomator
The newest version!
package org.cryptomator.windows.keychain;
import org.cryptomator.integrations.common.OperatingSystem;
import org.cryptomator.integrations.common.Priority;
import org.cryptomator.integrations.keychain.KeychainAccessProvider;
import org.cryptomator.windows.common.Localization;
/**
* Windows implementation for the {@link KeychainAccessProvider} based on the data protection API.
* The storage locations to check for encrypted data can be set with the JVM property {@value KEYCHAIN_PATHS_PROPERTY} with the paths seperated with the character defined in the JVM property path.separator.
*/
@Priority(1000)
@OperatingSystem(OperatingSystem.Value.WINDOWS)
public final class WindowsProtectedKeychainAccess extends WindowsKeychainAccessBase {
private static final String KEYCHAIN_PATHS_PROPERTY = "cryptomator.integrationsWin.keychainPaths";
//no-arg constructuor required for ServiceLoader
public WindowsProtectedKeychainAccess() {
super(new FileKeychain(KEYCHAIN_PATHS_PROPERTY),new WinDataProtection());
}
@Override
public String displayName() {
return Localization.get().getString("org.cryptomator.windows.keychain.displayName");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy