Interface TokenProvider

All Superinterfaces:
Supplier<String>
All Known Implementing Classes:
StaticTokenProvider, UsernamePasswordTokenProvider

public interface TokenProvider extends Supplier<String>
To work the APi needs a token. It can be static or dynamically generated.
Author:
Cedrick LUNVEN (@clunven)
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    get()
    Building the token.
    default String
    Building the token.
  • Method Details

    • get

      default String get()
      Specified by:
      get in interface Supplier<String>
    • getToken

      String getToken()
      Building the token.
      Returns:
      current token
    • getTokenAsString

      default String getTokenAsString()
      Building the token.
      Returns:
      current token