| | |
| | | if (isBlank(encryptResultStr)) { |
| | | throw new BusinessException(ErrorCode.CONTENT_EMPTY_ERROR); |
| | | } |
| | | if (secretKey.length() != CimsConstants.SECRET_KEY_LENGTH || !secretKey.matches(CimsConstants.SECRET_KEY_REGEX)) { |
| | | throw new BusinessException(ErrorCode.SECRET_KEY_ERROR); |
| | | } |
| | | if (isBlank(secretKey)) { |
| | | throw new BusinessException(ErrorCode.SECRET_KEY_ERROR); |
| | | } |
| | | // if (secretKey.length() != CimsConstants.SECRET_KEY_LENGTH || !secretKey.matches(CimsConstants.SECRET_KEY_REGEX)) { |
| | | // throw new BusinessException(ErrorCode.SECRET_KEY_ERROR); |
| | | // } |
| | | } |
| | | |
| | | |