io.fusionauth.domain.api.jwt.JWTRefreshResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fusionauth-java-client Show documentation
Show all versions of fusionauth-java-client Show documentation
The Java Client library provides a native Java binding to the FusionAuth REST API.
/*
* Copyright (c) 2018-2022, FusionAuth, All Rights Reserved
*/
package io.fusionauth.domain.api.jwt;
import java.util.UUID;
import com.inversoft.json.JacksonConstructor;
/**
* API response for refreshing a JWT with a Refresh Token.
*
* Using a different response object from RefreshTokenResponse because the retrieve response will return an object for refreshToken, and this is a
* string.
*
* @author Daniel DeGroff
*/
public class JWTRefreshResponse implements RefreshResponse {
public String refreshToken;
public UUID refreshTokenId;
public String token;
@JacksonConstructor
public JWTRefreshResponse() {
}
public JWTRefreshResponse(UUID refreshTokenId, String refreshToken, String token) {
this.refreshTokenId = refreshTokenId;
this.refreshToken = refreshToken;
this.token = token;
}
}