|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouperClient.util.GrouperClientCommonUtils
edu.internet2.middleware.grouperClient.util.GrouperClientUtils
public class GrouperClientUtils
utility methods specific to grouper client
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.internet2.middleware.grouperClient.util.GrouperClientCommonUtils |
---|
GrouperClientCommonUtils.CommandResult |
Field Summary |
---|
Fields inherited from class edu.internet2.middleware.grouperClient.util.GrouperClientCommonUtils |
---|
DATE_FORMAT, DATE_MINUTES_SECONDS_FORMAT, DATE_MINUTES_SECONDS_NO_SLASH_FORMAT, DEFAULT_BUFFER_SIZE, EMPTY, EMPTY_OBJECT_ARRAY, EMPTY_STRING_ARRAY, INDEX_NOT_FOUND, LOG_ERROR, NOT_FOUND, ONE_GB, ONE_KB, ONE_MB, TIMESTAMP_FORMAT, TIMESTAMP_NO_SLASH_FORMAT |
Constructor Summary | |
---|---|
GrouperClientUtils()
|
Method Summary | |
---|---|
static java.lang.String |
cacheDirectoryName()
name of the cache directory without trailing slash |
static java.lang.String |
decryptFromFileIfFileExists(java.lang.String pass,
java.lang.StringBuilder logInfo)
decrypt a pass from a file if the file exists (i.e. |
static java.lang.String |
encryptKey()
|
static java.lang.String |
encryptSha(java.lang.String plaintext)
encrypt a message to SHA with base 64 |
static java.util.Map<java.lang.String,java.lang.String> |
grouperClientOverrideMap()
Deprecated. use GrouperClientConfig.retrieveConfig().propertiesOverrideMap() instead |
static java.util.Properties |
grouperClientProperties()
Deprecated. use GrouperClientConfig.retrieveConfig().properties() instead |
static java.lang.String |
propertiesValue(java.lang.String key,
boolean required)
Deprecated. use GrouperClientConfig.retrieveConfig().propertyValueString instead |
static boolean |
propertiesValueBoolean(java.lang.String key,
boolean defaultValue,
boolean required)
Deprecated. use GrouperClientConfig.retrieveConfig().propertyValueBoolean instead |
static int |
propertiesValueInt(java.lang.String key,
int defaultValue,
boolean required)
Deprecated. GrouperClientConfig.retrieveConfig().propertyValueInt |
static Log |
retrieveLog(java.lang.Class<?> theClass)
|
static java.lang.String |
subjectAttributeValue(WsSubject wsSubject,
java.lang.String[] attributeNames,
java.lang.String attributeName)
get the attribute value of an attribute name of a subject |
static java.lang.String |
substituteExpressionLanguage(java.lang.String stringToParse,
java.util.Map<java.lang.String,java.lang.Object> variableMap)
substitute an EL for objects. |
static java.lang.String |
substituteExpressionLanguage(java.lang.String stringToParse,
java.util.Map<java.lang.String,java.lang.Object> variableMap,
boolean allowStaticClasses,
boolean silent,
boolean lenient,
boolean logOnNull)
substitute an EL for objects |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GrouperClientUtils()
Method Detail |
---|
public static Log retrieveLog(java.lang.Class<?> theClass)
theClass
-
@Deprecated public static java.util.Map<java.lang.String,java.lang.String> grouperClientOverrideMap()
@Deprecated public static java.util.Properties grouperClientProperties()
@Deprecated public static java.lang.String propertiesValue(java.lang.String key, boolean required)
key
- required
-
@Deprecated public static boolean propertiesValueBoolean(java.lang.String key, boolean defaultValue, boolean required)
key
- defaultValue
- required
-
@Deprecated public static int propertiesValueInt(java.lang.String key, int defaultValue, boolean required)
key
- defaultValue
- required
-
public static java.lang.String substituteExpressionLanguage(java.lang.String stringToParse, java.util.Map<java.lang.String,java.lang.Object> variableMap)
stringToParse
- variableMap
-
public static java.lang.String substituteExpressionLanguage(java.lang.String stringToParse, java.util.Map<java.lang.String,java.lang.Object> variableMap, boolean allowStaticClasses, boolean silent, boolean lenient, boolean logOnNull)
stringToParse
- variableMap
- allowStaticClasses
- if true allow static classes not registered with contextsilent
- if silent mode, swallow exceptions (warn), and dont warn when variable not foundlenient
- false if undefined variables should throw an exception. if lenient is true (default)
then undefined variables are nulllogOnNull
- if null output of substitution should be logged
public static java.lang.String subjectAttributeValue(WsSubject wsSubject, java.lang.String[] attributeNames, java.lang.String attributeName)
wsSubject
- subjectattributeNames
- list of attribute names in the subjectattributeName
- to query
public static java.lang.String encryptKey()
public static java.lang.String decryptFromFileIfFileExists(java.lang.String pass, java.lang.StringBuilder logInfo)
pass
- logInfo
- if not null, put log info in there
public static java.lang.String cacheDirectoryName()
public static java.lang.String encryptSha(java.lang.String plaintext)
plaintext
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |