SK.gnome.dwarf.auth.login
Class PermitLoginModule

java.lang.Object
  extended bySK.gnome.dwarf.auth.login.GenericLoginModule
      extended bySK.gnome.dwarf.auth.login.PermitLoginModule
All Implemented Interfaces:
javax.security.auth.spi.LoginModule

public class PermitLoginModule
extends GenericLoginModule

This module always permits access.


Field Summary
 
Fields inherited from class SK.gnome.dwarf.auth.login.GenericLoginModule
encoder
 
Constructor Summary
PermitLoginModule()
           
 
Method Summary
protected  java.security.Principal[] validate(java.lang.String username, char[] password)
          This method always returns an array of Principal objects containing just one UserPrincipal with the name equal to username argument.
 
Methods inherited from class SK.gnome.dwarf.auth.login.GenericLoginModule
abort, commit, debug, getBooleanOption, getIntOption, getStringOption, checkPassword, initialize, isDebugOn, isIdentOn, isIgnoreCaseOn, login, logout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermitLoginModule

public PermitLoginModule()
Method Detail

validate

protected java.security.Principal[] validate(java.lang.String username,
                                             char[] password)
                                      throws javax.security.auth.login.LoginException
This method always returns an array of Principal objects containing just one UserPrincipal with the name equal to username argument. The password argument is ignored.

Specified by:
validate in class GenericLoginModule
Parameters:
username - the name of the user
password - the user password
Returns:
the array of principals representing the various user identities
Throws:
javax.security.auth.login.LoginException


Copyright (c) 1999-2005, Gnome Ltd. All rights reserved.