Class InMemoryPendingAuthorizationStore.Builder
java.lang.Object
com.revetsec.oauth.InMemoryPendingAuthorizationStore.Builder
- Enclosing class:
InMemoryPendingAuthorizationStore
@NotThreadSafe
@CheckReturnValue
public static final class InMemoryPendingAuthorizationStore.Builder
extends Object
Configures the store. The builder is not thread-safe; the built store is.
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the store without starting a thread or doing I/O.Sets the clock used for expiry checks.maximumChargedBytes(@Nullable Long value) Sets the maximum charged UTF-8 bytes across live records.maximumLiveEntries(@Nullable Integer value) Sets the maximum live entry count.Sets the maximum UTF-8 bytes in one opaque record.
-
Method Details
-
maximumLiveEntries
public @NonNull InMemoryPendingAuthorizationStore.Builder maximumLiveEntries(@Nullable Integer value) Sets the maximum live entry count.- Parameters:
value- 16 to 65,536, or null which restores the default- Returns:
- this builder
- Since:
- 1.0.0
-
maximumChargedBytes
Sets the maximum charged UTF-8 bytes across live records.- Parameters:
value- 64 KiB to 64 MiB, or null which restores the default- Returns:
- this builder
- Since:
- 1.0.0
-
maximumOpaqueRecordBytes
public @NonNull InMemoryPendingAuthorizationStore.Builder maximumOpaqueRecordBytes(@Nullable Integer value) Sets the maximum UTF-8 bytes in one opaque record.- Parameters:
value- 1 KiB to 64 KiB, or null which restores the default- Returns:
- this builder
- Since:
- 1.0.0
-
clock
Sets the clock used for expiry checks.- Parameters:
value- the clock, or null which restores the default- Returns:
- this builder
- Since:
- 1.0.0
-
build
Builds the store without starting a thread or doing I/O.- Returns:
- the store
- Since:
- 1.0.0
-