org.openstreetmap.josm.plugins.streetside.oauth

## Class StreetsideUser

- java.lang.Object
- - org.openstreetmap.josm.plugins.streetside.oauth.StreetsideUser

-     public final class StreetsideUser
      extends Object

  Represents the current logged in user and stores its data.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `private static String` | `imagesHash`
    `private static String` | `imagesPolicy`
    `private static boolean` | `isTokenValid` If the stored token is valid or not.
    `private static String` | `username`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `private` | `StreetsideUser()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Map<String,String>` | `getSecrets()`
    `static String` | `getUsername()`
    `static void` | `reset()` Resets the MapillaryUser to null values.
    `static void` | `setTokenValid(boolean value)`

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

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

- - ### Field Detail

    - #### username

          private static String username

    - #### imagesPolicy

          private static String imagesPolicy

    - #### imagesHash

          private static String imagesHash

    - #### isTokenValid

          private static boolean isTokenValid

      If the stored token is valid or not.

  - ### Constructor Detail

    - #### StreetsideUser

          private StreetsideUser()

  - ### Method Detail

    - #### getUsername

          public static String getUsername()

      Returns:
        The username of the logged in user.

    - #### getSecrets

          public static Map<String,String> getSecrets()

      Returns:
        A HashMap object containing the images_policy and images_hash strings.

    - #### reset

          public static void reset()

      Resets the MapillaryUser to null values.

    - #### setTokenValid

          public static void setTokenValid(boolean value)

JOSM Plugins