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

io.camunda.identity.sdk.impl.dto.RenewTokenDto Maven / Gradle / Ivy

The newest version!
/*
 * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
 * one or more contributor license agreements. Licensed under a proprietary license. See the
 * License.txt file for more information. You may not use this file except in compliance with the
 * proprietary license.
 */
package io.camunda.identity.sdk.impl.dto;

import com.fasterxml.jackson.annotation.JsonProperty;

public class RenewTokenDto {
  private final String clientId;
  private final String clientSecret;
  private final String refreshToken;

  public RenewTokenDto(
      final String clientId,
      final String clientSecret,
      final String refreshToken
  ) {
    this.clientId = clientId;
    this.clientSecret = clientSecret;
    this.refreshToken = refreshToken;
  }

  @JsonProperty("client_id")
  public String getClientId() {
    return clientId;
  }

  @JsonProperty("client_secret")
  public String getClientSecret() {
    return clientSecret;
  }

  @JsonProperty("grant_type")
  public String getGrantType() {
    return "refresh_token";
  }

  @JsonProperty("refresh_token")
  public String getRefreshToken() {
    return refreshToken;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy