@@ -129,6 +129,15 @@ public final class SyncServerOptions extends Table {
129
129
*/
130
130
public io .objectbox .sync .server .JwtConfig jwtConfig () { return jwtConfig (new io .objectbox .sync .server .JwtConfig ()); }
131
131
public io .objectbox .sync .server .JwtConfig jwtConfig (io .objectbox .sync .server .JwtConfig obj ) { int o = __offset (30 ); return o != 0 ? obj .__assign (__indirect (o + bb_pos ), bb ) : null ; }
132
+ /**
133
+ * Credential types that are required for clients logging in.
134
+ */
135
+ public long requiredCredentials (int j ) { int o = __offset (32 ); return o != 0 ? (long )bb .getInt (__vector (o ) + j * 4 ) & 0xFFFFFFFFL : 0 ; }
136
+ public int requiredCredentialsLength () { int o = __offset (32 ); return o != 0 ? __vector_len (o ) : 0 ; }
137
+ public IntVector requiredCredentialsVector () { return requiredCredentialsVector (new IntVector ()); }
138
+ public IntVector requiredCredentialsVector (IntVector obj ) { int o = __offset (32 ); return o != 0 ? obj .__assign (__vector (o ), bb ) : null ; }
139
+ public ByteBuffer requiredCredentialsAsByteBuffer () { return __vector_as_bytebuffer (32 , 4 ); }
140
+ public ByteBuffer requiredCredentialsInByteBuffer (ByteBuffer _bb ) { return __vector_in_bytebuffer (_bb , 32 , 4 ); }
132
141
133
142
public static int createSyncServerOptions (FlatBufferBuilder builder ,
134
143
int urlOffset ,
@@ -144,10 +153,12 @@ public static int createSyncServerOptions(FlatBufferBuilder builder,
144
153
int clusterIdOffset ,
145
154
int clusterPeersOffset ,
146
155
long clusterFlags ,
147
- int jwtConfigOffset ) {
148
- builder .startTable (14 );
156
+ int jwtConfigOffset ,
157
+ int requiredCredentialsOffset ) {
158
+ builder .startTable (15 );
149
159
SyncServerOptions .addHistorySizeTargetKb (builder , historySizeTargetKb );
150
160
SyncServerOptions .addHistorySizeMaxKb (builder , historySizeMaxKb );
161
+ SyncServerOptions .addRequiredCredentials (builder , requiredCredentialsOffset );
151
162
SyncServerOptions .addJwtConfig (builder , jwtConfigOffset );
152
163
SyncServerOptions .addClusterFlags (builder , clusterFlags );
153
164
SyncServerOptions .addClusterPeers (builder , clusterPeersOffset );
@@ -163,7 +174,7 @@ public static int createSyncServerOptions(FlatBufferBuilder builder,
163
174
return SyncServerOptions .endSyncServerOptions (builder );
164
175
}
165
176
166
- public static void startSyncServerOptions (FlatBufferBuilder builder ) { builder .startTable (14 ); }
177
+ public static void startSyncServerOptions (FlatBufferBuilder builder ) { builder .startTable (15 ); }
167
178
public static void addUrl (FlatBufferBuilder builder , int urlOffset ) { builder .addOffset (0 , urlOffset , 0 ); }
168
179
public static void addAuthenticationMethods (FlatBufferBuilder builder , int authenticationMethodsOffset ) { builder .addOffset (1 , authenticationMethodsOffset , 0 ); }
169
180
public static int createAuthenticationMethodsVector (FlatBufferBuilder builder , int [] data ) { builder .startVector (4 , data .length , 4 ); for (int i = data .length - 1 ; i >= 0 ; i --) builder .addOffset (data [i ]); return builder .endVector (); }
@@ -182,6 +193,9 @@ public static int createSyncServerOptions(FlatBufferBuilder builder,
182
193
public static void startClusterPeersVector (FlatBufferBuilder builder , int numElems ) { builder .startVector (4 , numElems , 4 ); }
183
194
public static void addClusterFlags (FlatBufferBuilder builder , long clusterFlags ) { builder .addInt (12 , (int ) clusterFlags , (int ) 0L ); }
184
195
public static void addJwtConfig (FlatBufferBuilder builder , int jwtConfigOffset ) { builder .addOffset (13 , jwtConfigOffset , 0 ); }
196
+ public static void addRequiredCredentials (FlatBufferBuilder builder , int requiredCredentialsOffset ) { builder .addOffset (14 , requiredCredentialsOffset , 0 ); }
197
+ public static int createRequiredCredentialsVector (FlatBufferBuilder builder , long [] data ) { builder .startVector (4 , data .length , 4 ); for (int i = data .length - 1 ; i >= 0 ; i --) builder .addInt ((int ) data [i ]); return builder .endVector (); }
198
+ public static void startRequiredCredentialsVector (FlatBufferBuilder builder , int numElems ) { builder .startVector (4 , numElems , 4 ); }
185
199
public static int endSyncServerOptions (FlatBufferBuilder builder ) {
186
200
int o = builder .endTable ();
187
201
return o ;
0 commit comments