Package com.flowable.idm.engine.impl
Class AccessTokenBuilderImpl
java.lang.Object
com.flowable.idm.engine.impl.AccessTokenBuilderImpl
- All Implemented Interfaces:
AccessTokenBuilder,Command<NewAccessToken>
public class AccessTokenBuilderImpl
extends Object
implements AccessTokenBuilder, Command<NewAccessToken>
- Author:
- Filip Hrisafov
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()Create the token.description(String description) The optional description that should be used for the token.execute(CommandContext commandContext) The name that should be used for the token.The id of the tenant to which the token belongs.The id of the user to which the token belongs.The duration for which the token is valid.validUntil(Instant validUntil) Until when the token is valid.
-
Field Details
-
commandExecutor
-
userId
-
tenantId
-
name
-
description
-
validFor
-
validUntil
-
-
Constructor Details
-
AccessTokenBuilderImpl
-
-
Method Details
-
userId
Description copied from interface:AccessTokenBuilderThe id of the user to which the token belongs. This can be any user which isn't part of the Identity Service.- Specified by:
userIdin interfaceAccessTokenBuilder- Parameters:
userId- the id of the user
-
tenantId
Description copied from interface:AccessTokenBuilderThe id of the tenant to which the token belongs.- Specified by:
tenantIdin interfaceAccessTokenBuilder- Parameters:
tenantId- the id of the user
-
name
Description copied from interface:AccessTokenBuilderThe name that should be used for the token.- Specified by:
namein interfaceAccessTokenBuilder- Parameters:
name- the name for the token
-
description
Description copied from interface:AccessTokenBuilderThe optional description that should be used for the token.- Specified by:
descriptionin interfaceAccessTokenBuilder- Parameters:
description- the description for the token
-
validFor
Description copied from interface:AccessTokenBuilderThe duration for which the token is valid. It must be a positive duration. This is mutually exclusive withAccessTokenBuilder.validUntil(Instant).- Specified by:
validForin interfaceAccessTokenBuilder- Parameters:
validityDuration- the positive duration
-
validUntil
Description copied from interface:AccessTokenBuilderUntil when the token is valid. This is mutually exclusive withAccessTokenBuilder.validFor(Duration).- Specified by:
validUntilin interfaceAccessTokenBuilder- Parameters:
validUntil- the date until the token is valid
-
create
Description copied from interface:AccessTokenBuilderCreate the token. The user visible value of the token should be retrieved throughNewAccessToken.getPlainTextValue().- Specified by:
createin interfaceAccessTokenBuilder- Returns:
- the created token
-
execute
- Specified by:
executein interfaceCommand<NewAccessToken>
-