All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.mosip.authentication.common.service.integration.dto.SymmetricKeyRequestDto Maven / Gradle / Ivy

package io.mosip.authentication.common.service.integration.dto;

import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Request DTO for Symmetric Key
 * 
 * @author Arun Bose
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "Class representing a Decrypt Request")
public class SymmetricKeyRequestDto {

	/**
	 * The string applicationID
	 */
	@ApiModelProperty(notes = "Application id of decrypting module", example = "REGISTRATION", required = true)
	private String applicationId;

	/**
	 * The field for timestamp
	 */
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
	@ApiModelProperty(notes = "Timestamp", example = "2018-12-10T06:12:52.994Z", required = true)
	private LocalDateTime timeStamp;

	/**
	 * The string reference id
	 */
	
	@ApiModelProperty(notes = "Reference Id", example = "REF01")
	private String referenceId;

	/**
	 * The string encryptedSymmetricKey
	 */
	@ApiModelProperty(notes = "Encrypted Data in BASE64 encoding to decrypt", required = true)
	private String encryptedSymmetricKey;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy