Skip to content

Commit

Permalink
Use "biometrics" instead of "biometry"
Browse files Browse the repository at this point in the history
  • Loading branch information
hvge committed Sep 21, 2023
1 parent 2c30a39 commit beacf1b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions docs/PowerAuth-SDK-for-Android.md
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ This code has created activation with two factors: possession (key stored using
<!-- begin codetabs Kotlin Java -->
```kotlin
// Persist activation using given PIN and ad-hoc generated biometric related key
powerAuthSDK.persistActivation(context, fragment, "Enable Biometric Authentication", "To enable biometric authentication, use the biometric sensor on your device.", pin, object: IPersistActivationWithBiometryListener {
powerAuthSDK.persistActivation(context, fragment, "Enable Biometric Authentication", "To enable biometric authentication, use the biometric sensor on your device.", pin, object: IPersistActivationWithBiometricsListener {
override fun onBiometricDialogCancelled() {
// Biometric enrolment cancelled by user
}
Expand All @@ -613,7 +613,7 @@ powerAuthSDK.persistActivation(context, fragment, "Enable Biometric Authenticati
```
```java
// Persist activation using given PIN and ad-hoc generated biometric related key
powerAuthSDK.persistActivation(context, fragment, "Enable Biometric Authentication", "To enable biometric authentication, use the biometric sensor on your device.", pin, new IPersistActivationWithBiometryListener() {
powerAuthSDK.persistActivation(context, fragment, "Enable Biometric Authentication", "To enable biometric authentication, use the biometric sensor on your device.", pin, new IPersistActivationWithBiometricsListener() {
@Override
public void onBiometricDialogCancelled() {
// Biometric enrolment cancelled by user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

/**
* Interface used as a callback for persisting the activation with biometric authentication.
* @deprecated Use {@link IPersistActivationWithBiometryListener} as a replacement.
* @deprecated Use {@link IPersistActivationWithBiometricsListener} as a replacement.
*/
@Deprecated // 1.8.0
public interface ICommitActivationWithBiometryListener extends IPersistActivationWithBiometryListener {
public interface ICommitActivationWithBiometryListener extends IPersistActivationWithBiometricsListener {
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Interface used as a callback for persisting the activation with biometric authentication.
*/
public interface IPersistActivationWithBiometryListener {
public interface IPersistActivationWithBiometricsListener {
/**
* Biometric dialog was cancelled.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -940,8 +940,8 @@ public ICancelable persistActivation(
@NonNull String title,
@NonNull String description,
@NonNull final String password,
final @NonNull IPersistActivationWithBiometryListener callback) {
return persistActivationWithBiometryImpl(context, FragmentHelper.from(fragmentActivity), title, description, new Password(password), callback);
final @NonNull IPersistActivationWithBiometricsListener callback) {
return persistActivationWithBiometricsImpl(context, FragmentHelper.from(fragmentActivity), title, description, new Password(password), callback);
}

/**
Expand All @@ -963,8 +963,8 @@ public ICancelable persistActivation(
@NonNull String title,
@NonNull String description,
@NonNull final Password password,
final @NonNull IPersistActivationWithBiometryListener callback) {
return persistActivationWithBiometryImpl(context, FragmentHelper.from(fragmentActivity), title, description, password, callback);
final @NonNull IPersistActivationWithBiometricsListener callback) {
return persistActivationWithBiometricsImpl(context, FragmentHelper.from(fragmentActivity), title, description, password, callback);
}

/**
Expand All @@ -986,8 +986,8 @@ public ICancelable persistActivation(
@NonNull String title,
@NonNull String description,
@NonNull final String password,
final @NonNull IPersistActivationWithBiometryListener callback) {
return persistActivationWithBiometryImpl(context, FragmentHelper.from(fragment), title, description, new Password(password), callback);
final @NonNull IPersistActivationWithBiometricsListener callback) {
return persistActivationWithBiometricsImpl(context, FragmentHelper.from(fragment), title, description, new Password(password), callback);
}

/**
Expand All @@ -1009,8 +1009,8 @@ public ICancelable persistActivation(
@NonNull String title,
@NonNull String description,
@NonNull final Password password,
final @NonNull IPersistActivationWithBiometryListener callback) {
return persistActivationWithBiometryImpl(context, FragmentHelper.from(fragment), title, description, password, callback);
final @NonNull IPersistActivationWithBiometricsListener callback) {
return persistActivationWithBiometricsImpl(context, FragmentHelper.from(fragment), title, description, password, callback);
}

/**
Expand All @@ -1026,13 +1026,13 @@ public ICancelable persistActivation(
*/
@UiThread
@NonNull
private ICancelable persistActivationWithBiometryImpl(
private ICancelable persistActivationWithBiometricsImpl(
final @NonNull Context context,
@NonNull FragmentHelper fragmentHelper,
@NonNull String title,
@NonNull String description,
@NonNull final Password password,
final @NonNull IPersistActivationWithBiometryListener callback) {
final @NonNull IPersistActivationWithBiometricsListener callback) {
return authenticateUsingBiometrics(context, fragmentHelper, title, description, true, new IBiometricAuthenticationCallback() {
@Override
public void onBiometricDialogCancelled(boolean userCancel) {
Expand Down Expand Up @@ -1237,7 +1237,7 @@ public int commitActivationWithPassword(@NonNull Context context, @NonNull Strin
* @param password Password used to persist activation.
* @param callback Callback with the authentication result.
* @return {@link ICancelable} object associated with the biometric prompt.
* @deprecated Use {@link #persistActivation(Context, Fragment, String, String, Password, IPersistActivationWithBiometryListener)} as a replacement.
* @deprecated Use {@link #persistActivation(Context, Fragment, String, String, Password, IPersistActivationWithBiometricsListener)} as a replacement.
*/
@UiThread
@NonNull
Expand All @@ -1248,7 +1248,7 @@ public ICancelable commitActivation(
@NonNull String title,
@NonNull String description,
@NonNull final Password password,
final @NonNull IPersistActivationWithBiometryListener callback) {
final @NonNull IPersistActivationWithBiometricsListener callback) {
return persistActivation(context, fragment, title, description, password, callback);
}

Expand All @@ -1262,7 +1262,7 @@ public ICancelable commitActivation(
* @param password Password used to persist activation.
* @param callback Callback with the authentication result.
* @return {@link ICancelable} object associated with the biometric prompt.
* @deprecated Use {@link #persistActivation(Context, Fragment, String, String, String, IPersistActivationWithBiometryListener)} as a replacement.
* @deprecated Use {@link #persistActivation(Context, Fragment, String, String, String, IPersistActivationWithBiometricsListener)} as a replacement.
*/
@UiThread
@NonNull
Expand All @@ -1273,7 +1273,7 @@ public ICancelable commitActivation(
@NonNull String title,
@NonNull String description,
@NonNull final String password,
final @NonNull IPersistActivationWithBiometryListener callback) {
final @NonNull IPersistActivationWithBiometricsListener callback) {
return persistActivation(context, fragment, title, description, password, callback);
}

Expand All @@ -1287,7 +1287,7 @@ public ICancelable commitActivation(
* @param password Password used to persist activation.
* @param callback Callback with the authentication result.
* @return {@link ICancelable} object associated with the biometric prompt.
* @deprecated Use {@link #persistActivation(Context, FragmentActivity, String, String, String, IPersistActivationWithBiometryListener)} as a replacement.
* @deprecated Use {@link #persistActivation(Context, FragmentActivity, String, String, String, IPersistActivationWithBiometricsListener)} as a replacement.
*/
@UiThread
@NonNull
Expand All @@ -1298,7 +1298,7 @@ public ICancelable commitActivation(
@NonNull String title,
@NonNull String description,
@NonNull final String password,
final @NonNull IPersistActivationWithBiometryListener callback) {
final @NonNull IPersistActivationWithBiometricsListener callback) {
return persistActivation(context, fragmentActivity, title, description, password, callback);
}

Expand All @@ -1312,7 +1312,7 @@ public ICancelable commitActivation(
* @param password Password used to persist activation.
* @param callback Callback with the authentication result.
* @return {@link ICancelable} object associated with the biometric prompt.
* @deprecated Use {@link #persistActivation(Context, FragmentActivity, String, String, Password, IPersistActivationWithBiometryListener)} as a replacement.
* @deprecated Use {@link #persistActivation(Context, FragmentActivity, String, String, Password, IPersistActivationWithBiometricsListener)} as a replacement.
*/
@UiThread
@NonNull
Expand All @@ -1323,7 +1323,7 @@ public ICancelable commitActivation(
@NonNull String title,
@NonNull String description,
@NonNull final Password password,
final @NonNull IPersistActivationWithBiometryListener callback) {
final @NonNull IPersistActivationWithBiometricsListener callback) {
return persistActivation(context, fragmentActivity, title, description, password, callback);
}

Expand Down

0 comments on commit beacf1b

Please sign in to comment.