diff --git a/torusdirect/src/main/java/org/torusresearch/torusdirect/handlers/JwtHandler.java b/torusdirect/src/main/java/org/torusresearch/torusdirect/handlers/JwtHandler.java index 2b97f32..d1a9012 100644 --- a/torusdirect/src/main/java/org/torusresearch/torusdirect/handlers/JwtHandler.java +++ b/torusdirect/src/main/java/org/torusresearch/torusdirect/handlers/JwtHandler.java @@ -114,7 +114,7 @@ public CompletableFuture getUserInfo(LoginWindowResponse String idToken = params.getIdToken(); String domain = this.params.getJwtParams().getDomain(); String verifierIdField = this.params.getJwtParams().getVerifierIdField(); - Boolean isVerifierIdCaseSensitive = this.params.getJwtParams().getVerifierIdCaseSensitive(); + boolean isVerifierIdCaseSensitive = this.params.getJwtParams().getVerifierIdCaseSensitive(); LoginType typeOfLogin = this.params.getTypeOfLogin(); HttpUrl.Builder userInfoUrl = new HttpUrl.Builder().scheme("https").host(domain).addPathSegments("userinfo"); return HttpHelpers.get(userInfoUrl.toString(), new Header[]{ diff --git a/torusdirect/src/main/java/org/torusresearch/torusdirect/types/Auth0ClientOptions.java b/torusdirect/src/main/java/org/torusresearch/torusdirect/types/Auth0ClientOptions.java index f414ad0..40fe63d 100644 --- a/torusdirect/src/main/java/org/torusresearch/torusdirect/types/Auth0ClientOptions.java +++ b/torusdirect/src/main/java/org/torusresearch/torusdirect/types/Auth0ClientOptions.java @@ -11,7 +11,7 @@ public class Auth0ClientOptions { private String client_id; private String leeway; private String verifierIdField; - private Boolean isVerifierIdCaseSensitive; + private boolean isVerifierIdCaseSensitive; private Display display; private Prompt prompt; private String max_age; @@ -87,7 +87,7 @@ public String getVerifierIdField() { return verifierIdField; } - public Boolean getVerifierIdCaseSensitive() { + public boolean getVerifierIdCaseSensitive() { return isVerifierIdCaseSensitive; } @@ -141,7 +141,7 @@ public Auth0ClientOptions merge(Auth0ClientOptions options) { this.client_id = Helpers.mergeValue(this.client_id, options.getClient_id()); this.leeway = Helpers.mergeValue(this.leeway, options.getLeeway()); this.verifierIdField = Helpers.mergeValue(this.verifierIdField, options.getVerifierIdField()); - this.isVerifierIdCaseSensitive = Helpers.mergeValue(this.isVerifierIdCaseSensitive, options.getVerifierIdCaseSensitive()); + this.isVerifierIdCaseSensitive = options.getVerifierIdCaseSensitive(); this.display = Helpers.mergeValue(this.display, options.getDisplay()); this.prompt = Helpers.mergeValue(this.prompt, options.getPrompt()); this.max_age = Helpers.mergeValue(this.max_age, options.getMax_age()); @@ -163,7 +163,7 @@ public static class Auth0ClientOptionsBuilder { private String client_id; private String leeway; private String verifierIdField; - private Boolean isVerifierIdCaseSensitive = true; + private boolean isVerifierIdCaseSensitive = true; private Display display; private Prompt prompt; private String max_age; @@ -195,7 +195,7 @@ public Auth0ClientOptionsBuilder setVerifierIdField(String verifierIdField) { return this; } - public Auth0ClientOptionsBuilder setVerifierIdCaseSensitive(Boolean verifierIdCaseSensitive) { + public Auth0ClientOptionsBuilder setVerifierIdCaseSensitive(boolean verifierIdCaseSensitive) { this.isVerifierIdCaseSensitive = verifierIdCaseSensitive; return this; } diff --git a/torusdirect/src/main/java/org/torusresearch/torusdirect/utils/Helpers.java b/torusdirect/src/main/java/org/torusresearch/torusdirect/utils/Helpers.java index a76215e..815d514 100644 --- a/torusdirect/src/main/java/org/torusresearch/torusdirect/utils/Helpers.java +++ b/torusdirect/src/main/java/org/torusresearch/torusdirect/utils/Helpers.java @@ -62,11 +62,11 @@ public static String capitalize(final String str) { return new String(newCodePoints, 0, outOffset); } - public static String caseSensitiveField(String field, Boolean isCaseSensitive) { + public static String caseSensitiveField(String field, boolean isCaseSensitive) { return isCaseSensitive ? field : field.toLowerCase(); } - public static String getVerifierId(JwtUserInfoResult userInfo, LoginType typeOfLogin, String verifierIdField, Boolean isVerifierIdCaseSensitive) { + public static String getVerifierId(JwtUserInfoResult userInfo, LoginType typeOfLogin, String verifierIdField, boolean isVerifierIdCaseSensitive) { String name = userInfo.getName(); String sub = userInfo.getSub(); if (!isEmpty(verifierIdField)) {