package ru.ibs.socrates.confexporter.external.access.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;


/**
 * Настройки access клиента.
 */
@Component
@Validated
@Data
@ConfigurationProperties("app.access")
public class AccessTokenProperties {

  /**
   * ExpiresIn.
   */
  protected int tokenExpiredDelay = 30;
  
  /**
   * id ТУЗ клиента для grant_type = client_credentials.
   */
  protected String clientId;

  /**
   * secret ТУЗ клиента для grant_type = client_credentials.
   */
  protected String clientSecret;
  
}
