/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.util.Pair
 */
package com.l7tech.server.policy.variable;

import com.l7tech.util.Pair;
import java.util.ArrayList;
import java.util.LinkedList;

public class RadiusAuthenticationContext {
    private LinkedList<Pair<String, Object>> a = new LinkedList();
    private int b;

    public LinkedList<Pair<String, Object>> getRadiusAttributes() {
        return this.a;
    }

    public void setRadiusAttributes(LinkedList<Pair<String, Object>> linkedList) {
        this.a = linkedList;
    }

    public void addRadiusAttribute(String string, Object object) {
        this.a.add((Pair<String, Object>)new Pair((Object)string, object));
    }

    public Object[] getAttributeValue(String string) {
        ArrayList<Object> arrayList = new ArrayList<Object>();
        if (string != null) {
            for (Pair pair : this.a) {
                if (!((String)pair.left).equals(string)) continue;
                arrayList.add(pair.right);
            }
        }
        return arrayList.toArray();
    }

    public int getReasonCode() {
        return this.b;
    }

    public void setReasonCode(int n2) {
        this.b = n2;
    }
}

