From 4476a9eaf0308a69cf72da7e7cd77de0583b706a Mon Sep 17 00:00:00 2001 From: Peter Chen Date: Mon, 26 Jun 2023 22:48:11 -0700 Subject: [PATCH] fix typo (#2387) --- .../org/cloudfoundry/identity/uaa/oauth/jwt/CommonSigner.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/org/cloudfoundry/identity/uaa/oauth/jwt/CommonSigner.java b/server/src/main/java/org/cloudfoundry/identity/uaa/oauth/jwt/CommonSigner.java index 334de82f348..884741585b1 100644 --- a/server/src/main/java/org/cloudfoundry/identity/uaa/oauth/jwt/CommonSigner.java +++ b/server/src/main/java/org/cloudfoundry/identity/uaa/oauth/jwt/CommonSigner.java @@ -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); @@ -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"); }