diff --git a/src/docbkx/jaas-auth-provider.xml b/src/docbkx/jaas-auth-provider.xml
index 62a0aa21f8..5902e619ac 100644
--- a/src/docbkx/jaas-auth-provider.xml
+++ b/src/docbkx/jaas-auth-provider.xml
@@ -27,7 +27,7 @@ JAASTest {
sample.SampleLoginModule required;
};
Like all Spring Security beans, the
- JaasAuthenticationProvider is configured via the
+ JaasAuthenticationProvider is configured via the
application context. The following definitions would correspond to the
above JAAS login configuration file:
The CallbackHandlers and
- AuthorityGranters are discussed below.
+ AuthorityGranters are discussed below.
JAAS CallbackHandler
@@ -105,26 +105,26 @@ JAASTest {
AuthorityGranter interface.
An AuthorityGranter is responsible for
- inspecting a JAAS principal and returning a
- String. The
- JaasAuthenticationProvider then creates a
- JaasGrantedAuthority (which implements Spring
+ inspecting a JAAS principal and returning a set of
+ Strings, representing the authorities assigned to the principal.
+ For each returned authority string, the
+ JaasAuthenticationProvider creates a
+ JaasGrantedAuthority (which implements Spring
Security’s GrantedAuthority interface) containing
- both the AuthorityGranter-returned
- String and the JAAS principal that the
- AuthorityGranter was passed. The
- JaasAuthenticationProvider obtains the JAAS
+ the authority string and the JAAS principal that the
+ AuthorityGranter was passed. The
+ JaasAuthenticationProvider obtains the JAAS
principals by firstly successfully authenticating the user’s
credentials using the JAAS LoginModule, and then
accessing the LoginContext it returns. A call to
LoginContext.getSubject().getPrincipals() is
made, with each resulting principal passed to each
- AuthorityGranter defined against the
+ AuthorityGranter defined against the
JaasAuthenticationProvider.setAuthorityGranters(List)
property.
Spring Security does not include any production
- AuthorityGranters given that every JAAS principal
+ AuthorityGranters given that every JAAS principal
has an implementation-specific meaning. However, there is a
TestAuthorityGranter in the unit tests that
demonstrates a simple AuthorityGranter