java.lang.Object
com.tivoli.am.fim.authsvc.action.authenticator.infomap.InfoMapString

public class InfoMapString extends Object
Wrapper for a Java String passed into an InfoMap JavaScript mapping rule. Standard assignment operations will not work within the JavaScript context, only use the setValue method to update the value of this object. InfoMapString objects should only ever be created within the Java context.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance and sets the internal String value.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the internal String value.
    void
    Sets the internal String value.
    Convenience toString() so that we can read the internal value in our JavaScript context when expecting a String without needing to call getValue().

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • InfoMapString

      public InfoMapString(String value)
      Creates a new instance and sets the internal String value.
      Parameters:
      value - : The internal String value.
  • Method Details

    • setValue

      public void setValue(String value)
      Sets the internal String value. Normal assignment operations will not work within the JavaScript context, this method must be used to change value.
      Parameters:
      value - : The new value to be help by this wrapper.
    • getValue

      public String getValue()
      Returns the internal String value.
      Returns:
      The internal String value.
    • toString

      public String toString()
      Convenience toString() so that we can read the internal value in our JavaScript context when expecting a String without needing to call getValue(). For instance, imagine a JavaScript snippet where we have an InfoMapString named testVal. The following two lines are equivalent: var newVal = "test "+testVal; var newVal = "test "+testVal.getValue();
      Overrides:
      toString in class Object
      Returns:
      The internal String value.