Skip to content

Commit

Permalink
use boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Nov 19, 2020
1 parent 85c599a commit 24f8c23
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public CompletableFuture<TorusVerifierResponse> 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[]{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -87,7 +87,7 @@ public String getVerifierIdField() {
return verifierIdField;
}

public Boolean getVerifierIdCaseSensitive() {
public boolean getVerifierIdCaseSensitive() {
return isVerifierIdCaseSensitive;
}

Expand Down Expand Up @@ -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());
Expand All @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 24f8c23

Please sign in to comment.