Fix typos (#228)

This commit is contained in:
Johnny Lim 2016-04-13 01:11:51 +09:00 committed by Rob Winch
parent c57dba6b77
commit fe94d654ed
11 changed files with 16 additions and 16 deletions

View File

@ -51,7 +51,7 @@ public class AuthenticationConfiguration {
private boolean authenticationManagerInitialized;
private List<GlobalAuthenticationConfigurerAdapter> globalAuthConfigures = Collections
private List<GlobalAuthenticationConfigurerAdapter> globalAuthConfigurers = Collections
.emptyList();
private ObjectPostProcessor<Object> objectPostProcessor;
@ -84,14 +84,14 @@ public class AuthenticationConfiguration {
}
AuthenticationManagerBuilder authBuilder = authenticationManagerBuilder(objectPostProcessor);
for (GlobalAuthenticationConfigurerAdapter config : globalAuthConfigures) {
for (GlobalAuthenticationConfigurerAdapter config : globalAuthConfigurers) {
authBuilder.apply(config);
}
authenticationManager = authBuilder.build();
if (authenticationManager == null) {
authenticationManager = getAuthenticationMangerBean();
authenticationManager = getAuthenticationManagerBean();
}
this.authenticationManagerInitialized = true;
@ -102,7 +102,7 @@ public class AuthenticationConfiguration {
public void setGlobalAuthenticationConfigurers(
List<GlobalAuthenticationConfigurerAdapter> configurers) throws Exception {
Collections.sort(configurers, AnnotationAwareOrderComparator.INSTANCE);
this.globalAuthConfigures = configurers;
this.globalAuthConfigurers = configurers;
}
@Autowired
@ -134,7 +134,7 @@ public class AuthenticationConfiguration {
return (T) proxyFactory.getObject();
}
private AuthenticationManager getAuthenticationMangerBean() {
private AuthenticationManager getAuthenticationManagerBean() {
return lazyBean(AuthenticationManager.class);
}

View File

@ -20,7 +20,7 @@ import org.springframework.core.type.AnnotationMetadata;
import org.springframework.util.ClassUtils;
/**
* Used by {@link EnableWebSecurity} to conditionaly import
* Used by {@link EnableWebSecurity} to conditionally import
* {@link WebMvcSecurityConfiguration} when the DispatcherServlet is present on the
* classpath.
*

View File

@ -1203,7 +1203,7 @@
</xs:attribute>
<xs:attribute name="erase-credentials" type="security:boolean">
<xs:annotation>
<xs:documentation>If set to true, the AuthenticationManger will attempt to clear any credentials data in the returned Authentication object, once the user has been authenticated. Defaults to false.</xs:documentation>
<xs:documentation>If set to true, the AuthenticationManager will attempt to clear any credentials data in the returned Authentication object, once the user has been authenticated. Defaults to false.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:attributeGroup>

View File

@ -657,7 +657,7 @@ authman.attlist &=
## An alias you wish to use for the AuthenticationManager bean (not required it you are using a specific id)
attribute alias {xsd:token}?
authman.attlist &=
## If set to true, the AuthenticationManger will attempt to clear any credentials data in the returned Authentication object, once the user has been authenticated.
## If set to true, the AuthenticationManager will attempt to clear any credentials data in the returned Authentication object, once the user has been authenticated.
attribute erase-credentials {xsd:boolean}?
authentication-provider =

View File

@ -2067,7 +2067,7 @@
</xs:attribute>
<xs:attribute name="erase-credentials" type="xs:boolean">
<xs:annotation>
<xs:documentation>If set to true, the AuthenticationManger will attempt to clear any credentials data in the
<xs:documentation>If set to true, the AuthenticationManager will attempt to clear any credentials data in the
returned Authentication object, once the user has been authenticated.
</xs:documentation>
</xs:annotation>

View File

@ -659,7 +659,7 @@ authman.attlist &=
## An alias you wish to use for the AuthenticationManager bean (not required it you are using a specific id)
attribute alias {xsd:token}?
authman.attlist &=
## If set to true, the AuthenticationManger will attempt to clear any credentials data in the returned Authentication object, once the user has been authenticated.
## If set to true, the AuthenticationManager will attempt to clear any credentials data in the returned Authentication object, once the user has been authenticated.
attribute erase-credentials {xsd:boolean}?
authentication-provider =

View File

@ -2083,7 +2083,7 @@
</xs:attribute>
<xs:attribute name="erase-credentials" type="xs:boolean">
<xs:annotation>
<xs:documentation>If set to true, the AuthenticationManger will attempt to clear any credentials data in the
<xs:documentation>If set to true, the AuthenticationManager will attempt to clear any credentials data in the
returned Authentication object, once the user has been authenticated.
</xs:documentation>
</xs:annotation>

View File

@ -668,7 +668,7 @@ authman.attlist &=
## An alias you wish to use for the AuthenticationManager bean (not required it you are using a specific id)
attribute alias {xsd:token}?
authman.attlist &=
## If set to true, the AuthenticationManger will attempt to clear any credentials data in the returned Authentication object, once the user has been authenticated.
## If set to true, the AuthenticationManager will attempt to clear any credentials data in the returned Authentication object, once the user has been authenticated.
attribute erase-credentials {xsd:boolean}?
authentication-provider =

View File

@ -2114,7 +2114,7 @@
</xs:attribute>
<xs:attribute name="erase-credentials" type="xs:boolean">
<xs:annotation>
<xs:documentation>If set to true, the AuthenticationManger will attempt to clear any credentials data in the
<xs:documentation>If set to true, the AuthenticationManager will attempt to clear any credentials data in the
returned Authentication object, once the user has been authenticated.
</xs:documentation>
</xs:annotation>

View File

@ -8514,7 +8514,7 @@ This attribute allows you to define an alias name for the internal instance for
[[nsa-authentication-manager-erase-credentials]]
* **erase-credentials**
If set to true, the AuthenticationManger will attempt to clear any credentials data in the returned Authentication object, once the user has been authenticated. Literally it maps to the `eraseCredentialsAfterAuthentication` property of the `ProviderManager`. This is discussed in the <<core-services-erasing-credentials,Core Services>> chapter.
If set to true, the AuthenticationManager will attempt to clear any credentials data in the returned Authentication object, once the user has been authenticated. Literally it maps to the `eraseCredentialsAfterAuthentication` property of the `ProviderManager`. This is discussed in the <<core-services-erasing-credentials,Core Services>> chapter.
[[nsa-authentication-manager-id]]

View File

@ -91,7 +91,7 @@ public class DefaultWebInvocationPrivilegeEvaluatorTests {
}
@Test
public void allowsAccessIfAccessDecisionMangerDoes() throws Exception {
public void allowsAccessIfAccessDecisionManagerDoes() throws Exception {
Authentication token = new TestingAuthenticationToken("test", "Password",
"MOCK_INDEX");
DefaultWebInvocationPrivilegeEvaluator wipe = new DefaultWebInvocationPrivilegeEvaluator(
@ -101,7 +101,7 @@ public class DefaultWebInvocationPrivilegeEvaluatorTests {
@SuppressWarnings("unchecked")
@Test
public void deniesAccessIfAccessDecisionMangerDoes() throws Exception {
public void deniesAccessIfAccessDecisionManagerDoes() throws Exception {
Authentication token = new TestingAuthenticationToken("test", "Password",
"MOCK_INDEX");
DefaultWebInvocationPrivilegeEvaluator wipe = new DefaultWebInvocationPrivilegeEvaluator(