Skip to content

Commit

Permalink
Merge pull request #631 from /issues/629-remove-deprecated-interfaces
Browse files Browse the repository at this point in the history
Remove deprecated interfaces
  • Loading branch information
hvge authored Oct 1, 2024
2 parents d06e8dc + 1cbc0aa commit aa82d70
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 648 deletions.
4 changes: 2 additions & 2 deletions docs/Migration-from-1.8-to-1.9.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ PowerAuth Mobile SDK in version `1.9.0` provides the following improvements:

### API changes

- The following methods are now deprecated in the `PowerAuthSDK` class:
- The following methods are no longer available in the `PowerAuthSDK` class:
- Synchronous method `getEciesEncryptorForApplicationScope()` is replaced with asynchronous variant that guarantees the temporary encryption key is prepared.
- Synchronous method `getEciesEncryptorForActivationScope()` is replaced with asynchronous variant that guarantees the temporary encryption key is prepared.

Expand Down Expand Up @@ -50,7 +50,7 @@ You can use new `EciesCryptogram.toEncryptedRequest()` method to convert cryptog

### API changes

- The following methods in `PowerAuthSDK` are now deprecated:
- The following functions are no longer available in `PowerAuthSDK` class:
- Synchronous function `eciesEncryptorForApplicationScope()` is replaced with asynchronous variant that guarantees the temporary encryption key is prepared.
- Synchronous function `eciesEncryptorForActivationScope()` is replaced with asynchronous variant that guarantees the temporary encryption key is prepared.

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -195,99 +195,6 @@ public static PowerAuthAuthentication persistWithPasswordAndBiometry(@NonNull Pa
return new PowerAuthAuthentication(true, password, biometryFactorRelatedKey, overriddenPossessionKey);
}


// Commit activation (deprecated)

/**
* Construct authentication object for activation commit with password.
* @param password Password to set for new activation.
* @return Authentication object constructed for commit activation with the password.
*/
@Deprecated // 1.8.0
public static PowerAuthAuthentication commitWithPassword(@NonNull String password) {
return persistWithPassword(password);
}

/**
* Construct authentication object for activation commit with password and custom key for the possession factor.
* @param password Password to set for new activation.
* @param overriddenPossessionKey Custom possession key to set for new activation.
* @return Authentication object constructed for commit activation and password, with using custom key for the possession factor.
*/
@Deprecated // 1.8.0
public static PowerAuthAuthentication commitWithPassword(@NonNull String password, @NonNull byte[] overriddenPossessionKey) {
return persistWithPassword(password, overriddenPossessionKey);
}

/**
* Construct authentication object for activation commit with password and with biometry.
* @param password Password to set for new activation.
* @param biometryFactorRelatedKey Biometry factor related key to set for new activation.
* @return Authentication object constructed for commit activation with password and biometry.
*/
@Deprecated // 1.8.0
public static PowerAuthAuthentication commitWithPasswordAndBiometry(@NonNull String password, @NonNull byte[] biometryFactorRelatedKey) {
return persistWithPasswordAndBiometry(password, biometryFactorRelatedKey);
}

/**
* Construct authentication object for activation commit with password, biometry and with custom key for the possession factor.
* @param password Password to set for new activation.
* @param biometryFactorRelatedKey Biometry factor related key to set for new activation.
* @param overriddenPossessionKey Custom possession key to set for new activation.
* @return Authentication object constructed for commit activation with password, with using custom key for the possession factor.
*/
@Deprecated // 1.8.0
public static PowerAuthAuthentication commitWithPasswordAndBiometry(@NonNull String password, @NonNull byte[] biometryFactorRelatedKey, @NonNull byte[] overriddenPossessionKey) {
return persistWithPasswordAndBiometry(password, biometryFactorRelatedKey, overriddenPossessionKey);
}

// core/Password variants

/**
* Construct authentication object for activation commit with password.
* @param password Password to set for new activation.
* @return Authentication object constructed for commit activation with the password.
*/
@Deprecated // 1.8.0
public static PowerAuthAuthentication commitWithPassword(@NonNull Password password) {
return persistWithPassword(password);
}

/**
* Construct authentication object for activation commit with password and custom key for the possession factor.
* @param password Password to set for new activation.
* @param overriddenPossessionKey Custom possession key to set for new activation.
* @return Authentication object constructed for commit activation and password, with using custom key for the possession factor.
*/
@Deprecated // 1.8.0
public static PowerAuthAuthentication commitWithPassword(@NonNull Password password, @NonNull byte[] overriddenPossessionKey) {
return persistWithPassword(password, overriddenPossessionKey);
}

/**
* Construct authentication object for activation commit with password and with biometry.
* @param password Password to set for new activation.
* @param biometryFactorRelatedKey Biometry factor related key to set for new activation.
* @return Authentication object constructed for commit activation with password and biometry.
*/
@Deprecated // 1.8.0
public static PowerAuthAuthentication commitWithPasswordAndBiometry(@NonNull Password password, @NonNull byte[] biometryFactorRelatedKey) {
return persistWithPasswordAndBiometry(password, biometryFactorRelatedKey);
}

/**
* Construct authentication object for activation commit with password, biometry and with custom key for the possession factor.
* @param password Password to set for new activation.
* @param biometryFactorRelatedKey Biometry factor related key to set for new activation.
* @param overriddenPossessionKey Custom possession key to set for new activation.
* @return Authentication object constructed for commit activation with password, with using custom key for the possession factor.
*/
@Deprecated // 1.8.0
public static PowerAuthAuthentication commitWithPasswordAndBiometry(@NonNull Password password, @NonNull byte[] biometryFactorRelatedKey, @NonNull byte[] overriddenPossessionKey) {
return persistWithPasswordAndBiometry(password, biometryFactorRelatedKey, overriddenPossessionKey);
}

// Authenticate

/**
Expand Down
Loading

0 comments on commit aa82d70

Please sign in to comment.