Interface TokenAuthenticationBuilder

All Known Implementing Classes:
TokenAuthenticationBuilderImpl

@Deprecated public interface TokenAuthenticationBuilder
Deprecated.
use AccessTokenBuilder instead
Author:
Filip Hrisafov
  • Method Details

    • userId

      Deprecated.
      The id of the user to which the token belongs. This can be any user which isn't part of the Flowable Identity Service.
      Parameters:
      userId - the id of the user
    • addGroup

      TokenAuthenticationBuilder addGroup(String groupKey)
      Deprecated.
      The granted group access for this token.
      Parameters:
      groupKey - the key of the group
    • addGroups

      Deprecated.
      The granted groups access for this token.
      Parameters:
      groupKeys - the group keys
    • validFor

      TokenAuthenticationBuilder validFor(Duration validityDuration)
      Deprecated.
      The duration for which the token is valid. It must be a positive duration. This is mutually exclusive with validUntil(Instant).
      Parameters:
      validityDuration - the positive duration
    • validUntil

      TokenAuthenticationBuilder validUntil(Instant validUntil)
      Deprecated.
      Until when the token is valid. This is mutually exclusive with validFor(Duration).
      Parameters:
      validUntil - the date until the token is valid
    • create

      Token create()
      Deprecated.
      Create the token. The value of the token should be retrieved through Token.getTokenData().
      Returns:
      the created token