public final class SetAuthenticationMode extends UpdateActionImpl<Customer>
See also CustomerInStoreUpdateCommand.
withUpdateableCustomer(client(), customer -> { CustomerUpdateCommand update = CustomerUpdateCommand.of(customer, SetAuthenticationMode.of(AuthenticationMode.EXTERNAL_AUTH, null)); final Customer updatedCustomer = client().executeBlocking(update); assertThat(updatedCustomer.getAuthenticationMode()).isEqualTo(AuthenticationMode.EXTERNAL_AUTH); return updatedCustomer; });
See the test code.
Modifier and Type | Method and Description |
---|---|
AuthenticationMode |
getAuthMode() |
String |
getPassword() |
static SetAuthenticationMode |
of(AuthenticationMode authMode,
String password) |
getAction
public static SetAuthenticationMode of(AuthenticationMode authMode, @Nullable String password)
public AuthenticationMode getAuthMode()