File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
flight/flight-sql-jdbc-core/src/main/java/org/apache/arrow/driver/jdbc/client/oauth Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -239,6 +239,13 @@ public Builder tokenUri(@Nullable String tokenUri) throws SQLException {
239239 return this ;
240240 }
241241
242+ /**
243+ * Sets the OAuth authorization endpoint URL.
244+ *
245+ * @param authorizationUrl the authorization endpoint URL
246+ * @return this builder
247+ * @throws SQLException if the URL is invalid
248+ */
242249 public Builder authorizationUrl (@ Nullable String authorizationUrl ) throws SQLException {
243250 if (authorizationUrl == null || authorizationUrl .isEmpty ()) {
244251 this .authorizationUri = null ;
@@ -252,6 +259,7 @@ public Builder authorizationUrl(@Nullable String authorizationUrl) throws SQLExc
252259 return this ;
253260 }
254261
262+ /** Sets the OIDC issuer URL for endpoint auto-discovery. */
255263 public Builder oidcIssuer (@ Nullable String oidcIssuer ) {
256264 this .oidcIssuer = oidcIssuer ;
257265 return this ;
Original file line number Diff line number Diff line change @@ -40,6 +40,11 @@ public PkceGenerator() {
4040 this (DEFAULT_VERIFIER_LENGTH );
4141 }
4242
43+ /**
44+ * Creates a new PkceGenerator with a custom verifier length.
45+ *
46+ * @param verifierLength the length of the code verifier (43-128 characters)
47+ */
4348 public PkceGenerator (int verifierLength ) {
4449 if (verifierLength < 43 || verifierLength > 128 ) {
4550 throw new IllegalArgumentException ("Verifier length must be between 43 and 128 characters" );
You can’t perform that action at this time.
0 commit comments