
com.cloudbees.api.oauth.OauthTokenDetail Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudbees-api-client Show documentation
Show all versions of cloudbees-api-client Show documentation
The CloudBees API Client library for Java
package com.cloudbees.api.oauth;
import org.codehaus.jackson.annotate.JsonProperty;
import java.util.Date;
import java.util.List;
/**
* @author Vivek Pandey
*/
public class OauthTokenDetail extends AbstractOauthToken {
@JsonProperty("access_token")
public AccessTokenDetail accessToken;
@JsonProperty("refresh_token")
public TokenDetail refreshToken;
@JsonProperty("account")
public String account;
@JsonProperty("app")
public App app;
public static class TokenDetail {
@JsonProperty("token")
public String token;
@JsonProperty("created_at")
public Date createdAt;
@JsonProperty("updated_at")
public Date updatedAt;
@JsonProperty("scopes")
public List scopes;
}
public static class AccessTokenDetail extends TokenDetail {
@JsonProperty("expires_in")
public Integer expiresIn;
@JsonProperty("token_type")
public String tokenType;
}
public static class App {
@JsonProperty("name")
public String name;
@JsonProperty("url")
public String url;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy