edu.vt.middleware.ldap.jaas
Class LdapRoleAuthorizationModule

java.lang.Object
  extended by edu.vt.middleware.ldap.jaas.AbstractLoginModule
      extended by edu.vt.middleware.ldap.jaas.LdapRoleAuthorizationModule
All Implemented Interfaces:
LoginModule

public class LdapRoleAuthorizationModule
extends AbstractLoginModule
implements LoginModule

LdapRoleAuthorizationModule provides a JAAS authentication hook into LDAP roles. No authentication is performed in this module. Role data is set for the login name in the shared state or for the name returned by the CallbackHandler.

Version:
$Revision: 1878 $ $Date: 2011-04-05 11:15:00 -0400 (Tue, 05 Apr 2011) $
Author:
Middleware Services

Field Summary
 
Fields inherited from class edu.vt.middleware.ldap.jaas.AbstractLoginModule
callbackHandler, clearPass, commitSuccess, credentials, defaultRole, logger, LOGIN_DN, LOGIN_NAME, LOGIN_PASSWORD, loginSuccess, principalGroupName, principals, roleGroupName, roles, setLdapCredential, setLdapDnPrincipal, setLdapPrincipal, sharedState, storePass, subject, tryFirstPass, useFirstPass
 
Constructor Summary
LdapRoleAuthorizationModule()
           
 
Method Summary
 void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
          
 boolean login()
          
static void main(String[] args)
          This provides command line access to a LdapRoleLoginModule.
 
Methods inherited from class edu.vt.middleware.ldap.jaas.AbstractLoginModule
abort, attributesToRoles, clearState, commit, createAuthenticator, createLdap, getCredentials, logout, storeCredentials
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.security.auth.spi.LoginModule
abort, commit, logout
 

Constructor Detail

LdapRoleAuthorizationModule

public LdapRoleAuthorizationModule()
Method Detail

initialize

public void initialize(Subject subject,
                       CallbackHandler callbackHandler,
                       Map<String,?> sharedState,
                       Map<String,?> options)

Specified by:
initialize in interface LoginModule
Overrides:
initialize in class AbstractLoginModule

login

public boolean login()
              throws LoginException

Specified by:
login in interface LoginModule
Specified by:
login in class AbstractLoginModule
Throws:
LoginException

main

public static void main(String[] args)
                 throws Exception
This provides command line access to a LdapRoleLoginModule.

Parameters:
args - String[]
Throws:
Exception - if an error occurs


Copyright © 2003-2010 Virginia Tech. All Rights Reserved.