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

io.mosip.pms.oauth.client.dto.CreateClientRequestDtoV2 Maven / Gradle / Ivy

The newest version!
package io.mosip.pms.oauth.client.dto;

import java.util.List;
import java.util.Map;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CreateClientRequestDtoV2 extends CreateClientRequestDto {

	@NotEmpty
	 private Map<@Size(min=3, max=3) String, @NotBlank String> clientNameLangMap;
	
	 public CreateClientRequestDtoV2(String clientId, String clientName, Map publicKey, String relyingPartyId,
			 List userClaims, List authContextRefs, String logoUri, List redirectUris, List grantTypes, List clientAuthMethods,
             Map clientNameLangMap) {
				super(clientId, clientName, publicKey, relyingPartyId, userClaims, authContextRefs,
				logoUri, redirectUris, grantTypes, clientAuthMethods);
				this.clientNameLangMap = clientNameLangMap;
			}

	public CreateClientRequestDtoV2(CreateClientRequestDto createRequest, Map clientNameLangMap) {
		super(createRequest.getClientId(), createRequest.getClientName(), createRequest.getPublicKey(), createRequest.getRelyingPartyId(), createRequest.getUserClaims(), 
				createRequest.getAuthContextRefs(), createRequest.getLogoUri(), createRequest.getRedirectUris(), createRequest.getGrantTypes(), createRequest.getClientAuthMethods());
				this.clientNameLangMap = clientNameLangMap;
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy