Skip to content

Commit 142107e

Browse files
SyncServer: shorten JWT auth builder options prefix #252
1 parent f30c003 commit 142107e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

objectbox-java/src/main/java/io/objectbox/sync/server/SyncServerBuilder.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,31 +283,31 @@ public SyncServerBuilder workerThreads(int workerThreads) {
283283
* <p>
284284
* The public key should be in the PEM format.
285285
*/
286-
public SyncServerBuilder jwtConfigPublicKey(String publicKey) {
286+
public SyncServerBuilder jwtPublicKey(String publicKey) {
287287
this.jwtPublicKey = publicKey;
288288
return this;
289289
}
290290

291291
/**
292292
* Sets the JWKS (Json Web Key Sets) URL to fetch the current public key used to verify JWT tokens.
293293
*/
294-
public SyncServerBuilder jwtConfigPublicKeyUrl(String publicKeyUrl) {
294+
public SyncServerBuilder jwtPublicKeyUrl(String publicKeyUrl) {
295295
this.jwtPublicKeyUrl = publicKeyUrl;
296296
return this;
297297
}
298298

299299
/**
300300
* Sets the JWT claim "iss" (issuer) used to verify JWT tokens.
301301
*/
302-
public SyncServerBuilder jwtConfigClaimIss(String claimIss) {
302+
public SyncServerBuilder jwtClaimIss(String claimIss) {
303303
this.jwtClaimIss = claimIss;
304304
return this;
305305
}
306306

307307
/**
308308
* Sets the JWT claim "aud" (audience) used to verify JWT tokens.
309309
*/
310-
public SyncServerBuilder jwtConfigClaimAud(String claimAud) {
310+
public SyncServerBuilder jwtClaimAud(String claimAud) {
311311
this.jwtClaimAud = claimAud;
312312
return this;
313313
}

0 commit comments

Comments
 (0)