Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhaochen47 committed Jun 23, 2023
1 parent 862eb92 commit e618de8
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 e618de8

Please sign in to comment.