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

com.github.kongchen.swagger.docgen.mustache.MustacheAuthorization Maven / Gradle / Ivy

There is a newer version: 3.1.8
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy