public class ImageAttachmentJwtTokenService extends Object
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_TOKENS_EXPIRY_SEVEN_DAYS_IN_HOURS |
static long |
TOKENS_DISABLED |
Modifier | Constructor and Description |
---|---|
|
ImageAttachmentJwtTokenService(ImageAttachmentJwtSecretKeyService imageAttachmentJwtSecretKeyService,
ApplicationProperties applicationProperties) |
protected |
ImageAttachmentJwtTokenService(ImageAttachmentJwtSecretKeyService imageAttachmentJwtSecretKeyService,
ApplicationProperties applicationProperties,
java.util.function.Supplier<Long> currentTimeSecondsProvider) |
Modifier and Type | Method and Description |
---|---|
String |
generateToken(ImageAttachmentJwtTokenGenerateParams tokenParameters) |
Long |
getTokenExpiryHours() |
boolean |
isImageAttachmentJwtTokenEnabled() |
ImageAttachmentJwtToken |
parseToken(String jwtToken) |
public static final long TOKENS_DISABLED
public static final long DEFAULT_TOKENS_EXPIRY_SEVEN_DAYS_IN_HOURS
public ImageAttachmentJwtTokenService(ImageAttachmentJwtSecretKeyService imageAttachmentJwtSecretKeyService, ApplicationProperties applicationProperties)
protected ImageAttachmentJwtTokenService(ImageAttachmentJwtSecretKeyService imageAttachmentJwtSecretKeyService, ApplicationProperties applicationProperties, java.util.function.Supplier<Long> currentTimeSecondsProvider)
public ImageAttachmentJwtToken parseToken(String jwtToken) throws ImageAttachmentJwtParseException, ImageAttachmentJwtGenerateSecretException, ImageAttachmentJwtSecurityException
public String generateToken(ImageAttachmentJwtTokenGenerateParams tokenParameters) throws ImageAttachmentJwtGenerateSecretException
public boolean isImageAttachmentJwtTokenEnabled()
public Long getTokenExpiryHours()
Copyright © 2002-2021 Atlassian. All Rights Reserved.