Class AnnotationAnalyzer.AnalyzerResponse.Builder
java.lang.Object
io.helidon.security.providers.common.spi.AnnotationAnalyzer.AnalyzerResponse.Builder
- All Implemented Interfaces:
Builder<AnnotationAnalyzer.AnalyzerResponse.Builder,,AnnotationAnalyzer.AnalyzerResponse> Supplier<AnnotationAnalyzer.AnalyzerResponse>
- Enclosing class:
- AnnotationAnalyzer.AnalyzerResponse
public static class AnnotationAnalyzer.AnalyzerResponse.Builder
extends Object
implements Builder<AnnotationAnalyzer.AnalyzerResponse.Builder,AnnotationAnalyzer.AnalyzerResponse>
Fluent API builder for
AnnotationAnalyzer.AnalyzerResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticationResponse(AnnotationAnalyzer.Flag atnResponse) Authentication response.authenticator(String authenticator) Explicit authentication provider to use.authorizer(String authorizer) Explicit authorization provider to use.authorizeResponse(AnnotationAnalyzer.Flag authorizeResponse) Authorization response.build()Build the instance from this builder.Register an object later available throughAnnotationAnalyzer.AnalyzerResponse.registry().Register an object later available throughAnnotationAnalyzer.AnalyzerResponse.registry().
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<AnnotationAnalyzer.AnalyzerResponse.Builder,AnnotationAnalyzer.AnalyzerResponse> - Returns:
- instance of the built type
-
register
Register an object later available throughAnnotationAnalyzer.AnalyzerResponse.registry().- Parameters:
anInstance- instance to register by its class- Returns:
- updated builder instance
-
register
public <T> AnnotationAnalyzer.AnalyzerResponse.Builder register(Class<? super T> theClass, T anInstance) Register an object later available throughAnnotationAnalyzer.AnalyzerResponse.registry().- Type Parameters:
T- type of the instance- Parameters:
theClass- class to register the instance byanInstance- instance to register- Returns:
- updated builder instance
-
authenticationResponse
public AnnotationAnalyzer.AnalyzerResponse.Builder authenticationResponse(AnnotationAnalyzer.Flag atnResponse) Authentication response.- Parameters:
atnResponse- response for authentication- Returns:
- updated builder instance
-
authorizeResponse
public AnnotationAnalyzer.AnalyzerResponse.Builder authorizeResponse(AnnotationAnalyzer.Flag authorizeResponse) Authorization response.- Parameters:
authorizeResponse- authorization response flag- Returns:
- updated builder instance
-
authenticator
Explicit authentication provider to use.- Parameters:
authenticator- name of a provider to use- Returns:
- updated builder instance
-
authorizer
Explicit authorization provider to use.- Parameters:
authorizer- name of a provider to use- Returns:
- updated builder instance
-