org.olat.shibboleth.util
Class AttributeTranslator

java.lang.Object
  extended by org.olat.shibboleth.util.AttributeTranslator

public class AttributeTranslator
extends java.lang.Object


Constructor Summary
AttributeTranslator(com.anthonyeden.lib.config.Configuration attrTransConfig)
           
 
Method Summary
 java.lang.String[] getSelectableValuesForAttribute(java.lang.String attribute)
          Get all valid values for this attribute if such values are defined.
 java.util.Set<java.lang.String> getTranslateableAttributes()
          Get all attributes identifyers that can be translated
 java.lang.String translateAttribute(java.lang.String inName)
          Translate Shibboleth Attributes according to configured attribute translations
 java.util.Map<java.lang.String,java.lang.String> translateAttributesMap(java.util.Map<java.lang.String,java.lang.String> attributesMap)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeTranslator

public AttributeTranslator(com.anthonyeden.lib.config.Configuration attrTransConfig)
Method Detail

translateAttributesMap

public final java.util.Map<java.lang.String,java.lang.String> translateAttributesMap(java.util.Map<java.lang.String,java.lang.String> attributesMap)

translateAttribute

public java.lang.String translateAttribute(java.lang.String inName)
Translate Shibboleth Attributes according to configured attribute translations

Parameters:
inName -
Returns:
Translated attribute name.

getSelectableValuesForAttribute

public java.lang.String[] getSelectableValuesForAttribute(java.lang.String attribute)
Get all valid values for this attribute if such values are defined. When no values are defined, NULL will be returned.

Parameters:
attribute -
Returns:

getTranslateableAttributes

public java.util.Set<java.lang.String> getTranslateableAttributes()
Get all attributes identifyers that can be translated

Returns: