
com.github.kongchen.swagger.docgen.mustache.MustacheAuthorization Maven / Gradle / Ivy
package com.github.kongchen.swagger.docgen.mustache;
import com.wordnik.swagger.model.Authorization;
import com.wordnik.swagger.model.AuthorizationScope;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* Created by kong on 14-2-1.
*/
public class MustacheAuthorization {
private final List authorizationScopes = new ArrayList();
private final String type;
public MustacheAuthorization(Authorization authorization) {
this.type = authorization.type();
Collections.addAll(this.authorizationScopes, authorization.scopes());
}
public List getAuthorizationScopes() {
return authorizationScopes;
}
public String getType() {
return type;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy