com.arsdigita.kernel.security
Class UserIDLoginModule

java.lang.Object
  extended bycom.arsdigita.kernel.security.MappingLoginModule
      extended bycom.arsdigita.kernel.security.UserIDLoginModule
All Implemented Interfaces:
javax.security.auth.spi.LoginModule

public class UserIDLoginModule
extends MappingLoginModule

Translates a username to a user ID using com.arsdigita.kernel.UserAuthentication.

Author:
Sameer Ajmani

Field Summary
static String versionId
           
 
Constructor Summary
UserIDLoginModule()
           
 
Method Summary
protected  BigDecimal getUserID(String username)
          Retreieves the user ID for the given username from the database.
 void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler handler, Map shared, Map options)
           
 
Methods inherited from class com.arsdigita.kernel.security.MappingLoginModule
abort, commit, login, logout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

UserIDLoginModule

public UserIDLoginModule()
Method Detail

initialize

public void initialize(javax.security.auth.Subject subject,
                       javax.security.auth.callback.CallbackHandler handler,
                       Map shared,
                       Map options)
Specified by:
initialize in interface javax.security.auth.spi.LoginModule
Overrides:
initialize in class MappingLoginModule

getUserID

protected BigDecimal getUserID(String username)
                        throws AccountNotFoundException,
                               javax.security.auth.login.LoginException
Retreieves the user ID for the given username from the database.

Specified by:
getUserID in class MappingLoginModule
Parameters:
username - the username to look up
Returns:
the user ID for the given username.
Throws:
AccountNotFoundException - if the account does not exist.
javax.security.auth.login.LoginException - if an error occurs.


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC