/*
* Copyright 2014 Sonoport (Asia) Pte Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.sonoport.freesound.response;
/**
* Class representing an OAuth2 access token and associated information returned by the freesound token endpoint.
*/
public class AccessTokenDetails {
/** The OAuth2 token that can be used as a credential for making calls to protected resources. */
private String accessToken;
/** Scope(s) associated with the credential. */
private String scope;
/** Amount of time (in seconds) that the token is valid. */
private int expiresIn;
/** Token used to request a new access token once this one has expired. */
private String refreshToken;
/**
* @return the accessToken
*/
public String getAccessToken() {
return accessToken;
}
/**
* @param accessToken the accessToken to set
*/
public void setAccessToken(final String accessToken) {
this.accessToken = accessToken;
}
/**
* @return the scope
*/
public String getScope() {
return scope;
}
/**
* @param scope the scope to set
*/
public void setScope(final String scope) {
this.scope = scope;
}
/**
* @return the expiresIn
*/
public int getExpiresIn() {
return expiresIn;
}
/**
* @param expiresIn the expiresIn to set
*/
public void setExpiresIn(final int expiresIn) {
this.expiresIn = expiresIn;
}
/**
* @return the refreshToken
*/
public String getRefreshToken() {
return refreshToken;
}
/**
* @param refreshToken the refreshToken to set
*/
public void setRefreshToken(final String refreshToken) {
this.refreshToken = refreshToken;
}
}