net.i2p.i2pcontrol.security

## Class AuthToken

- java.lang.Object
- - net.i2p.i2pcontrol.security.AuthToken

-     public class AuthToken
      extends Object

  Authentication token for I2PControl API access. Provides time-limited authentication tokens for secure API access.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `(package private) static int` | `VALIDITY_TIME`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AuthToken(SecurityManager secMan, String password)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getExpiryTime()`
    `String` | `getId()`
    `int` | `hashCode()`
    `boolean` | `isValid()` Checks whether the AuthToken has expired.
    `String` | `toString()`

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

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

- - ### Field Detail

    - #### VALIDITY_TIME

          static final int VALIDITY_TIME

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### AuthToken

          public AuthToken(SecurityManager secMan,
                           String password)

  - ### Method Detail

    - #### getExpiryTime

          public String getExpiryTime()

    - #### getId

          public String getId()

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### isValid

          public boolean isValid()

      Checks whether the AuthToken has expired.
      Returns:
        True if AuthToken hasn't expired. False in any other case.

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`