Skip to main content

Token Request Validation

Validation messages for token creation requests, covering token name and expiry date fields.


Overview

KeyMessageDescription
NotBlank.tokenRequest.tokenNameThe token name must contain at least one character. Please input the token name.The token name is empty or contains only whitespace.
NotNull.tokenRequest.expiryDateThe expiry date must not be null. Please input the expiry date.The token expiry date is null.
FutureOrPresent.tokenRequest.expiryDateThe expiry date must not be past. Please input the expiry date.The token expiry date is set to a date in the past.

Validation Message Details

NotBlank.tokenRequest.tokenName

Message

The token name must contain at least one character. Please input the token name.

Description

The token name is empty or contains only whitespace.

Root Cause

  • The tokenName field was left blank or contains only spaces.

Resolution

  1. Provide a non-empty token name.

NotNull.tokenRequest.expiryDate

Message

The expiry date must not be null. Please input the expiry date.

Description

The token expiry date is null.

Root Cause

  • The expiryDate field was not included in the request.

Resolution

  1. Provide a valid expiry date for the token.

FutureOrPresent.tokenRequest.expiryDate

Message

The expiry date must not be past. Please input the expiry date.

Description

The token expiry date is set to a date in the past.

Root Cause

  • The provided expiryDate is earlier than today.

Resolution

  1. Set the expiry date to today or a future date.