Package org.silverpeas.mobile.server.dao.token

## Class JDBCTokenRequester

- java.lang.Object
- - org.silverpeas.mobile.server.dao.token.JDBCTokenRequester

-     @Singleton
      public class JDBCTokenRequester
      extends Object

  Author:
    svu

- - ### Constructor Summary

    Constructors
    Modifier | Constructor | Description
    --- | --- | ---
    `protected` | `JDBCTokenRequester()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `List<String>` | `getTokens​(Connection con, String userId)` |
    `void` | `removeToken​(Connection con, String userId, String token)` |
    `void` | `saveToken​(Connection con, String userId, String token)` |

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

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

- - ### Constructor Detail

    - #### JDBCTokenRequester

          protected JDBCTokenRequester()

  - ### Method Detail

    - #### saveToken

          public void saveToken​(Connection con,
                                String userId,
                                String token)
                         throws SQLException

      Throws:
        `SQLException`

    - #### getTokens

          public List<String> getTokens​(Connection con,
                                        String userId)
                                 throws SQLException

      Throws:
        `SQLException`

    - #### removeToken

          public void removeToken​(Connection con,
                                  String userId,
                                  String token)
                           throws SQLException

      Throws:
        `SQLException`