All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sparkpost.model.AuthCredentials Maven / Gradle / Ivy

There is a newer version: 0.27
Show newest version
package com.sparkpost.model;

import com.google.gson.annotations.SerializedName;
import com.yepher.jsondoc.annotations.Description;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class AuthCredentials extends Base {

    @Description(value = "Basic Auth Username. Used for 'basic' authorization flow.")
    private String username;

    @Description(value = "Basic Auth Password. Used for 'basic' authorization flow.")
    private String password;

    @Description(value = "OAuth2 access token generated by SparkPost. Returned in case of 'oauth2' authorization flow.")
    @SerializedName("access_token")
    private String accessToken;

    @Description(value = "The lifetime of the access_token in seconds. Returned in case of 'oauth2' authorization flow.")
    @SerializedName("expires_in")
    private Integer expiresIn;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy