mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-03-09 06:50:05 +00:00
Polish Javadoc to remove warning
This commit is contained in:
parent
d468d7e6da
commit
18db425861
@ -122,7 +122,7 @@ public abstract class AbstractConfiguredSecurityBuilder<O, B extends SecurityBui
|
||||
* invokes {@link SecurityConfigurerAdapter#setBuilder(SecurityBuilder)}.
|
||||
*
|
||||
* @param configurer
|
||||
* @return
|
||||
* @return the {@link SecurityConfigurerAdapter} for further customizations
|
||||
* @throws Exception
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@ -140,7 +140,7 @@ public abstract class AbstractConfiguredSecurityBuilder<O, B extends SecurityBui
|
||||
* are not considered.
|
||||
*
|
||||
* @param configurer
|
||||
* @return
|
||||
* @return the {@link SecurityConfigurerAdapter} for further customizations
|
||||
* @throws Exception
|
||||
*/
|
||||
public <C extends SecurityConfigurer<O, B>> C apply(C configurer) throws Exception {
|
||||
@ -172,7 +172,7 @@ public abstract class AbstractConfiguredSecurityBuilder<O, B extends SecurityBui
|
||||
|
||||
/**
|
||||
* Gets the shared objects
|
||||
* @return
|
||||
* @return the shared Objects
|
||||
*/
|
||||
public Map<Class<? extends Object>, Object> getSharedObjects() {
|
||||
return Collections.unmodifiableMap(this.sharedObjects);
|
||||
@ -214,7 +214,7 @@ public abstract class AbstractConfiguredSecurityBuilder<O, B extends SecurityBui
|
||||
* List if not found. Note that object hierarchies are not considered.
|
||||
*
|
||||
* @param clazz the {@link SecurityConfigurer} class to look for
|
||||
* @return
|
||||
* @return a list of {@link SecurityConfigurer}s for further customization
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public <C extends SecurityConfigurer<O, B>> List<C> getConfigurers(Class<C> clazz) {
|
||||
@ -230,7 +230,7 @@ public abstract class AbstractConfiguredSecurityBuilder<O, B extends SecurityBui
|
||||
* List if not found. Note that object hierarchies are not considered.
|
||||
*
|
||||
* @param clazz the {@link SecurityConfigurer} class to look for
|
||||
* @return
|
||||
* @return a list of {@link SecurityConfigurer}s for further customization
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public <C extends SecurityConfigurer<O, B>> List<C> removeConfigurers(Class<C> clazz) {
|
||||
@ -246,7 +246,7 @@ public abstract class AbstractConfiguredSecurityBuilder<O, B extends SecurityBui
|
||||
* found. Note that object hierarchies are not considered.
|
||||
*
|
||||
* @param clazz
|
||||
* @return
|
||||
* @return the {@link SecurityConfigurer} for further customizations
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public <C extends SecurityConfigurer<O, B>> C getConfigurer(Class<C> clazz) {
|
||||
@ -359,7 +359,7 @@ public abstract class AbstractConfiguredSecurityBuilder<O, B extends SecurityBui
|
||||
/**
|
||||
* Subclasses must implement this method to build the object that is being returned.
|
||||
*
|
||||
* @return
|
||||
* @return the Object to be buit or null if the implementation allows it
|
||||
*/
|
||||
protected abstract O performBuild() throws Exception;
|
||||
|
||||
|
@ -51,7 +51,7 @@ public abstract class SecurityConfigurerAdapter<O, B extends SecurityBuilder<O>>
|
||||
* Return the {@link SecurityBuilder} when done using the {@link SecurityConfigurer}.
|
||||
* This is useful for method chaining.
|
||||
*
|
||||
* @return
|
||||
* @return the {@link SecurityBuilder} for further customizations
|
||||
*/
|
||||
public B and() {
|
||||
return getBuilder();
|
||||
|
@ -258,7 +258,7 @@ public class AuthenticationManagerBuilder
|
||||
* default configuration in the {@link SecurityConfigurer#configure(SecurityBuilder)}
|
||||
* method.
|
||||
*
|
||||
* @return
|
||||
* @return true, if {@link AuthenticationManagerBuilder} is configured, otherwise false
|
||||
*/
|
||||
public boolean isConfigured() {
|
||||
return !authenticationProviders.isEmpty() || parentAuthenticationManager != null;
|
||||
|
@ -302,7 +302,7 @@ public class LdapAuthenticationProviderConfigurer<B extends ProviderManagerBuild
|
||||
/**
|
||||
* Specifies the attribute name which contains the role name. Default is "cn".
|
||||
* @param groupRoleAttribute the attribute name that maps a group to a role.
|
||||
* @return
|
||||
* @return the {@link LdapAuthenticationProviderConfigurer} for further customizations
|
||||
*/
|
||||
public LdapAuthenticationProviderConfigurer<B> groupRoleAttribute(
|
||||
String groupRoleAttribute) {
|
||||
@ -384,11 +384,11 @@ public class LdapAuthenticationProviderConfigurer<B extends ProviderManagerBuild
|
||||
*/
|
||||
public final class PasswordCompareConfigurer {
|
||||
|
||||
/**
|
||||
/**Us
|
||||
* Allows specifying the {@link PasswordEncoder} to use. The default is
|
||||
* {@link org.springframework.security.crypto.password.NoOpPasswordEncoder}.
|
||||
* @param passwordEncoder the {@link PasswordEncoder} to use
|
||||
* @return the {@link PasswordEncoder} to use
|
||||
* @return the {@link PasswordCompareConfigurer} for further customizations
|
||||
*/
|
||||
public PasswordCompareConfigurer passwordEncoder(PasswordEncoder passwordEncoder) {
|
||||
LdapAuthenticationProviderConfigurer.this.passwordEncoder = passwordEncoder;
|
||||
@ -602,7 +602,7 @@ public class LdapAuthenticationProviderConfigurer<B extends ProviderManagerBuild
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
* @return the {@link PasswordCompareConfigurer} for further customizations
|
||||
*/
|
||||
public PasswordCompareConfigurer passwordCompare() {
|
||||
return new PasswordCompareConfigurer().passwordAttribute("password")
|
||||
|
@ -63,7 +63,7 @@ public class JdbcUserDetailsManagerConfigurer<B extends ProviderManagerBuilder<B
|
||||
* Populates the {@link DataSource} to be used. This is the only required attribute.
|
||||
*
|
||||
* @param dataSource the {@link DataSource} to be used. Cannot be null.
|
||||
* @return
|
||||
* @return The {@link JdbcUserDetailsManagerConfigurer} used for additional customizations
|
||||
* @throws Exception
|
||||
*/
|
||||
public JdbcUserDetailsManagerConfigurer<B> dataSource(DataSource dataSource)
|
||||
@ -142,7 +142,7 @@ public class JdbcUserDetailsManagerConfigurer<B extends ProviderManagerBuilder<B
|
||||
* storage (default is "").
|
||||
*
|
||||
* @param rolePrefix
|
||||
* @return
|
||||
* @return The {@link JdbcUserDetailsManagerConfigurer} used for additional customizations
|
||||
* @throws Exception
|
||||
*/
|
||||
public JdbcUserDetailsManagerConfigurer<B> rolePrefix(String rolePrefix)
|
||||
|
@ -69,7 +69,7 @@ public class UserDetailsManagerConfigurer<B extends ProviderManagerBuilder<B>, C
|
||||
* method can be invoked multiple times to add multiple users.
|
||||
*
|
||||
* @param userDetails the user to add. Cannot be null.
|
||||
* @return
|
||||
* @return the {@link UserDetailsBuilder} for further customizations
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public final C withUser(UserDetails userDetails) {
|
||||
@ -82,7 +82,7 @@ public class UserDetailsManagerConfigurer<B extends ProviderManagerBuilder<B>, C
|
||||
* method can be invoked multiple times to add multiple users.
|
||||
*
|
||||
* @param userBuilder the user to add. Cannot be null.
|
||||
* @return
|
||||
* @return the {@link UserDetailsBuilder} for further customizations
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public final C withUser(User.UserBuilder userBuilder) {
|
||||
@ -95,7 +95,7 @@ public class UserDetailsManagerConfigurer<B extends ProviderManagerBuilder<B>, C
|
||||
* method can be invoked multiple times to add multiple users.
|
||||
*
|
||||
* @param username the username for the user being added. Cannot be null.
|
||||
* @return
|
||||
* @return the {@link UserDetailsBuilder} for further customizations
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public final UserDetailsBuilder withUser(String username) {
|
||||
|
@ -69,7 +69,7 @@ abstract class AbstractDaoAuthenticationConfigurer<B extends ProviderManagerBuil
|
||||
* {@link DaoAuthenticationProvider}. The default is to use plain text.
|
||||
*
|
||||
* @param passwordEncoder The {@link PasswordEncoder} to use.
|
||||
* @return
|
||||
* @return the {@link AbstractDaoAuthenticationConfigurer} for further customizations
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public C passwordEncoder(PasswordEncoder passwordEncoder) {
|
||||
|
@ -118,7 +118,7 @@ public class GlobalMethodSecurityConfiguration
|
||||
* {@link MethodInterceptor}.
|
||||
* </p>
|
||||
*
|
||||
* @return
|
||||
* @return the {@link MethodInterceptor}.
|
||||
* @throws Exception
|
||||
*/
|
||||
@Bean
|
||||
@ -204,7 +204,7 @@ public class GlobalMethodSecurityConfiguration
|
||||
* {@link AfterInvocationManager}
|
||||
* </p>
|
||||
*
|
||||
* @return
|
||||
* @return the {@link AfterInvocationManager} to use
|
||||
*/
|
||||
protected AfterInvocationManager afterInvocationManager() {
|
||||
if (prePostEnabled()) {
|
||||
@ -225,7 +225,7 @@ public class GlobalMethodSecurityConfiguration
|
||||
* Provide a custom {@link RunAsManager} for the default implementation of
|
||||
* {@link #methodSecurityInterceptor()}. The default is null.
|
||||
*
|
||||
* @return
|
||||
* @return the {@link RunAsManager} to use
|
||||
*/
|
||||
protected RunAsManager runAsManager() {
|
||||
return null;
|
||||
@ -241,7 +241,7 @@ public class GlobalMethodSecurityConfiguration
|
||||
* <li>{@link AuthenticatedVoter}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @return
|
||||
* @return the {@link AccessDecisionManager} to use
|
||||
*/
|
||||
protected AccessDecisionManager accessDecisionManager() {
|
||||
List<AccessDecisionVoter<? extends Object>> decisionVoters = new ArrayList<AccessDecisionVoter<? extends Object>>();
|
||||
@ -270,7 +270,7 @@ public class GlobalMethodSecurityConfiguration
|
||||
* {@link MethodSecurityExpressionHandler}
|
||||
* </p>
|
||||
*
|
||||
* @return
|
||||
* @return the {@link MethodSecurityExpressionHandler} to use
|
||||
*/
|
||||
protected MethodSecurityExpressionHandler createExpressionHandler() {
|
||||
return defaultMethodExpressionHandler;
|
||||
@ -307,7 +307,7 @@ public class GlobalMethodSecurityConfiguration
|
||||
* {@link #configure(AuthenticationManagerBuilder)} was not overridden, then an
|
||||
* {@link AuthenticationManager} is attempted to be autowired by type.
|
||||
*
|
||||
* @return
|
||||
* @return the {@link AuthenticationManager} to use
|
||||
*/
|
||||
protected AuthenticationManager authenticationManager() throws Exception {
|
||||
if (authenticationManager == null) {
|
||||
@ -346,7 +346,7 @@ public class GlobalMethodSecurityConfiguration
|
||||
* {@link #customMethodSecurityMetadataSource()} and the attributes on
|
||||
* {@link EnableGlobalMethodSecurity}.
|
||||
*
|
||||
* @return
|
||||
* @return the {@link MethodSecurityMetadataSource}
|
||||
*/
|
||||
@Bean
|
||||
public MethodSecurityMetadataSource methodSecurityMetadataSource() {
|
||||
@ -379,7 +379,7 @@ public class GlobalMethodSecurityConfiguration
|
||||
* Creates the {@link PreInvocationAuthorizationAdvice} to be used. The default is
|
||||
* {@link ExpressionBasedPreInvocationAdvice}.
|
||||
*
|
||||
* @return
|
||||
* @return the {@link PreInvocationAuthorizationAdvice}
|
||||
*/
|
||||
@Bean
|
||||
public PreInvocationAuthorizationAdvice preInvocationAuthorizationAdvice() {
|
||||
|
@ -327,7 +327,7 @@ public final class HttpSecurity extends
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* @return
|
||||
* @return the {@link HeadersConfigurer} for further customizations
|
||||
* @throws Exception
|
||||
* @see HeadersConfigurer
|
||||
*/
|
||||
@ -643,7 +643,7 @@ public final class HttpSecurity extends
|
||||
*
|
||||
* @see #requestMatcher(RequestMatcher)
|
||||
*
|
||||
* @return
|
||||
* @return the {@link ExpressionUrlAuthorizationConfigurer} for further customizations
|
||||
* @throws Exception
|
||||
*/
|
||||
public ExpressionUrlAuthorizationConfigurer<HttpSecurity>.ExpressionInterceptUrlRegistry authorizeRequests()
|
||||
@ -763,7 +763,7 @@ public final class HttpSecurity extends
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* @return
|
||||
* @return the {@link LogoutConfigurer} for further customizations
|
||||
* @throws Exception
|
||||
*/
|
||||
public LogoutConfigurer<HttpSecurity> logout() throws Exception {
|
||||
@ -826,7 +826,7 @@ public final class HttpSecurity extends
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* @return
|
||||
* @return the {@link AnonymousConfigurer} for further customizations
|
||||
* @throws Exception
|
||||
*/
|
||||
public AnonymousConfigurer<HttpSecurity> anonymous() throws Exception {
|
||||
@ -890,7 +890,7 @@ public final class HttpSecurity extends
|
||||
*
|
||||
* @see FormLoginConfigurer#loginPage(String)
|
||||
*
|
||||
* @return
|
||||
* @return the {@link FormLoginConfigurer} for further customizations
|
||||
* @throws Exception
|
||||
*/
|
||||
public FormLoginConfigurer<HttpSecurity> formLogin() throws Exception {
|
||||
|
@ -235,7 +235,7 @@ public final class WebSecurity extends
|
||||
|
||||
/**
|
||||
* Gets the {@link SecurityExpressionHandler} to be used.
|
||||
* @return
|
||||
* @return the {@link SecurityExpressionHandler} for further customizations
|
||||
*/
|
||||
public SecurityExpressionHandler<FilterInvocation> getExpressionHandler() {
|
||||
return expressionHandler;
|
||||
@ -243,7 +243,7 @@ public final class WebSecurity extends
|
||||
|
||||
/**
|
||||
* Gets the {@link WebInvocationPrivilegeEvaluator} to be used.
|
||||
* @return
|
||||
* @return the {@link WebInvocationPrivilegeEvaluator} for further customizations
|
||||
*/
|
||||
public WebInvocationPrivilegeEvaluator getPrivilegeEvaluator() {
|
||||
if (privilegeEvaluator != null) {
|
||||
|
@ -88,7 +88,7 @@ public class WebSecurityConfiguration implements ImportAware, BeanClassLoaderAwa
|
||||
|
||||
/**
|
||||
* Creates the Spring Security Filter Chain
|
||||
* @return
|
||||
* @return the {@link Filter} that represents the security filter chain
|
||||
* @throws Exception
|
||||
*/
|
||||
@Bean(name = AbstractSecurityWebApplicationInitializer.DEFAULT_FILTER_NAME)
|
||||
|
@ -257,7 +257,7 @@ public abstract class WebSecurityConfigurerAdapter implements
|
||||
* {@link AuthenticationManagerBuilder} that was passed in. Otherwise, autowire the
|
||||
* {@link AuthenticationManager} by type.
|
||||
*
|
||||
* @return
|
||||
* @return the {@link AuthenticationManager} to use
|
||||
* @throws Exception
|
||||
*/
|
||||
protected AuthenticationManager authenticationManager() throws Exception {
|
||||
@ -291,7 +291,7 @@ public abstract class WebSecurityConfigurerAdapter implements
|
||||
*
|
||||
* To change the instance returned, developers should change
|
||||
* {@link #userDetailsService()} instead
|
||||
* @return
|
||||
* @return the {@link UserDetailsService}
|
||||
* @throws Exception
|
||||
* @see #userDetailsService()
|
||||
*/
|
||||
@ -308,7 +308,7 @@ public abstract class WebSecurityConfigurerAdapter implements
|
||||
* {@link ApplicationContext}. Developers should override this method when changing
|
||||
* the instance of {@link #userDetailsServiceBean()}.
|
||||
*
|
||||
* @return
|
||||
* @return the {@link UserDetailsService} to use
|
||||
*/
|
||||
protected UserDetailsService userDetailsService() {
|
||||
AuthenticationManagerBuilder globalAuthBuilder = context
|
||||
|
@ -181,7 +181,7 @@ public abstract class AbstractAuthenticationFilterConfigurer<B extends HttpSecur
|
||||
|
||||
/**
|
||||
* Equivalent of invoking permitAll(true)
|
||||
* @return
|
||||
* @return the {@link FormLoginConfigurer} for additional customization
|
||||
*/
|
||||
public final T permitAll() {
|
||||
return permitAll(true);
|
||||
@ -364,7 +364,7 @@ public abstract class AbstractAuthenticationFilterConfigurer<B extends HttpSecur
|
||||
/**
|
||||
* Gets the URL to send users to if authentication fails
|
||||
*
|
||||
* @return
|
||||
* @return the URL to send users if authentication fails (e.g. "/login?error").
|
||||
*/
|
||||
protected final String getFailureUrl() {
|
||||
return failureUrl;
|
||||
|
@ -188,7 +188,7 @@ public final class ChannelSecurityConfigurer<H extends HttpSecurityBuilder<H>> e
|
||||
* Sets the {@link ChannelProcessor} instances to use in
|
||||
* {@link ChannelDecisionManagerImpl}
|
||||
* @param channelProcessors
|
||||
* @return
|
||||
* @return the {@link ChannelSecurityConfigurer} for further customizations
|
||||
*/
|
||||
public ChannelRequestMatcherRegistry channelProcessors(
|
||||
List<ChannelProcessor> channelProcessors) {
|
||||
@ -200,7 +200,7 @@ public final class ChannelSecurityConfigurer<H extends HttpSecurityBuilder<H>> e
|
||||
* Return the {@link SecurityBuilder} when done using the
|
||||
* {@link SecurityConfigurer}. This is useful for method chaining.
|
||||
*
|
||||
* @return
|
||||
* @return the type of {@link HttpSecurityBuilder} that is being configured
|
||||
*/
|
||||
public H and() {
|
||||
return ChannelSecurityConfigurer.this.and();
|
||||
|
@ -442,7 +442,7 @@ public class HeadersConfigurer<H extends HttpSecurityBuilder<H>> extends
|
||||
* application.
|
||||
* </p>
|
||||
*
|
||||
* @return
|
||||
* @return the {@link HeadersConfigurer} for additional customization.
|
||||
*/
|
||||
public HeadersConfigurer<H> sameOrigin() {
|
||||
writer = new XFrameOptionsHeaderWriter(XFrameOptionsMode.SAMEORIGIN);
|
||||
|
@ -45,7 +45,7 @@ public final class PortMapperConfigurer<H extends HttpSecurityBuilder<H>> extend
|
||||
/**
|
||||
* Allows specifying the {@link PortMapper} instance.
|
||||
* @param portMapper
|
||||
* @return
|
||||
* @return the {@link PortMapperConfigurer} for further customizations
|
||||
*/
|
||||
public PortMapperConfigurer<H> portMapper(PortMapper portMapper) {
|
||||
this.portMapper = portMapper;
|
||||
|
@ -99,7 +99,7 @@ public final class UrlAuthorizationConfigurer<H extends HttpSecurityBuilder<H>>
|
||||
* The StandardInterceptUrlRegistry is what users will interact with after applying
|
||||
* the {@link UrlAuthorizationConfigurer}.
|
||||
*
|
||||
* @return
|
||||
* @return the {@link ExpressionUrlAuthorizationConfigurer} for further customizations
|
||||
*/
|
||||
public StandardInterceptUrlRegistry getRegistry() {
|
||||
return REGISTRY;
|
||||
@ -198,7 +198,7 @@ public final class UrlAuthorizationConfigurer<H extends HttpSecurityBuilder<H>>
|
||||
* provided {@link ConfigAttribute} instances
|
||||
* @param configAttributes the {@link ConfigAttribute} instances that should be mapped
|
||||
* by the {@link RequestMatcher} instances
|
||||
* @return the {@link UrlAuthorizationConfigurer} for further customizations
|
||||
* @return the {@link ExpressionUrlAuthorizationConfigurer} for further customizations
|
||||
*/
|
||||
private StandardInterceptUrlRegistry addMapping(
|
||||
Iterable<? extends RequestMatcher> requestMatchers,
|
||||
|
@ -479,7 +479,7 @@ public final class OpenIDLoginConfigurer<H extends HttpSecurityBuilder<H>> exten
|
||||
/**
|
||||
* The OpenID attribute type.
|
||||
* @param type
|
||||
* @return
|
||||
* @return the {@link AttributeConfigurer} for further customizations
|
||||
*/
|
||||
public AttributeConfigurer type(String type) {
|
||||
this.type = type;
|
||||
|
@ -57,7 +57,6 @@ public class ReactiveUserDetailsServiceResourceFactoryBean
|
||||
* Sets the location of a Resource that is a Properties file in the format defined in {@link UserDetailsResourceFactoryBean}.
|
||||
*
|
||||
* @param resourceLocation the location of the properties file that contains the users (i.e. "classpath:users.properties")
|
||||
* @return the UserDetailsResourceFactoryBean
|
||||
*/
|
||||
public void setResourceLocation(String resourceLocation) {
|
||||
this.userDetails.setResourceLocation(resourceLocation);
|
||||
|
@ -110,7 +110,7 @@ public final class WebSocketMessageBrokerSecurityBeanDefinitionParser implements
|
||||
/**
|
||||
* @param element
|
||||
* @param parserContext
|
||||
* @return
|
||||
* @return the {@link BeanDefinition}
|
||||
*/
|
||||
public BeanDefinition parse(Element element, ParserContext parserContext) {
|
||||
BeanDefinitionRegistry registry = parserContext.getRegistry();
|
||||
|
@ -139,7 +139,7 @@ public class SecurityMockServerConfigurers {
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the WebServerExchange using {@code {@link SecurityMockServerConfigurers#mockUser(UserDetails)}. Defaults to use a
|
||||
* Updates the WebServerExchange using {@code {@link SecurityMockServerConfigurers#mockUser(UserDetails)}}. Defaults to use a
|
||||
* password of "password" and granted authorities of "ROLE_USER".
|
||||
*/
|
||||
public static class UserExchangeMutator implements WebTestClientConfigurer, MockServerConfigurer {
|
||||
|
@ -139,7 +139,7 @@ public final class SecurityMockMvcRequestBuilders {
|
||||
* Specifies the URL to POST to. Default is "/login"
|
||||
*
|
||||
* @param loginProcessingUrl the URL to POST to. Default is "/login"
|
||||
* @return
|
||||
* @return the {@link FormLoginRequestBuilder} for additional customizations
|
||||
*/
|
||||
public FormLoginRequestBuilder loginProcessingUrl(String loginProcessingUrl) {
|
||||
this.loginProcessingUrl = loginProcessingUrl;
|
||||
|
Loading…
x
Reference in New Issue
Block a user