Skip to content

Commit

Permalink
chore: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
andreibogus committed Mar 21, 2024
1 parent 72b592c commit d10a5ed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@
@Slf4j
public class JwtPresentationES256KService {

public static final String JWK_Y = "y";
private JsonLdSerializer jsonLdSerializer;
private Did agentDid;
private WalletRepository walletRepository;
private EncryptionUtils encryptionUtils;
private WalletKeyService walletKeyService;
private MIWSettings miwSettings;
public static final String JWK_Y = "y";

@Autowired
public JwtPresentationES256KService(WalletRepository walletRepository, EncryptionUtils encryptionUtils, WalletKeyService walletKeyService, MIWSettings miwSettings) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,12 @@ public Page<Wallet> getWallets(int pageNumber, int size, String sortColumn, Stri
public Wallet createWallet(CreateWalletRequest request, String callerBpn) {
TransactionTemplate transactionTemplate = new TransactionTemplate(transactionManager);
final Wallet[] wallets = new Wallet[1];
transactionTemplate.execute(new TransactionCallbackWithoutResult() {
@Override
protected void doInTransactionWithoutResult(TransactionStatus status) {
wallets[0] = createWallet(request, false, callerBpn);
}
});
transactionTemplate.execute(new TransactionCallbackWithoutResult() {
@Override
protected void doInTransactionWithoutResult(TransactionStatus status) {
wallets[0] = createWallet(request, false, callerBpn);
}
});
wallets[0] = updateWalletWithWalletKeyES256K(transactionTemplate, wallets);
return wallets[0];
}
Expand Down Expand Up @@ -311,9 +311,9 @@ private Wallet updateWalletWithWalletKeyES256K(TransactionTemplate transactionTe
@Override
protected void doInTransactionWithoutResult(TransactionStatus status) {
// create additional key pair ES256K
if (wallets[0] != null){
wallets[0] = jwtPresentationES256KService.storeWalletKeyES256K(wallets[0], keyId);
}
if (wallets[0] != null) {
wallets[0] = jwtPresentationES256KService.storeWalletKeyES256K(wallets[0], keyId);
}
}
});
return wallets[0];
Expand Down

0 comments on commit d10a5ed

Please sign in to comment.