fixed error handling
This commit is contained in:
parent
b213b0a876
commit
51c375bb43
1 changed files with 5 additions and 1 deletions
|
@ -180,10 +180,14 @@ public class SecurityKeyServiceImpl implements SecurityKeyService {
|
|||
return Cryptor
|
||||
.decrypt(appSignatureKey + salt, connectionToken)
|
||||
.onErrorDo(error -> {
|
||||
|
||||
log.warn(
|
||||
"Failed to decrypt ASK with added salt value. Try to decrypt without added salt. Error: {}",
|
||||
error.getMessage());
|
||||
return Cryptor.decrypt(appSignatureKey, connectionToken).get();
|
||||
|
||||
return Cryptor
|
||||
.decrypt(appSignatureKey, connectionToken)
|
||||
.getOrThrow();
|
||||
})
|
||||
.map(signature -> createSignatureHash(signature));
|
||||
|
||||
|
|
Loading…
Reference in a new issue