Class HttpBasicAuthProvider.Builder
- java.lang.Object
-
- io.helidon.security.providers.httpauth.HttpBasicAuthProvider.Builder
-
- All Implemented Interfaces:
Builder<HttpBasicAuthProvider>
,Supplier<HttpBasicAuthProvider>
- Enclosing class:
- HttpBasicAuthProvider
public static final class HttpBasicAuthProvider.Builder extends Object implements Builder<HttpBasicAuthProvider>
HttpBasicAuthProvider
fluent API builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpBasicAuthProvider.Builder
addUserStore(SecureUserStore store)
Add a user store to the list of stores used by this provider.HttpBasicAuthProvider
build()
Build the instance from this builder.HttpBasicAuthProvider.Builder
config(Config config)
Update this builder from configuration.HttpBasicAuthProvider.Builder
realm(String realm)
Set the realm to use when challenging users.HttpBasicAuthProvider.Builder
subjectType(SubjectType subjectType)
Principal type this provider extracts (and also propagates).HttpBasicAuthProvider.Builder
userStore(SecureUserStore store)
Set user store to validate users.
-
-
-
Method Detail
-
config
public HttpBasicAuthProvider.Builder config(Config config)
Update this builder from configuration.- Parameters:
config
- configuration to read, located on the node of the http basic authentication provider- Returns:
- updated builder instance
-
build
public HttpBasicAuthProvider build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<HttpBasicAuthProvider>
- Returns:
- instance of the built type
-
subjectType
public HttpBasicAuthProvider.Builder subjectType(SubjectType subjectType)
Principal type this provider extracts (and also propagates).- Parameters:
subjectType
- type of principal- Returns:
- updated builder instance
-
addUserStore
public HttpBasicAuthProvider.Builder addUserStore(SecureUserStore store)
Add a user store to the list of stores used by this provider.- Parameters:
store
- user store to add- Returns:
- updated builder instance
-
userStore
public HttpBasicAuthProvider.Builder userStore(SecureUserStore store)
Set user store to validate users. Removes any other stores added throughaddUserStore(SecureUserStore)
.- Parameters:
store
- User store to use- Returns:
- updated builder instance
-
realm
public HttpBasicAuthProvider.Builder realm(String realm)
Set the realm to use when challenging users.- Parameters:
realm
- security realm name to send to browser (or any other client) when unauthenticated- Returns:
- updated builder instance
-
-