Package com.atlassian.jira.security.jwt
Class ImageAttachmentJwtTokenService
java.lang.Object
com.atlassian.jira.security.jwt.ImageAttachmentJwtTokenService
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionImageAttachmentJwtTokenService(ImageAttachmentJwtSecretKeyService imageAttachmentJwtSecretKeyService, ApplicationProperties applicationProperties) protectedImageAttachmentJwtTokenService(ImageAttachmentJwtSecretKeyService imageAttachmentJwtSecretKeyService, ApplicationProperties applicationProperties, Supplier<Long> currentTimeSecondsProvider) -
Method Summary
Modifier and TypeMethodDescriptiongenerateToken(ImageAttachmentJwtTokenGenerateParams tokenParameters) booleanparseToken(String jwtToken)
-
Field Details
-
TOKENS_DISABLED
public static final long TOKENS_DISABLED- See Also:
-
DEFAULT_TOKENS_EXPIRY_SEVEN_DAYS_IN_HOURS
public static final long DEFAULT_TOKENS_EXPIRY_SEVEN_DAYS_IN_HOURS- See Also:
-
-
Constructor Details
-
ImageAttachmentJwtTokenService
public ImageAttachmentJwtTokenService(ImageAttachmentJwtSecretKeyService imageAttachmentJwtSecretKeyService, ApplicationProperties applicationProperties) -
ImageAttachmentJwtTokenService
protected ImageAttachmentJwtTokenService(ImageAttachmentJwtSecretKeyService imageAttachmentJwtSecretKeyService, ApplicationProperties applicationProperties, Supplier<Long> currentTimeSecondsProvider)
-
-
Method Details
-
parseToken
public ImageAttachmentJwtToken parseToken(String jwtToken) throws ImageAttachmentJwtParseException, ImageAttachmentJwtGenerateSecretException, ImageAttachmentJwtSecurityException -
generateToken
public String generateToken(ImageAttachmentJwtTokenGenerateParams tokenParameters) throws ImageAttachmentJwtGenerateSecretException -
isImageAttachmentJwtTokenEnabled
public boolean isImageAttachmentJwtTokenEnabled() -
getTokenExpiryHours
-