com.h3c.api.auth

## Interface Authentication

- All Known Implementing Classes:
    DefaultAuthentication

      public interface Authentication

  Abstraction of authentication record with an opaque identifying token and an expiration.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `domainId()` Get the authentication domain.
    `String` | `domainName()` Get the authentication domain name.
    `long` | `expiration()` Get the authentication expiration date/time in number of milliseconds since start of epoch.
    `Set<String>` | `roles()` Get a set of user roles.
    `String` | `token()` Authentication token uniquely identifying this authentication.
    `String` | `userId()` Get the user id.
    `String` | `userName()` Get the user name.

- - ### Method Detail

    - #### token

          String token()

      Authentication token uniquely identifying this authentication.
      Returns:
        authentication token

    - #### expiration

          long expiration()

      Get the authentication expiration date/time in number of milliseconds since start of epoch.
      Returns:
        expiration milliseconds since start of UTC epoch

    - #### userId

          String userId()

      Get the user id.
      Returns:
        unique user id

    - #### userName

          String userName()

      Get the user name.
      Returns:
        user name

    - #### domainId

          String domainId()

      Get the authentication domain.
      Returns:
        unique domain id

    - #### domainName

          String domainName()

      Get the authentication domain name.
      Returns:
        domain name

    - #### roles

          Set<String> roles()

      Get a set of user roles.
      Returns:
        set of user roles

Copyright © 2014. All Rights Reserved.