
org.cryptomator.windows.keychain.WindowsHelloKeychainAccess 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 WINDOWS_HELLO_KEYCHAIN_PATHS_PROPERTY} with the paths seperated with the character defined in the JVM property path.separator.
*/
@Priority(1001)
@OperatingSystem(OperatingSystem.Value.WINDOWS)
public final class WindowsHelloKeychainAccess extends WindowsKeychainAccessBase {
private static final String WINDOWS_HELLO_KEYCHAIN_PATHS_PROPERTY = "cryptomator.integrationsWin.windowsHelloKeychainPaths";
private static final String WINDOWS_HELLO_KEY_ID_PROPERTY = "cryptomator.integrationsWin.windowsHelloKeyId";
@SuppressWarnings("unused") // default constructor required by ServiceLoader
public WindowsHelloKeychainAccess() {
super(new FileKeychain(WINDOWS_HELLO_KEYCHAIN_PATHS_PROPERTY),
new WindowsHello(System.getProperty(WINDOWS_HELLO_KEY_ID_PROPERTY, "org.cryptomator.integrations-win")));
}
@Override
public String displayName() {
return Localization.get().getString("org.cryptomator.windows.keychain.displayWindowsHelloName");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy