Allow instantiating SecureArea.CreateKeySettings object. #409
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In order to support new kinds of SecureArea without app changes, change the SecureArea.CreateKeySettings class so it can be instantiated by apps.
Also stop carrying the SecureArea class name in CreateKeySettings subclasses, instead have users of CreateKeySettings take a separate SecureArea class. Make it explicit that different SecureArea instances can be used by CredentialKey and even for different Authentication Keys.
Introduce the concept of an "identifier" for a SecureArea instead of Credential, Credential.Authentiationkey, and
Credential.PendingAuthenticationKey classes all using the Java class name when persisting on-disk. This paves the way to have multiple SecureArea instances of the same type but with different configuration. We'll need this for CloudSecureArea so an app can have two instances pointing to different providers, for different credentials. Also add "display name" since that is needed for Issue #380.
Unfortunately this breaks the on-disk format but this is going to happen anyway as we're renaming the project and moving all the code to new packages as part of the contribution of the code to the OpenWallet Foundation. In the near future we'll start committing to stable on-disk formats.
Test: All unit tests pass.
Test: Manually tested
Fixes #<issue_number_goes_here>