Class AllRequiredFactorsAuthorizationManager.Builder<T>
java.lang.Object
org.springframework.security.authorization.AllRequiredFactorsAuthorizationManager.Builder<T>
- Enclosing class:
- AllRequiredFactorsAuthorizationManager<T>
A builder for
AllRequiredFactorsAuthorizationManager.- Since:
- 7.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theAllRequiredFactorsAuthorizationManager.requireFactor(Consumer<RequiredFactor.Builder> requiredFactor) Allows the user to consume theRequiredFactor.Builderthat is passed in and then adds the result to therequireFactor(RequiredFactor).requireFactor(RequiredFactor requiredFactor) TheRequiredFactorto add.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
requireFactor
public AllRequiredFactorsAuthorizationManager.Builder<T> requireFactor(Consumer<RequiredFactor.Builder> requiredFactor) Allows the user to consume theRequiredFactor.Builderthat is passed in and then adds the result to therequireFactor(RequiredFactor).- Parameters:
requiredFactor- theConsumerto invoke.- Returns:
- the builder.
-
requireFactor
public AllRequiredFactorsAuthorizationManager.Builder<T> requireFactor(RequiredFactor requiredFactor) TheRequiredFactorto add.- Parameters:
requiredFactor- the requiredFactor to add. Cannot be null.- Returns:
- the builder.
-
build
Builds theAllRequiredFactorsAuthorizationManager.- Returns:
- the
AllRequiredFactorsAuthorizationManager
-