Token Request Validation
Validation messages for token creation requests, covering token name and expiry date fields.
Overview
| Key | Message | Description |
|---|---|---|
NotBlank.tokenRequest.tokenName | The token name must contain at least one character. Please input the token name. | The token name is empty or contains only whitespace. |
NotNull.tokenRequest.expiryDate | The expiry date must not be null. Please input the expiry date. | The token expiry date is null. |
FutureOrPresent.tokenRequest.expiryDate | The 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
tokenNamefield was left blank or contains only spaces.
Resolution
- 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
expiryDatefield was not included in the request.
Resolution
- 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
expiryDateis earlier than today.
Resolution
- Set the expiry date to today or a future date.