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; }