com.hammurapi.common

## Class MapTokenSource

- java.lang.Object
- - com.hammurapi.common.MapTokenSource

- All Implemented Interfaces:
    TokenExpander.TokenSource

      public class MapTokenSource
      extends Object
      implements TokenExpander.TokenSource

  Implementation of token source with tokens stored in a map.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MapTokenSource(Map<String,String> map)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getToken(String name)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MapTokenSource

          public MapTokenSource(Map<String,String> map)

  - ### Method Detail

    - #### getToken

          public String getToken(String name)

      Specified by:
        `getToken` in interface `TokenExpander.TokenSource`
      Parameters:
        `name` - Token name.
      Returns:
        Token value or null.