From 7289c35c921087d70c8232a34ac07337ced93a2c Mon Sep 17 00:00:00 2001 From: James Anderson Date: Mon, 29 Nov 2021 11:03:56 -0600 Subject: [PATCH] [SDK-2975] Fix withOrganization method visibility on token verifier --- .../auth0/utils/tokens/IdTokenVerifier.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/main/java/com/auth0/utils/tokens/IdTokenVerifier.java b/src/main/java/com/auth0/utils/tokens/IdTokenVerifier.java index aa63c5a9d..808cb220f 100644 --- a/src/main/java/com/auth0/utils/tokens/IdTokenVerifier.java +++ b/src/main/java/com/auth0/utils/tokens/IdTokenVerifier.java @@ -255,26 +255,26 @@ public Builder withLeeway(Integer leeway) { } /** - * Specify a custom clock to use as the current time when validating time-based claims. Exposed for testing - * purposes only. - * - * @param clock the clock to use as the current time. + * Specify the expected organization (org_id) the token must be issued for. This should be used if using the + * Organizations feature. + + * @param organization the ID of the organization. * @return this Builder instance. */ - Builder withClock(Date clock) { - this.clock = clock; + public Builder withOrganization(String organization) { + this.organization = organization; return this; } /** - * Specify the expected organization (org_id) the token must be issued for. This should be used if using the - * Organizations feature. - - * @param organization the ID of the organization. + * Specify a custom clock to use as the current time when validating time-based claims. Exposed for testing + * purposes only. + * + * @param clock the clock to use as the current time. * @return this Builder instance. */ - Builder withOrganization(String organization) { - this.organization = organization; + Builder withClock(Date clock) { + this.clock = clock; return this; }