From 8091b60194cbc31cbe35d5b69b30c26c4d10d261 Mon Sep 17 00:00:00 2001 From: Ben Alex Date: Tue, 12 Apr 2005 04:19:09 +0000 Subject: [PATCH] Improve Javadocs. --- .../providers/UsernamePasswordAuthenticationToken.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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; }