|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2018 the original author or authors. |
| 2 | + * Copyright 2002-2020 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
@@ -101,14 +101,30 @@ public class ProviderManager implements AuthenticationManager, MessageSourceAwar
|
101 | 101 | private AuthenticationManager parent;
|
102 | 102 | private boolean eraseCredentialsAfterAuthentication = true;
|
103 | 103 |
|
104 |
| - public ProviderManager(List<AuthenticationProvider> providers) { |
105 |
| - this(providers, null); |
106 |
| - } |
107 |
| - |
| 104 | + /** |
| 105 | + * Construct a {@link ProviderManager} using the given {@link AuthenticationProvider}s |
| 106 | + * |
| 107 | + * @param providers the {@link AuthenticationProvider}s to use |
| 108 | + */ |
108 | 109 | public ProviderManager(AuthenticationProvider... providers) {
|
109 | 110 | this(Arrays.asList(providers), null);
|
110 | 111 | }
|
111 | 112 |
|
| 113 | + /** |
| 114 | + * Construct a {@link ProviderManager} using the given {@link AuthenticationProvider}s |
| 115 | + * |
| 116 | + * @param providers the {@link AuthenticationProvider}s to use |
| 117 | + */ |
| 118 | + public ProviderManager(List<AuthenticationProvider> providers) { |
| 119 | + this(providers, null); |
| 120 | + } |
| 121 | + |
| 122 | + /** |
| 123 | + * Construct a {@link ProviderManager} using the provided parameters |
| 124 | + * |
| 125 | + * @param providers the {@link AuthenticationProvider}s to use |
| 126 | + * @param parent a parent {@link AuthenticationManager} to fall back to |
| 127 | + */ |
112 | 128 | public ProviderManager(List<AuthenticationProvider> providers,
|
113 | 129 | AuthenticationManager parent) {
|
114 | 130 | Assert.notNull(providers, "providers list cannot be null");
|
|
0 commit comments