This is a proposal to move RxFingerprint away from it's static methods in the RxFingerprint class to access all RxFingerprint functions. Instead this proposal adds an RxFingerprint.Builder which would be used to create a concrete instance of RxFingerprint with all "constant" parameters defined per the instance. This results in easier and less duplicated methods for calling RxFingerprint encryption/decryption.
On the current master branch RxFingerprint has 5 methods with different parameters for encryption. This approach would simplify this and bring it down to 2 methods. This would make calling RxFingerprint clearer and would ensure that constant parameters are not changed across different calls to RxFingerprint.
Creating an RxFingerprint instance:
RxFingerprint rxFingerprint = new RxFingerprint.Builder(activity)
.encryptionMethod(EncryptionMethod.RSA)
.keyInvalidatedByBiometricEnrollment(true)
.logger(new DefaultLogger())
.build();
This is a proposal to move RxFingerprint away from it's static methods in the
RxFingerprint
class to access all RxFingerprint functions. Instead this proposal adds anRxFingerprint.Builder
which would be used to create a concrete instance ofRxFingerprint
with all "constant" parameters defined per the instance. This results in easier and less duplicated methods for calling RxFingerprint encryption/decryption.On the current
master
branch RxFingerprint has 5 methods with different parameters for encryption. This approach would simplify this and bring it down to 2 methods. This would make calling RxFingerprint clearer and would ensure that constant parameters are not changed across different calls to RxFingerprint.Creating an RxFingerprint instance:
Encryption would then be simply calling:
Due to the breaking API changes this would result in a RxFingerprint v3.