// Signature format: 4.0
package androidx.security.crypto {

  @Deprecated public final class EncryptedFile {
    method @Deprecated public java.io.FileInputStream openFileInput() throws java.io.FileNotFoundException, java.security.GeneralSecurityException, java.io.IOException;
    method @Deprecated public java.io.FileOutputStream openFileOutput() throws java.security.GeneralSecurityException, java.io.IOException;
  }

  @Deprecated public static final class EncryptedFile.Builder {
    ctor @Deprecated public EncryptedFile.Builder(android.content.Context, java.io.File, androidx.security.crypto.MasterKey, androidx.security.crypto.EncryptedFile.FileEncryptionScheme);
    ctor @Deprecated public EncryptedFile.Builder(java.io.File, android.content.Context, String, androidx.security.crypto.EncryptedFile.FileEncryptionScheme);
    method @Deprecated public androidx.security.crypto.EncryptedFile build() throws java.security.GeneralSecurityException, java.io.IOException;
    method @Deprecated public androidx.security.crypto.EncryptedFile.Builder setKeysetAlias(String);
    method @Deprecated public androidx.security.crypto.EncryptedFile.Builder setKeysetPrefName(String);
  }

  @Deprecated public enum EncryptedFile.FileEncryptionScheme {
    enum_constant @Deprecated public static final androidx.security.crypto.EncryptedFile.FileEncryptionScheme AES256_GCM_HKDF_4KB;
  }

  @Deprecated public final class EncryptedSharedPreferences implements android.content.SharedPreferences {
    method @Deprecated public boolean contains(String?);
    method @Deprecated public static android.content.SharedPreferences create(android.content.Context, String, androidx.security.crypto.MasterKey, androidx.security.crypto.EncryptedSharedPreferences.PrefKeyEncryptionScheme, androidx.security.crypto.EncryptedSharedPreferences.PrefValueEncryptionScheme) throws java.security.GeneralSecurityException, java.io.IOException;
    method @Deprecated public static android.content.SharedPreferences create(String, String, android.content.Context, androidx.security.crypto.EncryptedSharedPreferences.PrefKeyEncryptionScheme, androidx.security.crypto.EncryptedSharedPreferences.PrefValueEncryptionScheme) throws java.security.GeneralSecurityException, java.io.IOException;
    method @Deprecated public android.content.SharedPreferences.Editor edit();
    method @Deprecated public java.util.Map<java.lang.String!,?> getAll();
    method @Deprecated public boolean getBoolean(String?, boolean);
    method @Deprecated public float getFloat(String?, float);
    method @Deprecated public int getInt(String?, int);
    method @Deprecated public long getLong(String?, long);
    method @Deprecated public String? getString(String?, String?);
    method @Deprecated public java.util.Set<java.lang.String!>? getStringSet(String?, java.util.Set<java.lang.String!>?);
    method @Deprecated public void registerOnSharedPreferenceChangeListener(android.content.SharedPreferences.OnSharedPreferenceChangeListener);
    method @Deprecated public void unregisterOnSharedPreferenceChangeListener(android.content.SharedPreferences.OnSharedPreferenceChangeListener);
  }

  @Deprecated public enum EncryptedSharedPreferences.PrefKeyEncryptionScheme {
    enum_constant @Deprecated public static final androidx.security.crypto.EncryptedSharedPreferences.PrefKeyEncryptionScheme AES256_SIV;
  }

  @Deprecated public enum EncryptedSharedPreferences.PrefValueEncryptionScheme {
    enum_constant @Deprecated public static final androidx.security.crypto.EncryptedSharedPreferences.PrefValueEncryptionScheme AES256_GCM;
  }

  @Deprecated public final class MasterKey {
    method @Deprecated public static int getDefaultAuthenticationValidityDurationSeconds();
    method @Deprecated public int getUserAuthenticationValidityDurationSeconds();
    method @Deprecated public boolean isKeyStoreBacked();
    method @Deprecated public boolean isStrongBoxBacked();
    method @Deprecated public boolean isUserAuthenticationRequired();
    field @Deprecated public static final int DEFAULT_AES_GCM_MASTER_KEY_SIZE = 256; // 0x100
    field @Deprecated public static final String DEFAULT_MASTER_KEY_ALIAS = "_androidx_security_master_key_";
  }

  @Deprecated public static final class MasterKey.Builder {
    ctor @Deprecated public MasterKey.Builder(android.content.Context);
    ctor @Deprecated public MasterKey.Builder(android.content.Context, String);
    method @Deprecated public androidx.security.crypto.MasterKey build() throws java.security.GeneralSecurityException, java.io.IOException;
    method @Deprecated @RequiresApi(android.os.Build.VERSION_CODES.M) public androidx.security.crypto.MasterKey.Builder setKeyGenParameterSpec(android.security.keystore.KeyGenParameterSpec);
    method @Deprecated public androidx.security.crypto.MasterKey.Builder setKeyScheme(androidx.security.crypto.MasterKey.KeyScheme);
    method @Deprecated public androidx.security.crypto.MasterKey.Builder setRequestStrongBoxBacked(boolean);
    method @Deprecated public androidx.security.crypto.MasterKey.Builder setUserAuthenticationRequired(boolean);
    method @Deprecated public androidx.security.crypto.MasterKey.Builder setUserAuthenticationRequired(boolean, @IntRange(from=1) int);
  }

  @Deprecated public enum MasterKey.KeyScheme {
    enum_constant @Deprecated public static final androidx.security.crypto.MasterKey.KeyScheme AES256_GCM;
  }

  @Deprecated @RequiresApi(android.os.Build.VERSION_CODES.M) public final class MasterKeys {
    method @Deprecated public static String getOrCreate(android.security.keystore.KeyGenParameterSpec) throws java.security.GeneralSecurityException, java.io.IOException;
    field @Deprecated public static final android.security.keystore.KeyGenParameterSpec AES256_GCM_SPEC;
  }

}

