com.h3c.sdn.misc

## Class LoginDescriptor

- java.lang.Object
- - com.h3c.sdn.misc.LoginDescriptor

- All Implemented Interfaces:
    LoginContext

      public class LoginDescriptor
      extends Object
      implements LoginContext

  Externally opaque descriptor holding acquired login context.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `isValid()` Predicate indicating whether the login context is valid.
    `String` | `token()` Get the login token.

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

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

- - ### Method Detail

    - #### token

          public String token()

      Get the login token.
      Returns:
        secret token

    - #### isValid

          public boolean isValid()

      Description copied from interface: `LoginContext`
      Predicate indicating whether the login context is valid.
      Specified by:
        `isValid` in interface `LoginContext`
      Returns:
        true if this login context is valid

Copyright © 2014. All Rights Reserved.