diff --git a/core/src/main/java/org/acegisecurity/providers/UsernamePasswordAuthenticationToken.java b/core/src/main/java/org/acegisecurity/providers/UsernamePasswordAuthenticationToken.java index ca7b6edf94..510aa8bb29 100644 --- a/core/src/main/java/org/acegisecurity/providers/UsernamePasswordAuthenticationToken.java +++ b/core/src/main/java/org/acegisecurity/providers/UsernamePasswordAuthenticationToken.java @@ -1,4 +1,4 @@ -/* Copyright 2004 Acegi Technology Pty Limited +/* Copyright 2004, 2005 Acegi Technology Pty Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -71,6 +71,14 @@ public class UsernamePasswordAuthenticationToken return this.authenticated; } + /** + * Generally you should not call this method, because on subsequent + * requests the Authentication will be recreated by the + * relevant AuthenticationManager. This method is mostly of + * interest to AuthenticationManagers and unit tests. + * + * @param authorities the new authorities to apply + */ public void setAuthorities(GrantedAuthority[] authorities) { this.authorities = authorities; }