com.smartsheet.api.oauth.Token Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smartsheet-sdk-java Show documentation
Show all versions of smartsheet-sdk-java Show documentation
Library for connecting to Smartsheet Services
The newest version!
/*
* Copyright (C) 2024 Smartsheet
*
* 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.smartsheet.api.oauth;
/**
* Represents OAuth token.
*/
public class Token {
/**
* Represents the access token.
*/
private String accessToken;
/**
* Represents the token type.
*/
private String tokenType;
/**
* Represents the refresh token.
*/
private String refreshToken;
/**
* Represents the expiration time in seconds.
*/
private long expiresInSeconds;
/**
* Gets the access token.
*
* @return the access token
*/
public String getAccessToken() {
return accessToken;
}
/**
* Sets the access token.
*
* @param accessToken the new access token
*/
public void setAccessToken(String accessToken) {
this.accessToken = accessToken;
}
/**
* Gets the token type.
*
* @return the token type
*/
public String getTokenType() {
return tokenType;
}
/**
* Sets the token type.
*
* @param tokenType the new token type
*/
public void setTokenType(String tokenType) {
this.tokenType = tokenType;
}
/**
* Gets the refresh token.
*
* @return the refresh token
*/
public String getRefreshToken() {
return refreshToken;
}
/**
* Sets the refresh token.
*
* @param refreshToken the new refresh token
*/
public void setRefreshToken(String refreshToken) {
this.refreshToken = refreshToken;
}
/**
* Gets the expires in seconds.
*
* @return the expires in seconds
*/
public long getExpiresInSeconds() {
return expiresInSeconds;
}
/**
* Sets the expires in seconds.
*
* @param expiresInSeconds the new expires in seconds
*/
public void setExpiresInSeconds(long expiresInSeconds) {
this.expiresInSeconds = expiresInSeconds;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy