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

com.predic8.membrane.core.interceptor.apikey.stores.inConfig.Key Maven / Gradle / Ivy

There is a newer version: 5.7.3
Show newest version
package com.predic8.membrane.core.interceptor.apikey.stores.inConfig;

import com.predic8.membrane.annot.MCAttribute;
import com.predic8.membrane.annot.MCChildElement;
import com.predic8.membrane.annot.MCElement;

import java.util.ArrayList;
import java.util.List;

@MCElement(name = "secret", topLevel = false)
public class Key {

    private final List scopes = new ArrayList<>();

    private String value;

    @MCChildElement(allowForeign = true)
    public void setScopes(List scopes) {
        this.scopes.addAll(scopes);
    }

    public List getScopes() {
        return scopes;
    }

    @MCAttribute
    public void setValue(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy