winstone.realm
Class FileRealm

java.lang.Object
  extended by winstone.realm.FileRealm
All Implemented Interfaces:
AuthenticationRealm

public class FileRealm
extends java.lang.Object
implements AuthenticationRealm

Version:
$Id: FileRealm.java,v 1.4 2006/08/30 04:07:52 rickknowles Exp $
Author:
rickk

Constructor Summary
FileRealm(java.util.Set rolesAllowed, java.util.Map args)
          Constructor - this sets up an authentication realm, using the file supplied on the command line as a source of userNames/passwords/roles.
 
Method Summary
 AuthenticationPrincipal authenticateByUsernamePassword(java.lang.String userName, java.lang.String password)
          Authenticate the user - do we know them ? Return a principal once we know them
 AuthenticationPrincipal retrieveUser(java.lang.String userName)
          Retrieve an authenticated user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileRealm

public FileRealm(java.util.Set rolesAllowed,
                 java.util.Map args)
Constructor - this sets up an authentication realm, using the file supplied on the command line as a source of userNames/passwords/roles.

Method Detail

authenticateByUsernamePassword

public AuthenticationPrincipal authenticateByUsernamePassword(java.lang.String userName,
                                                              java.lang.String password)
Authenticate the user - do we know them ? Return a principal once we know them

Specified by:
authenticateByUsernamePassword in interface AuthenticationRealm

retrieveUser

public AuthenticationPrincipal retrieveUser(java.lang.String userName)
Retrieve an authenticated user

Specified by:
retrieveUser in interface AuthenticationRealm


Copyright © 2013. All Rights Reserved.