Package com.flowable.core.idm.api
Interface TokenAuthenticationBuilder
- All Known Implementing Classes:
TokenAuthenticationBuilderImpl
Deprecated.
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.The granted group access for this token.addGroups
(Collection<String> groupKeys) Deprecated.The granted groups access for this token.create()
Deprecated.Create the token.Deprecated.The id of the user to which the token belongs.Deprecated.The duration for which the token is valid.validUntil
(Instant validUntil) Deprecated.Until when the token is valid.
-
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
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
Deprecated.The duration for which the token is valid. It must be a positive duration. This is mutually exclusive withvalidUntil(Instant)
.- Parameters:
validityDuration
- the positive duration
-
validUntil
Deprecated.Until when the token is valid. This is mutually exclusive withvalidFor(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 throughToken.getTokenData()
.- Returns:
- the created token
-
AccessTokenBuilder
instead