Skip to content

Commit

Permalink
minor edit of new exception messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dghgit committed Nov 12, 2024
1 parent f848364 commit db6161f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ else if (key instanceof BCMLDSAPublicKey)
}
else
{
throw new InvalidKeySpecException("Unsupported key type: "
throw new InvalidKeySpecException("unsupported key type: "
+ key.getClass() + ".");
}

throw new InvalidKeySpecException("Unknown key specification: "
throw new InvalidKeySpecException("unknown key specification: "
+ keySpec + ".");
}

Expand All @@ -109,7 +109,7 @@ public final Key engineTranslateKey(Key key)
return key;
}

throw new InvalidKeyException("Unsupported key type");
throw new InvalidKeyException("unsupported key type");
}

public PrivateKey engineGeneratePrivate(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ else if (key instanceof BCMLKEMPublicKey)
+ key.getClass() + ".");
}

throw new InvalidKeySpecException("Unknown key specification: "
throw new InvalidKeySpecException("unknown key specification: "
+ keySpec + ".");
}

Expand All @@ -102,7 +102,7 @@ public final Key engineTranslateKey(Key key)
return key;
}

throw new InvalidKeyException("Unsupported key type");
throw new InvalidKeyException("unsupported key type");
}

public PrivateKey engineGeneratePrivate(
Expand Down

0 comments on commit db6161f

Please sign in to comment.