@Value.Immutable public abstract class AuthenticationSetup extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
AuthenticationSetup.Entry |
static interface |
AuthenticationSetup.Role |
static interface |
AuthenticationSetup.User |
| Constructor and Description |
|---|
AuthenticationSetup() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract UsernamePassword |
admin() |
protected List<AuthenticationSetup.Entry> |
entries() |
static ImmutableAuthenticationSetup |
of(UsernamePassword adminUsernamePassword) |
static ImmutableRole |
role(String database,
String collection,
String name) |
static ImmutableUser |
user(String database,
UsernamePassword usernamePassword) |
@Value.Parameter protected abstract UsernamePassword admin()
@Value.Default protected List<AuthenticationSetup.Entry> entries()
public static ImmutableRole role(String database, String collection, String name)
public static ImmutableUser user(String database, UsernamePassword usernamePassword)
public static ImmutableAuthenticationSetup of(UsernamePassword adminUsernamePassword)
Copyright © 2023. All rights reserved.