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

com.clouway.oauth2.token.TokenResponse Maven / Gradle / Ivy

package com.clouway.oauth2.token;

/**
 * TokenResponse is a response which is returned when token is issued or refreshed.
 * 

* Sometimes token cannot be issue dueerror and this is indicated using the {@link TokenResponse#isSuccessful()} method * call. * * @author Miroslav Genov ([email protected]) */ public final class TokenResponse { private final boolean successful; public final BearerToken accessToken; public final String refreshToken; public TokenResponse(boolean successful, BearerToken accessToken, String refreshToken) { this.successful = successful; this.refreshToken = refreshToken; this.accessToken = accessToken; } public boolean isSuccessful() { return successful; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy