Class MacSystemKeychainAccess

java.lang.Object
org.cryptomator.macos.keychain.MacSystemKeychainAccess
All Implemented Interfaces:
org.cryptomator.integrations.keychain.KeychainAccessProvider

@Priority(1000) @OperatingSystem(MAC) public class MacSystemKeychainAccess extends Object implements org.cryptomator.integrations.keychain.KeychainAccessProvider
  • Constructor Details

    • MacSystemKeychainAccess

      public MacSystemKeychainAccess()
  • Method Details

    • displayName

      public String displayName()
      Specified by:
      displayName in interface org.cryptomator.integrations.keychain.KeychainAccessProvider
    • storePassphrase

      public void storePassphrase(String key, String displayName, CharSequence passphrase) throws org.cryptomator.integrations.keychain.KeychainAccessException
      Specified by:
      storePassphrase in interface org.cryptomator.integrations.keychain.KeychainAccessProvider
      Throws:
      org.cryptomator.integrations.keychain.KeychainAccessException
    • loadPassphrase

      public char[] loadPassphrase(String key)
      Specified by:
      loadPassphrase in interface org.cryptomator.integrations.keychain.KeychainAccessProvider
    • isSupported

      public boolean isSupported()
      Specified by:
      isSupported in interface org.cryptomator.integrations.keychain.KeychainAccessProvider
    • isLocked

      public boolean isLocked()
      Specified by:
      isLocked in interface org.cryptomator.integrations.keychain.KeychainAccessProvider
    • deletePassphrase

      public void deletePassphrase(String key) throws org.cryptomator.integrations.keychain.KeychainAccessException
      Specified by:
      deletePassphrase in interface org.cryptomator.integrations.keychain.KeychainAccessProvider
      Throws:
      org.cryptomator.integrations.keychain.KeychainAccessException
    • changePassphrase

      public void changePassphrase(String key, String displayName, CharSequence passphrase) throws org.cryptomator.integrations.keychain.KeychainAccessException
      Specified by:
      changePassphrase in interface org.cryptomator.integrations.keychain.KeychainAccessProvider
      Throws:
      org.cryptomator.integrations.keychain.KeychainAccessException