Skip to content

Commit

Permalink
chore: Throw SecurityModuleException
Browse files Browse the repository at this point in the history
  • Loading branch information
usmansaleem committed Jul 8, 2024
1 parent abe3e12 commit b214083
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private void loadPkcs11PublicKey() {
}

if (!(publicKey instanceof ECPublicKey)) {
throw new RuntimeException(
throw new SecurityModuleException(
"Public Key is not a valid ECPublicKey for alias: " + cliParams.getPrivateKeyAlias());
}
ecPublicKey = (ECPublicKey) publicKey;
Expand Down

0 comments on commit b214083

Please sign in to comment.