ome.security.auth
Class LdapConfig

java.lang.Object
  extended by ome.security.auth.LdapConfig

public class LdapConfig
extends Object

Static methods for dealing with LDAP (DN) and the "password" table. Used primarily by ome.security.JBossLoginModule

Since:
3.0-Beta3
Author:
Aleksandra Tarkowska, A.Tarkowska at dundee.ac.uk
See Also:
SecuritySystem, LdapImpl

Constructor Summary
LdapConfig(boolean enabled, String newUserGroup, String userFilter, String groupFilter, String userMapping, String groupMapping)
          Passes all values to LdapConfig(boolean, String, String, String, String, String, boolean) but sets syncOnLogin to false.
LdapConfig(boolean enabled, String newUserGroup, String userFilter, String groupFilter, String userMapping, String groupMapping, boolean syncOnLogin)
          Base constructor which stores all parse(String) and stores all values for later lookup.
 
Method Summary
 String getGroupAttribute(String key)
           
 org.springframework.ldap.filter.Filter getGroupFilter()
           
 String getNewUserGroup()
           
 String getUserAttribute(String key)
           
 org.springframework.ldap.filter.Filter getUserFilter()
           
 boolean isEnabled()
           
 boolean isSyncOnLogin()
           
protected  Map<String,String> parse(String mapping)
           
 org.springframework.ldap.filter.Filter usernameFilter(String username)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapConfig

public LdapConfig(boolean enabled,
                  String newUserGroup,
                  String userFilter,
                  String groupFilter,
                  String userMapping,
                  String groupMapping)
Passes all values to LdapConfig(boolean, String, String, String, String, String, boolean) but sets syncOnLogin to false.

Parameters:
enabled -
newUserGroup -
userFilter -
groupFilter -
userMapping -
groupMapping -

LdapConfig

public LdapConfig(boolean enabled,
                  String newUserGroup,
                  String userFilter,
                  String groupFilter,
                  String userMapping,
                  String groupMapping,
                  boolean syncOnLogin)
Base constructor which stores all parse(String) and stores all values for later lookup.

Parameters:
enabled -
newUserGroup -
userFilter -
groupFilter -
userMapping -
groupMapping -
syncOnLogin -
Method Detail

usernameFilter

public org.springframework.ldap.filter.Filter usernameFilter(String username)

isEnabled

public boolean isEnabled()

isSyncOnLogin

public boolean isSyncOnLogin()

getNewUserGroup

public String getNewUserGroup()

getUserFilter

public org.springframework.ldap.filter.Filter getUserFilter()

getGroupFilter

public org.springframework.ldap.filter.Filter getGroupFilter()

getUserAttribute

public String getUserAttribute(String key)

getGroupAttribute

public String getGroupAttribute(String key)

parse

protected Map<String,String> parse(String mapping)


OmeroJava Api

Version: 4.3.4-dbcbce5a-b4

Copyright © 2009 The University of Dundee. All Rights Reserved.