Interface TokenAuthenticationBuilder

    • Method Detail

      • userId

        TokenAuthenticationBuilder userId​(java.lang.String userId)
        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​(java.lang.String groupKey)
        The granted group access for this token.
        Parameters:
        groupKey - the key of the group
      • addGroups

        TokenAuthenticationBuilder addGroups​(java.util.Collection<java.lang.String> groupKeys)
        The granted groups access for this token.
        Parameters:
        groupKeys - the group keys
      • validFor

        TokenAuthenticationBuilder validFor​(java.time.Duration validityDuration)
        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​(java.time.Instant validUntil)
        Until when the token is valid. This is mutually exclusive with validFor(Duration).
        Parameters:
        validUntil - the date until the token is valid
      • create

        org.flowable.idm.api.Token create()
        Create the token. The value of the token should be retrieved through Token.getTokenData().
        Returns:
        the created token