public final class BasicAuthSecurityContextFilters
extends java.lang.Object
ContainerRequestFilter
that establish SecurityContext
s for requests
authenticated with the Basic HTTP Authentication Scheme (RFC7617).Modifier and Type | Class and Description |
---|---|
static class |
BasicAuthSecurityContextFilters.AbstractBuilder<B extends BasicAuthSecurityContextFilters.AbstractBuilder,PF,SCF>
A builder for
ContainerRequestFilter instances. |
static class |
BasicAuthSecurityContextFilters.NoUserInfoBuilder
A builder that can be used when no user info is stored in
AsyncContext . |
static class |
BasicAuthSecurityContextFilters.UserInfoBuilder<UserInfo>
A builder that can be used when user info is stored in
AsyncContext . |
Modifier and Type | Method and Description |
---|---|
static BasicAuthSecurityContextFilters.NoUserInfoBuilder |
forGlobalBinding()
Creates a new
BasicAuthSecurityContextFilters.NoUserInfoBuilder instance for building a ContainerRequestFilter that needs to be
globally bound to the JAX-RS Application . |
static <UserInfo> BasicAuthSecurityContextFilters.UserInfoBuilder<UserInfo> |
forGlobalBinding(AsyncContextMap.Key<UserInfo> userInfoKey)
Creates a new
BasicAuthSecurityContextFilters.UserInfoBuilder instance for building a ContainerRequestFilter that needs to be
globally bound to the JAX-RS Application . |
static BasicAuthSecurityContextFilters.NoUserInfoBuilder |
forNameBinding()
Creates a new
BasicAuthSecurityContextFilters.NoUserInfoBuilder instance for building a ContainerRequestFilter that needs to be
explicitly bound to resources via the BasicAuthenticated annotation. |
static <UserInfo> BasicAuthSecurityContextFilters.UserInfoBuilder<UserInfo> |
forNameBinding(AsyncContextMap.Key<UserInfo> userInfoKey)
Creates a new
BasicAuthSecurityContextFilters.UserInfoBuilder instance for building a ContainerRequestFilter that needs to be
explicitly bound to resources via the BasicAuthenticated annotation. |
public static <UserInfo> BasicAuthSecurityContextFilters.UserInfoBuilder<UserInfo> forGlobalBinding(AsyncContextMap.Key<UserInfo> userInfoKey)
BasicAuthSecurityContextFilters.UserInfoBuilder
instance for building a ContainerRequestFilter
that needs to be
globally bound to the JAX-RS Application
.UserInfo
- the type of user info object expected in AsyncContext
's userInfoKey
entryuserInfoKey
- the AsyncContextMap.Key
to use to get the user info from AsyncContext
BasicAuthSecurityContextFilters.UserInfoBuilder
instancepublic static BasicAuthSecurityContextFilters.NoUserInfoBuilder forGlobalBinding()
BasicAuthSecurityContextFilters.NoUserInfoBuilder
instance for building a ContainerRequestFilter
that needs to be
globally bound to the JAX-RS Application
.BasicAuthSecurityContextFilters.NoUserInfoBuilder
instancepublic static <UserInfo> BasicAuthSecurityContextFilters.UserInfoBuilder<UserInfo> forNameBinding(AsyncContextMap.Key<UserInfo> userInfoKey)
BasicAuthSecurityContextFilters.UserInfoBuilder
instance for building a ContainerRequestFilter
that needs to be
explicitly bound to resources via the BasicAuthenticated
annotation.UserInfo
- the type of user info object expected in AsyncContext
's userInfoKey
entryuserInfoKey
- the AsyncContextMap.Key
to use to get the user info from AsyncContext
BasicAuthSecurityContextFilters.UserInfoBuilder
instancepublic static BasicAuthSecurityContextFilters.NoUserInfoBuilder forNameBinding()
BasicAuthSecurityContextFilters.NoUserInfoBuilder
instance for building a ContainerRequestFilter
that needs to be
explicitly bound to resources via the BasicAuthenticated
annotation.BasicAuthSecurityContextFilters.NoUserInfoBuilder
instance