File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
java/ql/src/Security/CWE/CWE-287 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,16 +26,16 @@ private Cipher getCipher() {
26
26
+ KeyProperties .ENCRYPTION_PADDING_PKCS7 );
27
27
}
28
28
29
- public prompt () {
29
+ public prompt (byte [] encryptedData ) {
30
30
Cipher cipher = getCipher ();
31
31
SecretKey secretKey = getSecretKey ();
32
32
cipher .init (Cipher .DECRYPT_MODE , secretKey );
33
33
34
34
biometricPrompt .authenticate (
35
- new BiometricPrompt .CryptoObject (cipher );
35
+ new BiometricPrompt .CryptoObject (cipher ),
36
36
cancellationSignal ,
37
37
executor ,
38
- new BiometricPrompt .AuthenticationCallback {
38
+ new BiometricPrompt .AuthenticationCallback () {
39
39
@ Override
40
40
// GOOD: This authentication callback uses the result to decrypt some data.
41
41
public void onAuthenticationSucceeded (BiometricPrompt .AuthenticationResult result ) {
You can’t perform that action at this time.
0 commit comments