
com.symphony.api.model.JwtToken Maven / Gradle / Ivy
package com.symphony.api.model;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.annotation.JsonCreator;
public class JwtToken {
@Schema(description = "Type of token, string \"Bearer\"")
/**
* Type of token, string \"Bearer\"
**/
private String tokenType = null;
@Schema(description = "Duration of time the access token is granted for in seconds")
/**
* Duration of time the access token is granted for in seconds
**/
private Long expiresIn = null;
@Schema(description = "A JWT containing the caller's username or application, an expiration date and a set of entitlements related to the specified scope, signed by the caller's private key. ")
/**
* A JWT containing the caller's username or application, an expiration date and a set of entitlements related to the specified scope, signed by the caller's private key.
**/
private String accessToken = null;
/**
* Type of token, string \"Bearer\"
* @return tokenType
**/
@JsonProperty("token_type")
public String getTokenType() {
return tokenType;
}
public void setTokenType(String tokenType) {
this.tokenType = tokenType;
}
public JwtToken tokenType(String tokenType) {
this.tokenType = tokenType;
return this;
}
/**
* Duration of time the access token is granted for in seconds
* @return expiresIn
**/
@JsonProperty("expires_in")
public Long getExpiresIn() {
return expiresIn;
}
public void setExpiresIn(Long expiresIn) {
this.expiresIn = expiresIn;
}
public JwtToken expiresIn(Long expiresIn) {
this.expiresIn = expiresIn;
return this;
}
/**
* A JWT containing the caller's username or application, an expiration date and a set of entitlements related to the specified scope, signed by the caller's private key.
* @return accessToken
**/
@JsonProperty("access_token")
public String getAccessToken() {
return accessToken;
}
public void setAccessToken(String accessToken) {
this.accessToken = accessToken;
}
public JwtToken accessToken(String accessToken) {
this.accessToken = accessToken;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class JwtToken {\n");
sb.append(" tokenType: ").append(toIndentedString(tokenType)).append("\n");
sb.append(" expiresIn: ").append(toIndentedString(expiresIn)).append("\n");
sb.append(" accessToken: ").append(toIndentedString(accessToken)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private static String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy