-
Notifications
You must be signed in to change notification settings - Fork 131
Refactor ShadowAndroidSdkStorageEncryptionManager to use ISecretKeyProvider for key management, Fixes AB#3297746 #2326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ovider for key management
❌ Work item link check failed. Description does not contain AB#{ID}. Click here to Learn more. |
✅ Work item link check complete. Description contains link AB#3297746 to an Azure Boards work item. |
❌ Work item link check failed. Description contains AB#3297746 but the Bot could not link it to an Azure Boards work item. Click here to learn more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Refactor the Robolectric shadow of AndroidAuthSdkStorageEncryptionManager
to use the new ISecretKeyProvider
interface for key handling.
- Swap out
AES256KeyLoader
/PredefinedKeyLoader
forISecretKeyProvider
/PredefinedKeyProvider
- Rename methods and return types from
getKeyLoader*
togetKeyProvider*
- Update imports to match the new interfaces
Comments suppressed due to low confidence (1)
msal/src/test/java/com/microsoft/identity/client/e2e/shadows/ShadowAndroidSdkStorageEncryptionManager.java:38
- [nitpick] Consider renaming
mUserDefinedKey
tomUserDefinedKeyProvider
to better reflect its type (ISecretKeyProvider
) and improve readability.
final ISecretKeyProvider mUserDefinedKey = new PredefinedKeyProvider("MOCK_ALIAS", encryptionKey);
...java/com/microsoft/identity/client/e2e/shadows/ShadowAndroidSdkStorageEncryptionManager.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update necessary from:
AzureAD/microsoft-authentication-library-common-for-android#2666
AB#3297746