
com.mangofactory.swagger.models.dto.builder.OAuthBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swagger-models Show documentation
Show all versions of swagger-models Show documentation
This project integrates swagger with the Spring Web MVC framework
The newest version!
package com.mangofactory.swagger.models.dto.builder;
import com.mangofactory.swagger.models.dto.AuthorizationScope;
import com.mangofactory.swagger.models.dto.GrantType;
import com.mangofactory.swagger.models.dto.OAuth;
import java.util.ArrayList;
import java.util.List;
public class OAuthBuilder {
private List scopes = new ArrayList();
private List grantTypes = new ArrayList();
public OAuthBuilder scopes(List scopes) {
this.scopes.addAll(scopes);
return this;
}
public OAuthBuilder grantTypes(List grantTypes) {
this.grantTypes.addAll(grantTypes);
return this;
}
public OAuth build() {
return new OAuth(this.scopes, this.grantTypes);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy