|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dlese.dpc.schemedit.security.auth.AuthUtils
public class AuthUtils
| Field Summary | |
|---|---|
static NSDLLdapClient |
ldapClient
NOT YET DOCUMENTED |
| Constructor Summary | |
|---|---|
AuthUtils()
|
|
| Method Summary | |
|---|---|
static AppConfigurationEntry |
getConfiguredLoginModule(String loginModuleClass)
Gets the the specified AppConfigurationEntry from the login configuration |
static List |
getConfiguredLoginModules()
Gets the configuredLoginModules as list of loginModule class names |
static List |
getConfiguredLoginModules(boolean verbose)
Gets the configuredLoginModules as list of loginModule class names, optionally printing if "verbose" is true. |
static Document |
getLdapUserInfo(String searchString,
String ldapField)
Searches an LDAP directory and returns results in the form of a dom4j.Document. |
static String |
getPasswordFile()
Gets the passwordFile attribute of the AuthUtils class |
static List |
getTokens(String s)
Splits a string into tokens around ',' |
static List |
getTokens(String s,
String delimiter)
Splits a string into tokens around the provided delimiter |
static String |
joinTokens(List tokens)
Joins a list of tokens into a comma-delimited string |
static String |
joinTokens(List tokens,
String joinStr)
Joins a list of tokens using provided delimiter. |
static boolean |
loginModuleEnabled(String loginModuleClass)
NOT YET DOCUMENTED |
static boolean |
permitted(Subject subj,
Permission p)
NOT USED - returns true if provided subject has provided permission |
static void |
reportConfiguredLoginModules()
Gets (and prints) the configuredLoginModules as list of loginModule class names |
static void |
showSubject(Subject _mySubject)
Debugging - prints a string representation of provided Subject |
static void |
showSubject(Subject _mySubject,
String msg)
Debugging - prints a string representation of provided Subjec |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static NSDLLdapClient ldapClient
| Constructor Detail |
|---|
public AuthUtils()
| Method Detail |
|---|
public static void showSubject(Subject _mySubject)
_mySubject - the subject to display
public static void showSubject(Subject _mySubject,
String msg)
_mySubject - the subject to displaymsg - a message to display along with subjectpublic static List getConfiguredLoginModules()
public static void reportConfiguredLoginModules()
public static List getConfiguredLoginModules(boolean verbose)
verbose - to display configured modules
public static AppConfigurationEntry getConfiguredLoginModule(String loginModuleClass)
loginModuleClass - class name of loginModule to get
public static boolean loginModuleEnabled(String loginModuleClass)
loginModuleClass - NOT YET DOCUMENTED
public static String getPasswordFile()
public static Document getLdapUserInfo(String searchString,
String ldapField)
throws Exception
NOTE: currently supports NSDL ldap only!
searchString - the search stringldapField - either "cn" or "uid"
Exception - NOT YET DOCUMENTEDpublic static List getTokens(String s)
s - the string to split
public static List getTokens(String s,
String delimiter)
s - the string to splitdelimiter - string to split by
public static String joinTokens(List tokens)
tokens - list to be joined
public static String joinTokens(List tokens,
String joinStr)
tokens - list to be joinedjoinStr - string to be inserted between tokens
public static boolean permitted(Subject subj,
Permission p)
subj - the subjectp - the permission
|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||