diff --git a/adapters/jboss/src/main/java/org/acegisecurity/adapters/jboss/JbossAcegiLoginModule.java b/adapters/jboss/src/main/java/org/acegisecurity/adapters/jboss/JbossAcegiLoginModule.java
index 748baa60f5..cdaa7f36e3 100644
--- a/adapters/jboss/src/main/java/org/acegisecurity/adapters/jboss/JbossAcegiLoginModule.java
+++ b/adapters/jboss/src/main/java/org/acegisecurity/adapters/jboss/JbossAcegiLoginModule.java
@@ -239,7 +239,7 @@ public class JbossAcegiLoginModule extends AbstractServerLoginModule {
super.log.debug("user is logged. redirecting to jaas classes");
identity = new PrincipalAcegiUserToken(this.key,
- response.getPrincipal().toString(),
+ response.getName(),
response.getCredentials().toString(),
response.getAuthorities());
}
diff --git a/doc/xdocs/changes.xml b/doc/xdocs/changes.xml
index fd23d40898..1f97b3f080 100644
--- a/doc/xdocs/changes.xml
+++ b/doc/xdocs/changes.xml
@@ -41,6 +41,7 @@
Silently catch NotSerializableException in AbstractProcessingFilter if rootCause is not Serializable
Remove getters and setters from JdbcDaoImpl so IoC container cannot modify MappingSqlQuerys
Refactor DAO authentication failure events under a consistent abstract superclass
+ JBoss container adapter to use getName() instead to toString() (see http://opensource.atlassian.com/projects/spring/browse/SEC-22)
Correct location of AuthenticationSimpleHttpInvokerRequestExecutor in clientContext.xml