Преглед на файлове

SEC-988: Added Javadoc for UserDetailsChecker interface.

Luke Taylor преди 17 години
родител
ревизия
8cfd515b27
променени са 1 файла, в които са добавени 17 реда и са изтрити 0 реда
  1. 17 0
      core/src/main/java/org/springframework/security/userdetails/UserDetailsChecker.java

+ 17 - 0
core/src/main/java/org/springframework/security/userdetails/UserDetailsChecker.java

@@ -1,10 +1,27 @@
 package org.springframework.security.userdetails;
 
+import org.springframework.security.userdetails.checker.AccountStatusUserDetailsChecker;
+
 /**
+ * Called by classes which make use of a {@link UserDetailsService} to check the status of the loaded 
+ * <tt>UserDetails</tt> object. Typically this will involve examining the various flags associated with the account and
+ * raising an exception if the information cannot be used (for example if the user account is locked or disabled), but 
+ * a custom implementation could perform any checks it wished.
+ * <p> 
+ * The intention is that this interface should only be used for checks on the persistent data associated with the user.
+ * It should not involved in making any authentication decisions based on a submitted authentication request. 
+ * 
  * @author Luke Taylor
  * @version $Id$
  * @since 2.0
+ * 
+ * @see AccountStatusUserDetailsChecker
+ * @see org.springframework.security.AccountStatusException
  */
 public interface UserDetailsChecker {
+    /**
+     * Examines the User
+     * @param toCheck the UserDetails instance whose status should be checked.
+     */
     void check(UserDetails toCheck);
 }