|
13 | 13 | * See the License for the specific language governing permissions and
|
14 | 14 | * limitations under the License.
|
15 | 15 | */
|
16 |
| -package io.micronaut.security.authentication.provider; |
| 16 | +package io.micronaut.security.authentication; |
17 | 17 |
|
18 | 18 | import io.micronaut.context.BeanContext;
|
19 | 19 | import io.micronaut.core.annotation.Internal;
|
20 | 20 | import io.micronaut.core.annotation.NonNull;
|
21 | 21 | import io.micronaut.core.annotation.Nullable;
|
22 |
| -import io.micronaut.security.authentication.AuthenticationRequest; |
23 |
| -import io.micronaut.security.authentication.AuthenticationResponse; |
| 22 | +import io.micronaut.security.authentication.provider.AuthenticationProvider; |
| 23 | +import io.micronaut.security.authentication.provider.ReactiveAuthenticationProvider; |
24 | 24 | import org.reactivestreams.Publisher;
|
25 | 25 | import reactor.core.publisher.Mono;
|
26 | 26 | import reactor.core.scheduler.Scheduler;
|
27 | 27 |
|
28 | 28 | /**
|
29 |
| - * Adapts between {@link AuthenticationProvider} to {@link ReactiveAuthenticationProvider}. |
| 29 | + * Adapts between {@link io.micronaut.security.authentication.provider.AuthenticationProvider} to {@link ReactiveAuthenticationProvider}. |
30 | 30 | * @param <T> Request
|
31 | 31 | */
|
32 | 32 | @Internal
|
33 |
| -public final class AuthenticationProviderAdapter<T> implements ReactiveAuthenticationProvider<T> { |
| 33 | +final class AuthenticationProviderAdapter<T> implements ReactiveAuthenticationProvider<T> { |
34 | 34 |
|
35 | 35 | @NonNull
|
36 |
| - private final AuthenticationProvider<T> authenticationProvider; |
| 36 | + private final io.micronaut.security.authentication.provider.AuthenticationProvider<T> authenticationProvider; |
37 | 37 |
|
38 | 38 | private final Scheduler scheduler;
|
39 | 39 |
|
40 | 40 | public AuthenticationProviderAdapter(BeanContext beanContext,
|
41 | 41 | Scheduler scheduler,
|
42 |
| - @NonNull AuthenticationProvider<T> authenticationProvider) { |
| 42 | + @NonNull io.micronaut.security.authentication.provider.AuthenticationProvider<T> authenticationProvider) { |
43 | 43 | this(authenticationProvider,
|
44 | 44 | AuthenticationProviderUtils.isAuthenticateBlocking(beanContext, authenticationProvider) ? scheduler : null);
|
45 | 45 | }
|
|
0 commit comments