Skip to content

Commit

Permalink
fix typo (#2387)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhaochen47 authored Jun 27, 2023
1 parent 862eb92 commit 4476a9e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class CommonSigner implements Signer {
public CommonSigner(String keyId, String signingKey, String keyURL) {
if (signingKey == null) {
throw new IllegalArgumentException(signingKey);
} else if (isAssymetricKey(signingKey)) {
} else if (isAsymmetricKey(signingKey)) {
delegate = new RsaSigner(signingKey);
} else {
delegate = new MacSigner(signingKey);
Expand All @@ -36,7 +36,7 @@ public CommonSigner(String keyId, String signingKey, String keyURL) {
}


private static boolean isAssymetricKey(String key) {
private static boolean isAsymmetricKey(String key) {
return key.startsWith("-----BEGIN");
}

Expand Down

0 comments on commit 4476a9e

Please sign in to comment.