public class AuthBuilder extends Object
| Constructor and Description |
|---|
AuthBuilder()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AuthBuilder |
add(String authKey)
Registers the authentication key to the builder.
|
AuthBuilder |
and(java.util.function.Consumer<AuthBuilder> action)
Registers the and group for authentication.
|
io.apimatic.coreinterfaces.authentication.Authentication |
build(Map<String,io.apimatic.coreinterfaces.authentication.Authentication> authManagers)
Builds and validates the authentication using registered authentication keys.
|
AuthBuilder |
copy() |
AuthBuilder |
or(java.util.function.Consumer<AuthBuilder> action)
Registers the or group for authentication.
|
public AuthBuilder add(String authKey)
authKey - A key pointing to some authentication in the provided auth managers.AuthBuilder The instance of the current builder.public AuthBuilder and(java.util.function.Consumer<AuthBuilder> action)
action - A consumer for the nested builder.AuthBuilder The instance of the current builder.public AuthBuilder or(java.util.function.Consumer<AuthBuilder> action)
action - A consumer for the nested builder.AuthBuilder The instance of the current builder.public io.apimatic.coreinterfaces.authentication.Authentication build(Map<String,io.apimatic.coreinterfaces.authentication.Authentication> authManagers)
authManagers - The map of authentication managers.Authentication The validated instance of authentication.public AuthBuilder copy()
Copyright © 2025. All rights reserved.