[jboss-cvs] jboss-seam/seam-gen/src ...

Gavin King gavin.king at jboss.com
Tue Jan 30 23:07:27 EST 2007


  User: gavin   
  Date: 07/01/30 23:07:27

  Added:       seam-gen/src  Authenticator.java
  Log:
  add security to seam-gen JBSEAM-719
  
  Revision  Changes    Path
  1.1      date: 2007/01/31 04:07:27;  author: gavin;  state: Exp;jboss-seam/seam-gen/src/Authenticator.java
  
  Index: Authenticator.java
  ===================================================================
  package @actionPackage@;
  
  import java.util.Set;
  
  import org.jboss.seam.annotations.Logger;
  import org.jboss.seam.annotations.Name;
  import org.jboss.seam.log.Log;
  
  
  @Name("authenticator")
  public class Authenticator
  {
      @Logger Log log;
     
      public boolean authenticate(String username, String password, Set<String> roles)
      {
          log.info("authenticating #0", username);
          //write your authentication logic here,
          //return true if the authentication was
          //successful, false otherwise
          return true;
      }
  }
  
  
  



More information about the jboss-cvs-commits mailing list