You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
565 B
23 lines
565 B
package org.ros.chatto.dto;
|
|
|
|
import java.util.Date;
|
|
|
|
import javax.validation.constraints.NotBlank;
|
|
import javax.validation.constraints.Pattern;
|
|
import javax.validation.constraints.Size;
|
|
|
|
import org.ros.chatto.model.MessageCipher;
|
|
|
|
import lombok.Data;
|
|
|
|
@Data
|
|
public class ReencryptionDTO {
|
|
@NotBlank(message = "Username should not be blank")
|
|
@Pattern(regexp = "^[A-Za-z0-9]+$", message = "Username must be alphanumeric")
|
|
@Size(max=15)
|
|
private String toUser, fromUser;
|
|
@NotBlank
|
|
@Size(max=600)
|
|
private MessageCipher messageCipher;
|
|
private Date messageTime;
|
|
}
|