Class ITokenProvider.Token

java.lang.Object
com.e1c.langtool.microsoft.ITokenProvider.Token
Enclosing interface:
ITokenProvider

public static final class ITokenProvider.Token extends Object
The Token recieved form Microsoft Cognitive service authentication endpoint with Time-to-live vale (TTL).
  • Constructor Details

    • Token

      public Token(String text, long ttl)
  • Method Details

    • getText

      public String getText()
      Gets the token text.
      Returns:
      the token text
    • getTTL

      public long getTTL()
      Gets the current TTL value of time when this token will be expired.
      Returns:
      the Time-to-live vale (TTL)