content: /*
   *
   * Licensed to the Apache Software Foundation (ASF) under one or more
   * contributor license agreements.  See the NOTICE file distributed with
   * this work for additional information regarding copyright ownership.
   * The ASF licenses this file to You 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.alibaba.cloudapp.api.gateway.model;
  
  import com.fasterxml.jackson.annotation.JsonProperty;
  
  import java.io.Serializable;
  
  /**
   * The response entity class for obtaining token of the OAuth2.0 protocol
   */
  public class OAuthToken implements Serializable {
  
      @JsonProperty("access_token")
      private String accessToken;
  
      @JsonProperty("refresh_token")
      private String refreshToken;
  
      @JsonProperty("id_token")
      private String idToken;
  
      @JsonProperty("token_type")
      private String tokenType;
  
      private String scope;
  
      @JsonProperty("expires_in")
      private long expiresIn;
  
      public String getAccessToken() {
          return accessToken;
      }
  
      public void setAccessToken(String accessToken) {
          this.accessToken = accessToken;
      }
  
      public String getRefreshToken() {
          return refreshToken;
      }
  
      public void setRefreshToken(String refreshToken) {
          this.refreshToken = refreshToken;
      }
  
      public String getIdToken() {
          return idToken;
      }
  
      public void setIdToken(String idToken) {
          this.idToken = idToken;
      }
  
      public String getTokenType() {
          return tokenType;
      }
  
      public void setTokenType(String tokenType) {
          this.tokenType = tokenType;
      }
  
      public String getScope() {
          return scope;
      }
  
      public void setScope(String scope) {
          this.scope = scope;
      }
  
      public long getExpiresIn() {
          return expiresIn;
      }
  
      public void setExpiresIn(long expiresIn) {
          this.expiresIn = expiresIn;
      }
  }
  