dev.openfga.sdk.api.configuration.ClientCredentials Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openfga-sdk Show documentation
Show all versions of openfga-sdk Show documentation
This is an autogenerated Java SDK for OpenFGA. It provides a wrapper around the [OpenFGA API definition](https://openfga.dev/api).
/*
* OpenFGA
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
*
* The version of the OpenAPI document: 1.x
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package dev.openfga.sdk.api.configuration;
import static dev.openfga.sdk.util.Validation.assertParamExists;
import dev.openfga.sdk.errors.FgaInvalidParameterException;
public class ClientCredentials {
private String clientId;
private String clientSecret;
private String apiTokenIssuer;
private String apiAudience;
private String scopes;
public ClientCredentials() {}
public ClientCredentials clientId(String clientId) {
this.clientId = clientId;
return this;
}
public void assertValid() throws FgaInvalidParameterException {
assertParamExists(clientId, "clientId", "ClientCredentials");
assertParamExists(clientSecret, "clientSecret", "ClientCredentials");
assertParamExists(apiTokenIssuer, "apiTokenIssuer", "ClientCredentials");
assertParamExists(apiAudience, "apiAudience", "ClientCredentials");
}
public String getClientId() {
return this.clientId;
}
public ClientCredentials clientSecret(String clientSecret) {
this.clientSecret = clientSecret;
return this;
}
public String getClientSecret() {
return this.clientSecret;
}
public ClientCredentials apiTokenIssuer(String apiTokenIssuer) {
this.apiTokenIssuer = apiTokenIssuer;
return this;
}
public String getApiTokenIssuer() {
return this.apiTokenIssuer;
}
public ClientCredentials apiAudience(String apiAudience) {
this.apiAudience = apiAudience;
return this;
}
public String getApiAudience() {
return this.apiAudience;
}
public ClientCredentials scopes(String scopes) {
this.scopes = scopes;
return this;
}
public String getScopes() {
return this.scopes;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy